public final class ActivityThread extends Object
Modifier and Type | Field and Description |
---|---|
static boolean |
DEBUG_BROADCAST |
static boolean |
DEBUG_CONFIGURATION |
static int |
SERVICE_DONE_EXECUTING_ANON
Type for IActivityManager.serviceDoneExecuting: anonymous operation
|
static int |
SERVICE_DONE_EXECUTING_START
Type for IActivityManager.serviceDoneExecuting: done with an onStart call
|
static int |
SERVICE_DONE_EXECUTING_STOP
Type for IActivityManager.serviceDoneExecuting: done stopping (destroying) service
|
static String |
TAG |
Modifier and Type | Method and Description |
---|---|
IContentProvider |
acquireExistingProvider(Context c,
String auth,
int userId,
boolean stable) |
IContentProvider |
acquireProvider(Context c,
String auth,
int userId,
boolean stable) |
void |
applyConfigurationToResources(Configuration config) |
static ActivityThread |
currentActivityThread() |
static Application |
currentApplication() |
static String |
currentOpPackageName() |
static String |
currentPackageName() |
static String |
currentProcessName() |
static void |
dumpMemInfoTable(PrintWriter pw,
Debug.MemoryInfo memInfo,
boolean checkin,
boolean dumpFullInfo,
boolean dumpDalvik,
boolean dumpSummaryOnly,
int pid,
String processName,
long nativeMax,
long nativeAllocated,
long nativeFree,
long dalvikMax,
long dalvikAllocated,
long dalvikFree) |
Activity |
getActivity(IBinder token) |
Application |
getApplication() |
android.app.ActivityThread.ApplicationThread |
getApplicationThread() |
Instrumentation |
getInstrumentation() |
int |
getIntCoreSetting(String key,
int defaultValue) |
static Intent |
getIntentBeingBroadcast()
Return the Intent that's currently being handled by a
BroadcastReceiver on this thread, or null if none.
|
Looper |
getLooper() |
LoadedApk |
getPackageInfo(ApplicationInfo ai,
CompatibilityInfo compatInfo,
int flags) |
LoadedApk |
getPackageInfo(String packageName,
CompatibilityInfo compatInfo,
int flags) |
LoadedApk |
getPackageInfo(String packageName,
CompatibilityInfo compatInfo,
int flags,
int userId) |
LoadedApk |
getPackageInfoNoCheck(ApplicationInfo ai,
CompatibilityInfo compatInfo) |
static IPackageManager |
getPackageManager() |
String |
getProcessName() |
String |
getProfileFilePath() |
android.app.ContextImpl |
getSystemContext() |
void |
handleCancelVisibleBehind(IBinder token) |
void |
handleInstallProvider(ProviderInfo info) |
void |
handleOnBackgroundVisibleBehindChanged(IBinder token,
boolean visible) |
void |
handleRequestAssistContextExtras(android.app.ActivityThread.RequestAssistContextExtras cmd) |
void |
handleTranslucentConversionComplete(IBinder token,
boolean drawComplete) |
void |
installSystemApplicationInfo(ApplicationInfo info,
ClassLoader classLoader) |
void |
installSystemProviders(List<ProviderInfo> providers) |
boolean |
isProfiling() |
static boolean |
isSystem() |
static void |
main(String[] args) |
void |
onNewActivityOptions(IBinder token,
ActivityOptions options) |
LoadedApk |
peekPackageInfo(String packageName,
boolean includeCode) |
android.app.ActivityThread.ActivityClientRecord |
performDestroyActivity(IBinder token,
boolean finishing) |
android.app.ActivityThread.ActivityClientRecord |
performResumeActivity(IBinder token,
boolean clearHide,
String reason) |
void |
registerOnActivityPausedListener(Activity activity,
OnActivityPausedListener listener) |
boolean |
releaseProvider(IContentProvider provider,
boolean stable) |
void |
requestRelaunchActivity(IBinder token,
List<ResultInfo> pendingResults,
List<ReferrerIntent> pendingNewIntents,
int configChanges,
boolean notResumed,
Configuration config,
Configuration overrideConfig,
boolean fromServer,
boolean preserveWindow) |
ActivityInfo |
resolveActivityInfo(Intent intent) |
void |
sendActivityResult(IBinder token,
String id,
int requestCode,
int resultCode,
Intent data) |
Activity |
startActivityNow(Activity parent,
String id,
Intent intent,
ActivityInfo activityInfo,
IBinder token,
Bundle state,
android.app.Activity.NonConfigurationInstances lastNonConfigurationInstances) |
void |
stopProfiling()
Public entrypoint to stop profiling.
|
static ActivityThread |
systemMain() |
void |
unregisterOnActivityPausedListener(Activity activity,
OnActivityPausedListener listener) |
public static final String TAG
public static final boolean DEBUG_BROADCAST
public static final boolean DEBUG_CONFIGURATION
public static final int SERVICE_DONE_EXECUTING_ANON
public static final int SERVICE_DONE_EXECUTING_START
public static final int SERVICE_DONE_EXECUTING_STOP
public static ActivityThread currentActivityThread()
public static boolean isSystem()
public static String currentOpPackageName()
public static String currentPackageName()
public static String currentProcessName()
public static Application currentApplication()
public static IPackageManager getPackageManager()
public final LoadedApk getPackageInfo(String packageName, CompatibilityInfo compatInfo, int flags)
public final LoadedApk getPackageInfo(String packageName, CompatibilityInfo compatInfo, int flags, int userId)
public final LoadedApk getPackageInfo(ApplicationInfo ai, CompatibilityInfo compatInfo, int flags)
public final LoadedApk getPackageInfoNoCheck(ApplicationInfo ai, CompatibilityInfo compatInfo)
public android.app.ActivityThread.ApplicationThread getApplicationThread()
public Instrumentation getInstrumentation()
public boolean isProfiling()
public String getProfileFilePath()
public Looper getLooper()
public Application getApplication()
public String getProcessName()
public android.app.ContextImpl getSystemContext()
public void installSystemApplicationInfo(ApplicationInfo info, ClassLoader classLoader)
public static void dumpMemInfoTable(PrintWriter pw, Debug.MemoryInfo memInfo, boolean checkin, boolean dumpFullInfo, boolean dumpDalvik, boolean dumpSummaryOnly, int pid, String processName, long nativeMax, long nativeAllocated, long nativeFree, long dalvikMax, long dalvikAllocated, long dalvikFree)
public void registerOnActivityPausedListener(Activity activity, OnActivityPausedListener listener)
public void unregisterOnActivityPausedListener(Activity activity, OnActivityPausedListener listener)
public final ActivityInfo resolveActivityInfo(Intent intent)
public final Activity startActivityNow(Activity parent, String id, Intent intent, ActivityInfo activityInfo, IBinder token, Bundle state, android.app.Activity.NonConfigurationInstances lastNonConfigurationInstances)
public final void sendActivityResult(IBinder token, String id, int requestCode, int resultCode, Intent data)
public void handleRequestAssistContextExtras(android.app.ActivityThread.RequestAssistContextExtras cmd)
public void handleTranslucentConversionComplete(IBinder token, boolean drawComplete)
public void onNewActivityOptions(IBinder token, ActivityOptions options)
public void handleCancelVisibleBehind(IBinder token)
public void handleOnBackgroundVisibleBehindChanged(IBinder token, boolean visible)
public void handleInstallProvider(ProviderInfo info)
public static Intent getIntentBeingBroadcast()
public final android.app.ActivityThread.ActivityClientRecord performResumeActivity(IBinder token, boolean clearHide, String reason)
public final android.app.ActivityThread.ActivityClientRecord performDestroyActivity(IBinder token, boolean finishing)
public final void requestRelaunchActivity(IBinder token, List<ResultInfo> pendingResults, List<ReferrerIntent> pendingNewIntents, int configChanges, boolean notResumed, Configuration config, Configuration overrideConfig, boolean fromServer, boolean preserveWindow)
preserveWindow
- Whether the activity should try to reuse the window it created,
including the decor view after the relaunch.public final void applyConfigurationToResources(Configuration config)
public void stopProfiling()
public final IContentProvider acquireProvider(Context c, String auth, int userId, boolean stable)
public final IContentProvider acquireExistingProvider(Context c, String auth, int userId, boolean stable)
public final boolean releaseProvider(IContentProvider provider, boolean stable)
public static ActivityThread systemMain()
public final void installSystemProviders(List<ProviderInfo> providers)
public int getIntCoreSetting(String key, int defaultValue)
public static void main(String[] args)