Searched defs:activity (Results 126 - 150 of 151) sorted by relevance

1234567

/frameworks/base/core/java/android/app/
H A DDialog.java215 * @param activity The Activity that owns this dialog.
217 public final void setOwnerActivity(Activity activity) { argument
218 mOwnerActivity = activity;
382 * the hosting activity was previously shut down, holds the result from
447 * Retrieve the current Window for the activity. This can be used to
451 * @return Window The current window, or null if the activity is not
649 * views inside of the activity. So, for example, if the trackball moves
873 * It is usually safe to proxy this call to the owner activity's
885 * It is usually safe to proxy this call to the owner activity's
977 // associate search with owner activity
[all...]
H A DFragmentManager.java77 * will be persisted across activity instances.
82 * representation of the entry that will persist across activity
134 * to an activity saving its state. If you try to commit a transaction
168 * activity; if no such fragment is found, then all fragments currently
178 * activity; if no such fragment is found, then all fragments currently
351 * Invalidate the attached activity's options menu as necessary.
402 * Container for fragments associated with an activity.
996 // The fragment's containing activity is
1054 throw new IllegalStateException("No activity");
1342 * @throws IllegalStateException if the activity ha
1851 attachActivity(Activity activity, FragmentContainer container, Fragment parent) argument
[all...]
H A DApplicationPackageManager.java137 // First see if the package has an INFO activity; the existence of
138 // such an activity is implied to be the desired front-door for the
145 // Otherwise, try to find a main launcher activity.
165 // Try to find a main leanback_launcher activity.
998 if (wr != null) { // we have the activity
1115 if (wr != null) { // we have the activity
1416 int match, ComponentName[] set, ComponentName activity) {
1418 mPM.addPreferredActivity(filter, match, set, activity, mContext.getUserId());
1426 ComponentName[] set, ComponentName activity, int userId) {
1428 mPM.addPreferredActivity(filter, match, set, activity, userI
1415 addPreferredActivity(IntentFilter filter, int match, ComponentName[] set, ComponentName activity) argument
1425 addPreferredActivity(IntentFilter filter, int match, ComponentName[] set, ComponentName activity, int userId) argument
1435 replacePreferredActivity(IntentFilter filter, int match, ComponentName[] set, ComponentName activity) argument
1445 replacePreferredActivityAsUser(IntentFilter filter, int match, ComponentName[] set, ComponentName activity, int userId) argument
[all...]
H A DFragment.java95 public Fragment instantiate(Activity activity, Fragment parent) { argument
101 mArguments.setClassLoader(activity.getClassLoader());
104 mInstance = Fragment.instantiate(activity, mClassName, mArguments);
107 mSavedFragmentState.setClassLoader(activity.getClassLoader());
118 mInstance.mFragmentManager = activity.mFragments;
166 * activity: if the activity is stopped, no fragments inside of it can be
167 * started; when the activity is destroyed, all fragments will be destroyed.
203 * <p>Though a Fragment's lifecycle is tied to its owning activity, it has
204 * its own wrinkle on the standard activity lifecycl
1188 onInflate(Activity activity, AttributeSet attrs, Bundle savedInstanceState) argument
1222 onAttach(Activity activity) argument
[all...]
H A DInstrumentation.java109 * begin the appropriate first activity of the application.
355 * Start a new activity and wait for it to begin running before returning.
358 * activity component is resolved before talking with the activity manager
363 * select an activity, an exception will be thrown.
365 * <p>The function returns as soon as the activity goes idle following the
370 * @param intent Description of the activity to start.
383 throw new RuntimeException("Unable to resolve activity for: " + intent);
412 return aw.activity;
420 * when a new activity i
568 match(Context who, Activity activity, Intent intent) argument
1068 prePerformCreate(Activity activity) argument
1084 postPerformCreate(Activity activity) argument
1103 callActivityOnCreate(Activity activity, Bundle icicle) argument
1116 callActivityOnCreate(Activity activity, Bundle icicle, PersistableBundle persistentState) argument
1123 callActivityOnDestroy(Activity activity) argument
1160 callActivityOnRestoreInstanceState(Activity activity, Bundle savedInstanceState) argument
1172 callActivityOnRestoreInstanceState(Activity activity, Bundle savedInstanceState, PersistableBundle persistentState) argument
1185 callActivityOnPostCreate(Activity activity, Bundle icicle) argument
1197 callActivityOnPostCreate(Activity activity, Bundle icicle, PersistableBundle persistentState) argument
1209 callActivityOnNewIntent(Activity activity, Intent intent) argument
1219 callActivityOnStart(Activity activity) argument
1229 callActivityOnRestart(Activity activity) argument
1239 callActivityOnResume(Activity activity) argument
1260 callActivityOnStop(Activity activity) argument
1271 callActivityOnSaveInstanceState(Activity activity, Bundle outState) argument
1282 callActivityOnSaveInstanceState(Activity activity, Bundle outState, PersistableBundle outPersistentState) argument
1293 callActivityOnPause(Activity activity) argument
1303 callActivityOnUserLeaving(Activity activity) argument
1876 public Activity activity; field in class:Instrumentation.ActivityWaiter
[all...]
H A DActivityManager.java89 * Result for IActivityManager.startActivity: trying to start an activity under voice
90 * control when that activity does not support the VOICE category.
104 * thing being started is not an activity.
111 * caller does not have permission to start the activity.
133 * given Intent could not be resolved to an activity.
139 * Result for IActivityManaqer.startActivity: the activity was started
153 * Result for IActivityManaqer.startActivity: activity wasn't really started, but
160 * Result for IActivityManaqer.startActivity: activity wasn't really started, but
161 * the given Intent was given to the existing top activity.
175 * Result for IActivityManaqer.startActivity: a new activity wa
1159 addAppTask(@onNull Activity activity, @NonNull Intent intent, @Nullable TaskDescription description, @NonNull Bitmap thumbnail) argument
[all...]
H A DActivity.java106 * An activity is a single, focused thing that the user can do. Almost all
112 * or embedded inside of another activity (using {@link ActivityGroup}).
117 * <li> {@link #onCreate} is where you initialize your activity. Most
124 * activity. Most importantly, any changes made by the user should at this
130 * activity classes must have a corresponding
131 * {@link android.R.styleable#AndroidManifestActivity &lt;activity&gt;}
171 * <p>Activities in the system are managed as an <em>activity stack</em>.
172 * When a new activity is started, it is placed on the top of the stack
173 * and becomes the running activity -- the previous activity alway
719 Object activity; field in class:Activity.NonConfigurationInstances
3929 startIntentSenderForResultInner(IntentSender intent, int requestCode, Intent fillInIntent, int flagsMask, int flagsValues, Activity activity, Bundle options) argument
[all...]
H A DActivityThread.java139 * broadcasts, and other operations on it as the activity
208 // NOTE: The activity and window managers need to call in to
210 // which means this lock gets held while the activity and window managers
211 // holds their own lock. Thus you MUST NEVER call back into the activity manager
274 Activity activity; field in class:ActivityThread.ActivityClientRecord
313 if (activity != null) {
314 return activity.getApplicationInfo().targetSdkVersion
604 // we use token to identify this activity without having to send the
605 // activity itself back to the activity manage
2065 registerOnActivityPausedListener(Activity activity, OnActivityPausedListener listener) argument
2077 unregisterOnActivityPausedListener(Activity activity, OnActivityPausedListener listener) argument
2307 createBaseContextForActivity(ActivityClientRecord r, final Activity activity) argument
3252 ActivityClientRecord activity; field in class:ActivityThread.StopInfo
[all...]
/frameworks/base/core/jni/
H A Dandroid_app_NativeActivity.cpp164 void android_NativeActivity_finish(ANativeActivity* activity) { argument
165 NativeCode* code = static_cast<NativeCode*>(activity);
170 ANativeActivity* activity, int32_t format) {
171 NativeCode* code = static_cast<NativeCode*>(activity);
176 ANativeActivity* activity, int32_t values, int32_t mask) {
177 NativeCode* code = static_cast<NativeCode*>(activity);
182 ANativeActivity* activity, int32_t flags) {
183 NativeCode* code = static_cast<NativeCode*>(activity);
188 ANativeActivity* activity, int32_t flags) {
189 NativeCode* code = static_cast<NativeCode*>(activity);
169 android_NativeActivity_setWindowFormat( ANativeActivity* activity, int32_t format) argument
175 android_NativeActivity_setWindowFlags( ANativeActivity* activity, int32_t values, int32_t mask) argument
181 android_NativeActivity_showSoftInput( ANativeActivity* activity, int32_t flags) argument
187 android_NativeActivity_hideSoftInput( ANativeActivity* activity, int32_t flags) argument
[all...]
/frameworks/support/v17/leanback/src/android/support/v17/leanback/app/
H A DBackgroundManager.java339 public static BackgroundManager getInstance(Activity activity) { argument
340 BackgroundFragment fragment = (BackgroundFragment) activity.getFragmentManager()
350 return new BackgroundManager(activity);
353 private BackgroundManager(Activity activity) { argument
354 mContext = activity;
360 TypedArray ta = activity.getTheme().obtainStyledAttributes(new int[] {
368 createFragment(activity);
371 private void createFragment(Activity activity) { argument
373 BackgroundFragment fragment = (BackgroundFragment) activity.getFragmentManager()
377 activity
[all...]
/frameworks/support/v7/appcompat/src/android/support/v7/app/
H A DActionBarActivityDelegateBase.java133 ActionBarActivityDelegateBase(ActionBarActivity activity) { argument
134 super(activity);
/frameworks/base/core/java/android/app/admin/
H A DDevicePolicyManager.java428 * Activity action: have the user enter a new password. This activity should
434 * constraints. Upon being resumed from this activity, you can check the new
1364 * maximum time for user activity until the device will lock. This limits
1600 * Activity action: begin the process of encrypting data on the device. This activity should
1602 * After resuming from this activity, use {@link #getStorageEncryption}
1603 * to check encryption status. However, on some devices this activity may never return, as
2529 * Called by a profile owner or device owner to add a default intent handler activity for
2530 * intents that match a certain intent filter. This activity will remain the default intent
2534 * <p>The default disambiguation mechanism takes over if the activity is not installed
2535 * (anymore). When the activity i
2545 addPersistentPreferredActivity(ComponentName admin, IntentFilter filter, ComponentName activity) argument
[all...]
/frameworks/base/core/java/com/android/internal/app/
H A DWindowDecorActionBar.java160 public WindowDecorActionBar(Activity activity) { argument
161 mActivity = activity;
162 Window window = activity.getWindow();
/frameworks/base/services/core/java/com/android/server/am/
H A DActivityRecord.java66 * An entry in the history stack, representing an activity.
73 private static final String TAG_ACTIVITY = "activity";
87 final ApplicationInfo appInfo; // information about activity's app
88 final int launchedFromUid; // always the uid who started the activity.
89 final String launchedFromPackage; // always the package who started the activity.
100 final boolean noDisplay; // activity is not displayed?
110 int icon; // resource identifier of activity's icon.
111 int logo; // resource identifier of activity's logo.
112 int theme; // resource identifier of activity's theme.
117 long displayStartTime; // when we started launching this activity
312 Token(ActivityRecord activity) argument
[all...]
H A DActivityStackSupervisor.java128 /** How long we wait until giving up on the last activity telling us it is idle. */
187 /** The stack currently receiving input or launching the next activity. */
190 /** If this is the same as mFocusedStack then the activity on the top of the focused stack has
195 /** List of activities that are waiting for a new activity to become visible before completing
199 /** List of processes waiting to find out about the next visible activity. */
203 /** List of processes waiting to find out about the next launched activity. */
207 /** List of activities that are ready to be stopped, but waiting for the next activity to
211 /** List of activities that are ready to be finished, but waiting for the previous activity to
224 /** Set to indicate whether to issue an onUserLeaving callback when a newly launched activity
237 * of launching an activity
3083 printThisActivity(PrintWriter pw, ActivityRecord activity, String dumpPackage, boolean needSep, String prefix) argument
[all...]
/frameworks/base/test-runner/src/android/test/mock/
H A DMockPackageManager.java583 int match, ComponentName[] set, ComponentName activity) {
592 int match, ComponentName[] set, ComponentName activity) {
582 addPreferredActivity(IntentFilter filter, int match, ComponentName[] set, ComponentName activity) argument
591 replacePreferredActivity(IntentFilter filter, int match, ComponentName[] set, ComponentName activity) argument
/frameworks/opt/photoviewer/src/com/android/ex/photo/
H A DPhotoViewController.java54 * This class implements all the logic of the photo view activity. An activity should use this class
55 * calling through from relevant activity methods to the methods of the same name here.
57 * To customize the photo viewer activity, you should subclass this and implement your
69 * The activity itself must delegate all appropriate method calls into this class, to the
155 /** When {@code true}, restart the loader when the activity becomes active */
157 /** Don't attempt operations that may trigger a fragment transaction when the activity is
160 /** Whether or not this activity is paused */
182 // TODO Find a better way to do this. We basically want the activity to display the
185 // by the activity, bu
190 PhotoViewController(ActivityInterface activity) argument
[all...]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
H A DDcTrackerBase.java90 * Constants for the data connection activity:
619 void setActivity(DctConstants.Activity activity) { argument
620 log("setActivity = " + activity);
621 mActivity = activity;
1397 public void sendStartNetStatPoll(DctConstants.Activity activity) { argument
1400 msg.obj = activity;
1404 protected void handleStartNetStatPoll(DctConstants.Activity activity) { argument
1407 setActivity(activity);
1410 public void sendStopNetStatPoll(DctConstants.Activity activity) { argument
1413 msg.obj = activity;
1417 handleStopNetStatPoll(DctConstants.Activity activity) argument
[all...]
/frameworks/support/v4/java/android/support/v4/app/
H A DFragment.java92 public Fragment instantiate(FragmentActivity activity, Fragment parent) { argument
98 mArguments.setClassLoader(activity.getClassLoader());
101 mInstance = Fragment.instantiate(activity, mClassName, mArguments);
104 mSavedFragmentState.setClassLoader(activity.getClassLoader());
115 mInstance.mFragmentManager = activity.mFragments;
161 * <li>Your activity must extend {@link FragmentActivity}
175 static final int ACTIVITY_CREATED = 2; // The activity has finished its creation.
216 // If set this fragment is being removed from its activity.
373 * activity's state. It is strongly recommended that subclasses do not
382 * is actually associated with its activity
981 onInflate(Activity activity, AttributeSet attrs, Bundle savedInstanceState) argument
989 onAttach(Activity activity) argument
[all...]
H A DFragmentManager.java63 * <p>Your activity must derive from {@link FragmentActivity} to use this. From such an activity,
77 * will be persisted across activity instances.
82 * representation of the entry that will persist across activity
136 * to an activity saving its state. If you try to commit a transaction
170 * activity; if no such fragment is found, then all fragments currently
180 * activity; if no such fragment is found, then all fragments currently
407 * Container for fragments associated with an activity.
1055 // The fragment's containing activity is
1113 throw new IllegalStateException("No activity");
1898 attachActivity(FragmentActivity activity, FragmentContainer container, Fragment parent) argument
[all...]
/frameworks/support/v7/appcompat/src/android/support/v7/internal/app/
H A DWindowDecorActionBar.java172 public WindowDecorActionBar(ActionBarActivity activity, boolean overlayMode) { argument
173 mActivity = activity;
174 Window window = activity.getWindow();
/frameworks/base/core/java/android/content/pm/
H A DPackageParser.java461 final Activity activity = p.activities.get(i);
462 if (activity.info.enabled
483 final Activity activity = p.receivers.get(i);
484 if (activity.info.enabled
2627 if (tagName.equals("activity")) {
2664 } else if (tagName.equals("activity-alias")) {
2780 if (tagName.equals("activity")) {
2817 } else if (tagName.equals("activity-alias")) {
2952 mParseActivityArgs.tag = receiver ? "<receiver>" : "<activity>";
3213 Slog.w(TAG, "Unknown element under <activity>
4922 public final Activity activity; field in class:PackageParser.ActivityIntentInfo
[all...]
H A DPackageManager.java105 * intent filters supported by the activity.
1751 * Returns a "good" intent to launch a front-door activity in a package.
1754 * activity in the category {@link Intent#CATEGORY_INFO}, and next for a
1755 * main activity in the category {@link Intent#CATEGORY_LAUNCHER}. Returns
1761 * main activity in the package. Returns <code>null</code> if the package
1762 * does not contain such an activity, or if <em>packageName</em> is not
1768 * Return a "good" intent to launch a front-door Leanback activity in a
1771 * activity in the category {@link Intent#CATEGORY_LEANBACK_LAUNCHER}, or
1779 * the main Leanback activity in the package, or null if the package
1780 * does not contain such an activity
3624 addPreferredActivity(IntentFilter filter, int match, ComponentName[] set, ComponentName activity) argument
3633 addPreferredActivity(IntentFilter filter, int match, ComponentName[] set, ComponentName activity, int userId) argument
3660 replacePreferredActivity(IntentFilter filter, int match, ComponentName[] set, ComponentName activity) argument
3667 replacePreferredActivityAsUser(IntentFilter filter, int match, ComponentName[] set, ComponentName activity, int userId) argument
[all...]
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
H A DDevicePolicyManagerService.java4047 ComponentName activity) {
4059 pm.addPersistentPreferredActivity(filter, activity, userHandle);
4443 Slog.e(LOG_TAG, "Failed to talk to activity managed.", e);
4046 addPersistentPreferredActivity(ComponentName who, IntentFilter filter, ComponentName activity) argument
/frameworks/base/services/core/java/com/android/server/pm/
H A DPackageManagerService.java2204 enforceCrossUserPermission(Binder.getCallingUid(), userId, false, false, "get activity info");
2977 IntentFilter filter, int match, ComponentName activity) {
2985 + " activity=" + activity);
2993 // Add the new activity as the last chosen for this filter
2994 addPreferredActivityInternal(filter, match, null, activity, false, userId,
3001 if (DEBUG_PREFERRED) Log.v(TAG, "Querying last chosen activity for " + intent);
3015 // If there is more than one activity with the same priority,
3023 // If the first activity has a higher priority, or a different
3030 // If we have saved a preference for a preferred activity fo
2976 setLastChosenActivity(Intent intent, String resolvedType, int flags, IntentFilter filter, int match, ComponentName activity) argument
11504 addPreferredActivity(IntentFilter filter, int match, ComponentName[] set, ComponentName activity, int userId) argument
11510 addPreferredActivityInternal(IntentFilter filter, int match, ComponentName[] set, ComponentName activity, boolean always, int userId, String opname) argument
11544 replacePreferredActivity(IntentFilter filter, int match, ComponentName[] set, ComponentName activity, int userId) argument
11742 addPersistentPreferredActivity(IntentFilter filter, ComponentName activity, int userId) argument
[all...]

Completed in 660 milliseconds

1234567