/frameworks/base/core/tests/coretests/src/android/app/activity/ |
D | ActivityThreadTest.java | 17 package android.app.activity; 79 final Activity activity = mActivityTestRule.launchActivity(new Intent()); in testDoubleRelaunch() local 80 final IApplicationThread appThread = activity.getActivityThread().getApplicationThread(); in testDoubleRelaunch() 82 appThread.scheduleTransaction(newRelaunchResumeTransaction(activity)); in testDoubleRelaunch() 83 appThread.scheduleTransaction(newRelaunchResumeTransaction(activity)); in testDoubleRelaunch() 89 final Activity activity = mActivityTestRule.launchActivity(new Intent()); in testResumeAfterRelaunch() local 90 final IApplicationThread appThread = activity.getActivityThread().getApplicationThread(); in testResumeAfterRelaunch() 92 appThread.scheduleTransaction(newRelaunchResumeTransaction(activity)); in testResumeAfterRelaunch() 93 appThread.scheduleTransaction(newResumeTransaction(activity)); in testResumeAfterRelaunch() 99 final Activity activity = mActivityTestRule.launchActivity(new Intent()); in testSleepAndStop() local [all …]
|
/frameworks/native/include/android/ |
D | native_activity.h | 132 void (*onStart)(ANativeActivity* activity); 138 void (*onResume)(ANativeActivity* activity); 149 void* (*onSaveInstanceState)(ANativeActivity* activity, size_t* outSize); 155 void (*onPause)(ANativeActivity* activity); 161 void (*onStop)(ANativeActivity* activity); 167 void (*onDestroy)(ANativeActivity* activity); 173 void (*onWindowFocusChanged)(ANativeActivity* activity, int hasFocus); 179 void (*onNativeWindowCreated)(ANativeActivity* activity, ANativeWindow* window); 186 void (*onNativeWindowResized)(ANativeActivity* activity, ANativeWindow* window); 194 void (*onNativeWindowRedrawNeeded)(ANativeActivity* activity, ANativeWindow* window); [all …]
|
/frameworks/base/core/java/android/app/ |
D | Application.java | 73 default void onActivityPreCreated(@NonNull Activity activity, in onActivityPreCreated() argument 80 void onActivityCreated(@NonNull Activity activity, @Nullable Bundle savedInstanceState); in onActivityCreated() argument 86 default void onActivityPostCreated(@NonNull Activity activity, in onActivityPostCreated() argument 94 default void onActivityPreStarted(@NonNull Activity activity) { in onActivityPreStarted() argument 100 void onActivityStarted(@NonNull Activity activity); in onActivityStarted() argument 106 default void onActivityPostStarted(@NonNull Activity activity) { in onActivityPostStarted() argument 113 default void onActivityPreResumed(@NonNull Activity activity) { in onActivityPreResumed() argument 119 void onActivityResumed(@NonNull Activity activity); in onActivityResumed() argument 125 default void onActivityPostResumed(@NonNull Activity activity) { in onActivityPostResumed() argument 132 default void onActivityPrePaused(@NonNull Activity activity) { in onActivityPrePaused() argument [all …]
|
D | Instrumentation.java | 403 private void waitForEnterAnimationComplete(Activity activity) { in waitForEnterAnimationComplete() argument 410 while (timeout > 0 && !activity.mEnterAnimationComplete) { in waitForEnterAnimationComplete() 530 waitForEnterAnimationComplete(aw.activity); in startActivitySync() 531 return aw.activity; in startActivitySync() 736 Activity activity, in match() argument 749 if (activity != null) { in match() 750 cls = activity.getClass().getName(); in match() 758 if (activity != null) { in match() 759 mLastActivity = activity; in match() 868 Activity activity = monitor.waitForActivity(); in waitForMonitor() local [all …]
|
D | ActivityTransitionState.java | 165 public void setEnterActivityOptions(Activity activity, ActivityOptions options) { in setEnterActivityOptions() argument 166 final Window window = activity.getWindow(); in setEnterActivityOptions() 184 intent.setExtrasClassLoader(activity.getClassLoader()); in setEnterActivityOptions() 186 activity.onActivityReenter(result, intent); in setEnterActivityOptions() 192 public void enterReady(Activity activity) { in enterReady() argument 202 activity.getWindow().getDecorView().setVisibility(View.VISIBLE); in enterReady() 204 mEnterTransitionCoordinator = new EnterTransitionCoordinator(activity, in enterReady() 261 public void onResume(Activity activity) { in onResume() argument 264 if (mEnterTransitionCoordinator == null || activity.isTopOfTask()) { in onResume() 268 activity.mHandler.postDelayed(new Runnable() { in onResume() [all …]
|
/frameworks/base/core/java/android/nfc/ |
D | NfcActivityManager.java | 113 Activity activity; field in NfcActivityManager.NfcActivityState 125 public NfcActivityState(Activity activity) { in NfcActivityState() argument 126 if (activity.getWindow().isDestroyed()) { in NfcActivityState() 131 resumed = activity.isResumed(); in NfcActivityState() 133 this.activity = activity; in NfcActivityState() 135 registerApplication(activity.getApplication()); in NfcActivityState() 138 unregisterApplication(activity.getApplication()); in destroy() 140 activity = null; in destroy() 164 synchronized NfcActivityState findActivityState(Activity activity) { in findActivityState() argument 166 if (state.activity == activity) { in findActivityState() [all …]
|
D | NfcAdapter.java | 992 public void setBeamPushUris(Uri[] uris, Activity activity) { in setBeamPushUris() argument 1001 if (activity == null) { in setBeamPushUris() 1016 mNfcActivityManager.setNdefPushContentUri(activity, uris); in setBeamPushUris() 1080 public void setBeamPushUrisCallback(CreateBeamUrisCallback callback, Activity activity) { in setBeamPushUrisCallback() argument 1089 if (activity == null) { in setBeamPushUrisCallback() 1092 mNfcActivityManager.setNdefPushContentUriCallback(activity, callback); in setBeamPushUrisCallback() 1170 public void setNdefPushMessage(NdefMessage message, Activity activity, in setNdefPushMessage() argument 1182 if (activity == null) { in setNdefPushMessage() 1185 mNfcActivityManager.setNdefPushMessage(activity, message, 0); in setNdefPushMessage() 1208 public void setNdefPushMessage(NdefMessage message, Activity activity, int flags) { in setNdefPushMessage() argument [all …]
|
/frameworks/base/native/android/ |
D | native_activity.cpp | 24 void ANativeActivity_finish(ANativeActivity* activity) { in ANativeActivity_finish() argument 25 android_NativeActivity_finish(activity); in ANativeActivity_finish() 28 void ANativeActivity_setWindowFormat(ANativeActivity* activity, int32_t format) { in ANativeActivity_setWindowFormat() argument 29 android_NativeActivity_setWindowFormat(activity, format); in ANativeActivity_setWindowFormat() 32 void ANativeActivity_setWindowFlags(ANativeActivity* activity, in ANativeActivity_setWindowFlags() argument 34 android_NativeActivity_setWindowFlags(activity, addFlags, addFlags|removeFlags); in ANativeActivity_setWindowFlags() 37 void ANativeActivity_showSoftInput(ANativeActivity* activity, uint32_t flags) { in ANativeActivity_showSoftInput() argument 38 android_NativeActivity_showSoftInput(activity, flags); in ANativeActivity_showSoftInput() 41 void ANativeActivity_hideSoftInput(ANativeActivity* activity, uint32_t flags) { in ANativeActivity_hideSoftInput() argument 42 android_NativeActivity_hideSoftInput(activity, flags); in ANativeActivity_hideSoftInput()
|
/frameworks/opt/gamesdk/src/tuningfork/ |
D | tuningfork_extra.cpp | 73 SwappyTuningFork(const CProtobufSerialization& settings_ser, JNIEnv* env, jobject activity, in SwappyTuningFork() argument 83 TuningFork_init(&settings_ser, env, activity); 123 jobject activity, const char* libName, void (*frame_callback)()) { in Init() argument 125 new SwappyTuningFork(*settings, env, activity, frame_callback, libName)); in Init() 134 bool GetSettingsSerialization(JNIEnv* env, jobject activity, in GetSettingsSerialization() argument 136 auto asset = apk_utils::GetAsset(env, activity, "tuningfork/tuningfork_settings.bin"); in GetSettingsSerialization() 154 void GetFidelityParamsSerialization(JNIEnv* env, jobject activity, in GetFidelityParamsSerialization() argument 161 auto fp = apk_utils::GetAsset(env, activity, name.str().c_str()); in GetFidelityParamsSerialization() 183 bool GetSavedFileName(JNIEnv* env, jobject activity, std::string& name) { in GetSavedFileName() argument 187 tf_path_str << file_utils::GetAppCacheDir(env, activity) << "/tuningfork"; in GetSavedFileName() [all …]
|
/frameworks/base/core/tests/coretests/src/android/view/ |
D | IncludeTest.java | 37 final Include activity = getActivity(); in testIncluded() local 39 final View button1 = activity.findViewById(R.id.included_button); in testIncluded() 42 final View button2 = activity.findViewById(R.id.included_button_overriden); in testIncluded() 48 final Include activity = getActivity(); in testIncludedWithLayoutParams() local 50 final View button1 = activity.findViewById(R.id.included_button); in testIncludedWithLayoutParams() 51 final View button2 = activity.findViewById(R.id.included_button_overriden); in testIncludedWithLayoutParams() 61 final Include activity = getActivity(); in testIncludedWithVisibility() local 62 final View button1 = activity.findViewById(R.id.included_button_visibility); in testIncludedWithVisibility() 70 final Include activity = getActivity(); in testIncludedWithSize() local 71 final View button1 = activity.findViewById(R.id.included_button_with_size); in testIncludedWithSize()
|
D | RunQueueTest.java | 35 final RunQueue activity = getActivity(); in testRunnableRan() local 37 assertTrue("The runnable did not run", activity.runnableRan); in testRunnableRan() 42 final RunQueue activity = getActivity(); in testRunnableCancelled() local 44 assertTrue("The runnable was not cancelled", activity.runnableCancelled); in testRunnableCancelled() 49 final RunQueue activity = getActivity(); in testListenerFired() local 51 assertTrue("The global layout listener did not fire", activity.globalLayout); in testListenerFired() 56 final RunQueue activity = getActivity(); in testTreeObserverKilled() local 58 assertFalse("The view tree observer is still alive", activity.viewTreeObserver.isAlive()); in testTreeObserverKilled()
|
D | ViewStubTest.java | 38 final StubbedView activity = getActivity(); in testStubbed() local 40 final View stub = activity.findViewById(R.id.viewStub); in testStubbed() 47 final StubbedView activity = getActivity(); in testInflated() local 49 final ViewStub stub = (ViewStub) activity.findViewById(R.id.viewStub); in testInflated() 58 final StubbedView activity = getActivity(); in testInflatedId() local 60 final ViewStub stub = (ViewStub) activity.findViewById(R.id.viewStubWithId); in testInflatedId() 71 final StubbedView activity = getActivity(); in testInflatedLayoutParams() local 73 final ViewStub stub = (ViewStub) activity.findViewById(R.id.viewStubWithId); in testInflatedLayoutParams()
|
D | ViewAttachTest.java | 53 final ViewAttachTestActivity activity = getActivity(); in testAttached() local 55 activity.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT); in testAttached() 57 activity.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE); in testAttached() 71 final ViewAttachTestActivity activity = getActivity(); in testRoundScrollbars() local 72 final View rootView = activity.getWindow().getDecorView(); in testRoundScrollbars() 85 View contentView = activity.findViewById(R.id.view_attach_view); in testRoundScrollbars() 88 if (activity.getResources().getConfiguration().isScreenRound()) { in testRoundScrollbars()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | LaunchObserverRegistryImpl.java | 86 @ActivityRecordProto byte[] activity, in onActivityLaunched() 90 this, activity, temperature)); in onActivityLaunched() 95 @ActivityRecordProto byte[] activity) { in onActivityLaunchCancelled() 97 LaunchObserverRegistryImpl::handleOnActivityLaunchCancelled, this, activity)); in onActivityLaunchCancelled() 102 @ActivityRecordProto byte[] activity) { in onActivityLaunchFinished() 104 LaunchObserverRegistryImpl::handleOnActivityLaunchFinished, this, activity)); in onActivityLaunchFinished() 136 @ActivityRecordProto byte[] activity, in handleOnActivityLaunched() 141 o.onActivityLaunched(activity, temperature); in handleOnActivityLaunched() 146 @ActivityRecordProto byte[] activity) { in handleOnActivityLaunchCancelled() 150 o.onActivityLaunchCancelled(activity); in handleOnActivityLaunchCancelled() [all …]
|
/frameworks/base/tests/UiBench/src/com/android/test/uibench/leanback/ |
D | TestHelper.java | 194 public static boolean runEntranceTransition(Activity activity) { in runEntranceTransition() argument 195 return activity.getIntent().getBooleanExtra(EXTRA_ENTRANCE_TRANSITION, in runEntranceTransition() 199 public static RowsAdapterBuilder initRowsAdapterBuilder(Activity activity) { in initRowsAdapterBuilder() argument 200 RowsAdapterBuilder builder = new RowsAdapterBuilder(activity); in initRowsAdapterBuilder() 201 boolean shadow = activity.getIntent().getBooleanExtra(EXTRA_CARD_SHADOW, in initRowsAdapterBuilder() 203 boolean roundRect = activity.getIntent().getBooleanExtra(EXTRA_CARD_ROUND_RECT, in initRowsAdapterBuilder() 205 int widthDp = activity.getIntent().getIntExtra(EXTRA_CARD_WIDTH_DP, in initRowsAdapterBuilder() 207 int heightDp = activity.getIntent().getIntExtra(EXTRA_CARD_HEIGHT_DP, in initRowsAdapterBuilder() 209 int rows = activity.getIntent().getIntExtra(EXTRA_ROWS, DEFAULT_ROWS); in initRowsAdapterBuilder() 210 int cardsPerRow = activity.getIntent().getIntExtra(EXTRA_CARDS_PER_ROW, in initRowsAdapterBuilder() [all …]
|
/frameworks/base/startop/scripts/app_startup/ |
D | force_compiler_filter | 40 -a, --activity activity of the app to recompile 52 -a|--activity) 53 activity="$2" 92 if [[ "$activity" == "" ]]; then 93 activity="$(get_activity_name "$package")" 94 if [[ "$activity" == "" ]]; then 98 verbose_print "Activity name inferred: " "$activity" 123 local output=$("$DIR"/launch_application "$package" "$activity")
|
D | launch_application | 22 local activity="$2" 27 activity=${activity//\$/\\$} 29 local am_output="$(adb shell am start -S -W "$package"/"$activity")" 30 verbose_print adb shell am start -S -W "$package"/"$activity"
|
D | run_app_with_prefetch | 22 -a, --activity <name> activity to use 58 -a|--activity) 59 activity="$2" 142 if [[ "$activity" == "" ]]; then 143 activity="$(get_activity_name "$package")" 144 if [[ "$activity" == "" ]]; then 148 verbose_print "Activity name inferred: " "$activity" 294 …filter --compiler-filter "$the_compiler_filter" --package "$the_package" --activity "$the_activity" 295 …filter --compiler-filter "$the_compiler_filter" --package "$the_package" --activity "$the_activity" 307 configure_compiler_filter "$compiler_filter" "$package" "$activity" || exit 1 [all …]
|
/frameworks/base/core/java/android/hardware/location/ |
D | ActivityRecognitionHardware.java | 63 public int activity; field in ActivityRecognitionHardware.Event 98 public boolean isActivitySupported(String activity) { in isActivitySupported() argument 100 int activityType = getActivityType(activity); in isActivitySupported() 117 public boolean enableActivityEvent(String activity, int eventType, long reportLatencyNs) { in enableActivityEvent() argument 120 int activityType = getActivityType(activity); in enableActivityEvent() 134 public boolean disableActivityEvent(String activity, int eventType) { in disableActivityEvent() argument 137 int activityType = getActivityType(activity); in disableActivityEvent() 171 String activityName = getActivityName(event.activity); in onActivityChanged() 203 private int getActivityType(String activity) { in getActivityType() argument 204 if (TextUtils.isEmpty(activity)) { in getActivityType() [all …]
|
/frameworks/base/tests/FrameworkPerf/src/com/android/frameworkperf/ |
D | FrameworkPerfTest.java | 16 final FrameworkPerfActivity activity = getActivity(); in testFrameworkPerf() local 17 synchronized (activity.mResultNotifier) { in testFrameworkPerf() 21 activity.startRunning(); in testFrameworkPerf() 25 activity.mResultNotifier.wait(TEST_TIMEOUT); in testFrameworkPerf() 31 synchronized (activity.mResults) { in testFrameworkPerf() 32 assertTrue("test results were empty.", activity.mResults.size() > 0); in testFrameworkPerf() 33 for (RunResult result : activity.mResults) { in testFrameworkPerf()
|
/frameworks/base/core/tests/coretests/src/android/widget/layout/frame/ |
D | FrameLayoutGravityTest.java | 48 final Activity activity = getActivity(); in setUp() local 50 mParent = activity.findViewById(R.id.parent); in setUp() 52 mLeftView = activity.findViewById(R.id.left); in setUp() 53 mRightView = activity.findViewById(R.id.right); in setUp() 54 mCenterHorizontalView = activity.findViewById(R.id.center_horizontal); in setUp() 56 mLeftCenterVerticalView = activity.findViewById(R.id.left_center_vertical); in setUp() 57 mRighCenterVerticalView = activity.findViewById(R.id.right_center_vertical); in setUp() 58 mCenterView = activity.findViewById(R.id.center); in setUp() 60 mLeftBottomView = activity.findViewById(R.id.left_bottom); in setUp() 61 mRightBottomView = activity.findViewById(R.id.right_bottom); in setUp() [all …]
|
/frameworks/base/core/tests/coretests/src/android/widget/ |
D | RadioGroupPreCheckedTest.java | 37 final RadioGroupActivity activity = getActivity(); in testRadioButtonPreChecked() local 39 RadioButton radio = (RadioButton) activity.findViewById(R.id.value_one); in testRadioButtonPreChecked() 42 RadioGroup group = (RadioGroup) activity.findViewById(R.id.group); in testRadioButtonPreChecked() 49 final RadioGroupActivity activity = getActivity(); in testRadioButtonChangePreChecked() local 51 RadioButton radio = (RadioButton) activity.findViewById(R.id.value_two); in testRadioButtonChangePreChecked() 54 RadioButton old = (RadioButton) activity.findViewById(R.id.value_one); in testRadioButtonChangePreChecked() 59 RadioGroup group = (RadioGroup) activity.findViewById(R.id.group); in testRadioButtonChangePreChecked()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | EventLogTags.logtags | 16 # An activity is being finished: 20 # An existing activity is being given a new intent: 24 # A new activity is being created in an existing task: 26 # An activity has been resumed into the foreground but was not already running: 28 # An activity has been resumed and is now in the foreground: 38 # The Activity Manager failed to pause the given activity. 40 # Attempting to pause the current activity 50 # An activity is being destroyed: 52 # An activity has been relaunched, resumed, and is now in the foreground: 54 # An activity has been relaunched: [all …]
|
/frameworks/base/core/jni/include/android_runtime/ |
D | android_app_NativeActivity.h | 29 ANativeActivity* activity); 32 ANativeActivity* activity, int32_t format); 35 ANativeActivity* activity, int32_t values, int32_t mask); 38 ANativeActivity* activity, int32_t flags); 41 ANativeActivity* activity, int32_t flags);
|
/frameworks/base/core/tests/coretests/src/android/widget/layout/table/ |
D | VerticalGravityTest.java | 48 final VerticalGravity activity = getActivity(); in setUp() local 49 mReference1 = activity.findViewById(R.id.reference1); in setUp() 50 mReference2 = activity.findViewById(R.id.reference2); in setUp() 51 mReference3 = activity.findViewById(R.id.reference3); in setUp() 52 mTop = activity.findViewById(R.id.cell_top); in setUp() 53 mCenter = activity.findViewById(R.id.cell_center); in setUp() 54 mBottom = activity.findViewById(R.id.cell_bottom); in setUp()
|