MCPcopy Create free account
hub / github.com/FeJQ/AUPK / main

Method main

frameworks/base/core/java/android/app/ActivityThread.java:6137–6176  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

6135 }
6136
6137 public static void main(String[] args) {
6138 Trace.traceBegin(Trace.TRACE_TAG_ACTIVITY_MANAGER, "ActivityThreadMain");
6139 SamplingProfilerIntegration.start();
6140
6141 // CloseGuard defaults to true and can be quite spammy. We
6142 // disable it here, but selectively enable it later (via
6143 // StrictMode) on debug builds, but using DropBox, not logs.
6144 CloseGuard.setEnabled(false);
6145
6146 Environment.initForCurrentUser();
6147
6148 // Set the reporter for event logging in libcore
6149 EventLogger.setReporter(new EventLoggingReporter());
6150
6151 // Make sure TrustedCertificateStore looks in the right place for CA certificates
6152 final File configDir = Environment.getUserConfigDirectory(UserHandle.myUserId());
6153 TrustedCertificateStore.setDefaultUserDirectory(configDir);
6154
6155 Process.setArgV0("<pre-initialized>");
6156
6157 Looper.prepareMainLooper();
6158
6159 ActivityThread thread = new ActivityThread();
6160 thread.attach(false);
6161
6162 if (sMainThreadHandler == null) {
6163 sMainThreadHandler = thread.getHandler();
6164 }
6165
6166 if (false) {
6167 Looper.myLooper().setMessageLogging(new
6168 LogPrinter(Log.DEBUG, "ActivityThread"));
6169 }
6170
6171 // End of event ActivityThreadMain.
6172 Trace.traceEnd(Trace.TRACE_TAG_ACTIVITY_MANAGER);
6173 Looper.loop();
6174
6175 throw new RuntimeException("Main thread loop unexpectedly exited");
6176 }
6177}

Callers

nothing calls this directly

Calls 2

attachMethod · 0.95
getHandlerMethod · 0.95

Tested by

no test coverage detected