/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | ActivityRecordTests.java | 211 final ActivityRecord activity = createActivityWith2LevelTask(); in testTaskFragmentCleanupOnClearingTask() local 212 final Task task = activity.getTask(); in testTaskFragmentCleanupOnClearingTask() 213 final TaskFragment taskFragment = activity.getTaskFragment(); in testTaskFragmentCleanupOnClearingTask() 214 activity.onParentChanged(null /*newParent*/, task); in testTaskFragmentCleanupOnClearingTask() 220 final ActivityRecord activity = createActivityWith2LevelTask(); in testTaskFragmentCleanupOnActivityRemoval() local 221 final Task task = activity.getTask(); in testTaskFragmentCleanupOnActivityRemoval() 222 final TaskFragment taskFragment = activity.getTaskFragment(); in testTaskFragmentCleanupOnActivityRemoval() 223 task.removeChild(activity); in testTaskFragmentCleanupOnActivityRemoval() 229 final ActivityRecord activity = createActivityWith2LevelTask(); in testRootTaskCleanupOnTaskRemoval() local 230 final Task task = activity.getTask(); in testRootTaskCleanupOnTaskRemoval() [all …]
|
D | UnknownAppVisibilityControllerTest.java | 48 final ActivityRecord activity = createNonAttachedActivityRecord(mDisplayContent); in testFlow() local 49 mDisplayContent.mUnknownAppVisibilityController.notifyLaunched(activity); in testFlow() 50 mDisplayContent.mUnknownAppVisibilityController.notifyAppResumedFinished(activity); in testFlow() 51 mDisplayContent.mUnknownAppVisibilityController.notifyRelayouted(activity); in testFlow() 60 final ActivityRecord activity = createNonAttachedActivityRecord(mDisplayContent); in testSkipResume() local 61 activity.mLaunchTaskBehind = true; in testSkipResume() 62 mDisplayContent.mUnknownAppVisibilityController.notifyLaunched(activity); in testSkipResume() 63 mDisplayContent.mUnknownAppVisibilityController.notifyRelayouted(activity); in testSkipResume() 88 final ActivityRecord activity = createNonAttachedActivityRecord(mDisplayContent); in testClear() local 89 mDisplayContent.mUnknownAppVisibilityController.notifyLaunched(activity); in testClear() [all …]
|
D | RecentsAnimationControllerTest.java | 113 final ActivityRecord activity = createActivityRecord(mDefaultDisplay); in testRemovedBeforeStarted_expectCanceled() local 114 AnimationAdapter adapter = mController.addAnimation(activity.getTask(), in testRemovedBeforeStarted_expectCanceled() 131 final ActivityRecord activity = createActivityRecord(mDefaultDisplay); in testCancelAfterRemove_expectIgnored() local 132 AnimationAdapter adapter = mController.addAnimation(activity.getTask(), in testCancelAfterRemove_expectIgnored() 138 activity.removeImmediately(); in testCancelAfterRemove_expectIgnored() 152 final ActivityRecord activity = createActivityRecord(mDefaultDisplay); in testIncludedApps_expectTargetAndVisible() local 161 assertTrue(mController.isAnimatingTask(activity.getTask())); in testIncludedApps_expectTargetAndVisible() 193 final ActivityRecord activity = createActivityRecord(mDefaultDisplay); in testWallpaperIncluded_expectTarget() local 194 final WindowState win1 = createWindow(null, TYPE_BASE_APPLICATION, activity, "win1"); in testWallpaperIncluded_expectTarget() 195 activity.addWindow(win1); in testWallpaperIncluded_expectTarget() [all …]
|
D | SizeCompatTests.java | 357 final ActivityRecord activity = getActivityBuilderOnSameTask() in testRepositionLandscapeImmersiveAppWithDisplayCutout() local 362 doReturn(true).when(activity).isImmersiveMode(any()); in testRepositionLandscapeImmersiveAppWithDisplayCutout() 363 addWindowToActivity(activity); in testRepositionLandscapeImmersiveAppWithDisplayCutout() 364 activity.mRootWindowContainer.performSurfacePlacement(); in testRepositionLandscapeImmersiveAppWithDisplayCutout() 375 activity.mLetterboxUiController.handleVerticalDoubleTap(y); in testRepositionLandscapeImmersiveAppWithDisplayCutout() 376 activity.mRootWindowContainer.performSurfacePlacement(); in testRepositionLandscapeImmersiveAppWithDisplayCutout() 379 final Rect bounds = activity.getBounds(); in testRepositionLandscapeImmersiveAppWithDisplayCutout() 385 assertEquals(dh, innerBoundsOf.apply(activity).bottom); in testRepositionLandscapeImmersiveAppWithDisplayCutout() 390 assertEquals(cutoutHeight, innerBoundsOf.apply(activity).top); in testRepositionLandscapeImmersiveAppWithDisplayCutout() 428 final ActivityRecord activity = getActivityBuilderOnSameTask() in testFixedAspectRatioBoundsWithDecorInSquareDisplay() local [all …]
|
/frameworks/base/tests/SurfaceViewBufferTests/src/com/android/test/ |
D | BufferRejectionTests.kt | 32 val trace = withTrace { activity -> in <lambda>() method 33 activity.mSurfaceProxy.ANativeWindowSetBuffersGeometry(activity.surface!!, 100, 100, in <lambda>() 35 activity.mSurfaceProxy.ANativeWindowLock() in <lambda>() 36 activity.mSurfaceProxy.ANativeWindowUnlockAndPost() in <lambda>() 37 activity.mSurfaceProxy.ANativeWindowLock() in <lambda>() 38 activity.mSurfaceProxy.ANativeWindowSetBuffersGeometry(activity.surface!!, 0, 0, in <lambda>() 41 activity.mSurfaceProxy.ANativeWindowUnlockAndPost() in <lambda>() 44 activity.mSurfaceProxy.ANativeWindowLock() in <lambda>() 45 activity.mSurfaceProxy.ANativeWindowUnlockAndPost() in <lambda>() 46 activity.mSurfaceProxy.waitUntilBufferDisplayed(3, 500 /* ms */) in <lambda>() [all …]
|
D | BufferPresentationTests.kt | 31 val trace = withTrace { activity -> in <lambda>() method 33 activity.mSurfaceProxy.ANativeWindowLock() in <lambda>() 34 activity.mSurfaceProxy.ANativeWindowUnlockAndPost() in <lambda>() 36 assertEquals(0, activity.mSurfaceProxy.waitUntilBufferDisplayed(numFrames, in <lambda>() 45 val trace = withTrace { activity -> in <lambda>() method 46 assertEquals(0, activity.mSurfaceProxy.SurfaceDequeueBuffer(0, 1000 /* ms */)) in <lambda>() 47 assertEquals(0, activity.mSurfaceProxy.SurfaceDequeueBuffer(1, 1000 /* ms */)) in <lambda>() 49 activity.mSurfaceProxy.SurfaceQueueBuffer(1) in <lambda>() 50 activity.mSurfaceProxy.SurfaceQueueBuffer(0) in <lambda>() 51 assertEquals(0, activity.mSurfaceProxy.waitUntilBufferDisplayed(2, 5000 /* ms */)) in <lambda>() [all …]
|
D | GeometryTests.kt | 38 val trace = withTrace { activity -> in <lambda>() method 39 activity.mSurfaceProxy.ANativeWindowSetBuffersGeometry(activity.surface!!, 0, 0, in <lambda>() 41 activity.mSurfaceProxy.ANativeWindowLock() in <lambda>() 42 activity.mSurfaceProxy.ANativeWindowUnlockAndPost() in <lambda>() 43 activity.mSurfaceProxy.waitUntilBufferDisplayed(1, 500 /* ms */) in <lambda>() 53 val trace = withTrace { activity -> in <lambda>() method 54 activity.mSurfaceProxy.ANativeWindowSetBuffersGeometry(activity.surface!!, bufferSize, in <lambda>() 56 activity.drawFrame() in <lambda>() 57 activity.mSurfaceProxy.waitUntilBufferDisplayed(1, 500 /* ms */) in <lambda>() 70 val trace = withTrace { activity -> in <lambda>() method [all …]
|
D | InverseDisplayTransformTests.kt | 48 val trace = withTrace { activity -> in <lambda>() method 51 activity.mSurfaceProxy.ANativeWindowSetBuffersTransform(Transform.INVERSE_DISPLAY.value) in <lambda>() 52 assertEquals(0, activity.mSurfaceProxy.SurfaceDequeueBuffer(0, 1000 /* ms */)) in <lambda>() 53 activity.mSurfaceProxy.SurfaceQueueBuffer(0) in <lambda>() 55 assertEquals(activity.mSurfaceProxy.waitUntilBufferDisplayed(1, 500 /* ms */), 0) in <lambda>() 56 activity.mSurfaceProxy.ANativeWindowSetBuffersGeometry(activity.surface!!, in <lambda>() 58 assertEquals(0, activity.mSurfaceProxy.SurfaceDequeueBuffer(0, 1000 /* ms */)) in <lambda>() 59 assertEquals(0, activity.mSurfaceProxy.SurfaceDequeueBuffer(1, 1000 /* ms */)) in <lambda>() 61 activity.mSurfaceProxy.ANativeWindowSetBuffersGeometry(activity.surface!!, Point(0, 0), in <lambda>() 65 activity.mSurfaceProxy.ANativeWindowSetBuffersTransform(Transform.ROT_90.value) in <lambda>() [all …]
|
/frameworks/base/tests/InputMethodStressTest/src/com/android/inputmethod/stresstest/ |
D | ImeOpenCloseStressTest.java | 101 TestActivity activity = TestActivity.start(intent); in testShowHideWithInputMethodManager_waitingVisibilityChange() local 103 requestFocusAndVerify(activity); in testShowHideWithInputMethodManager_waitingVisibilityChange() 106 int iterNum = hasUnfocusableWindowFlags(activity) ? 1 : NUM_TEST_ITERATIONS; in testShowHideWithInputMethodManager_waitingVisibilityChange() 110 callOnMainSync(activity::showImeWithInputMethodManager); in testShowHideWithInputMethodManager_waitingVisibilityChange() 111 verifyShowBehavior(activity); in testShowHideWithInputMethodManager_waitingVisibilityChange() 113 callOnMainSync(activity::hideImeWithInputMethodManager); in testShowHideWithInputMethodManager_waitingVisibilityChange() 114 verifyHideBehavior(activity); in testShowHideWithInputMethodManager_waitingVisibilityChange() 123 TestActivity activity = TestActivity.start(intent); in testShowHideWithInputMethodManager_waitingAnimationEnd() local 125 requestFocusAndVerify(activity); in testShowHideWithInputMethodManager_waitingAnimationEnd() 127 activity.enableAnimationMonitoring(); in testShowHideWithInputMethodManager_waitingAnimationEnd() [all …]
|
D | AutoShowTest.java | 102 TestActivity activity = TestActivity.start(intent); in autoShow_hasFocusedView_requestFocus() local 104 verifyAutoShowBehavior_forwardWithKeyboardOff(activity); in autoShow_hasFocusedView_requestFocus() 116 TestActivity activity = TestActivity.start(intent); in autoShow_hasFocusedView_notRequestFocus() local 117 EditText editText = activity.getEditText(); in autoShow_hasFocusedView_notRequestFocus() 119 int windowFlags = activity.getWindow().getAttributes().flags; in autoShow_hasFocusedView_notRequestFocus() 145 TestActivity activity = TestActivity.start(intent); in autoShow_notFocusedView_notRequestFocus() local 146 EditText editText = activity.getEditText(); in autoShow_notFocusedView_notRequestFocus() 148 int windowFlags = activity.getWindow().getAttributes().flags; in autoShow_notFocusedView_notRequestFocus() 254 TestActivity activity = TestActivity.start(intent1); in autoShow_backwardWithKeyboardOn() local 256 requestFocusAndVerify(activity); in autoShow_backwardWithKeyboardOn() [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/tests/coretests/src/android/app/activity/ |
D | ActivityThreadTest.java | 17 package android.app.activity; 168 final Activity activity = mActivityTestRule.launchActivity(new Intent()); in testDoubleRelaunch() local 169 final IApplicationThread appThread = activity.getActivityThread().getApplicationThread(); in testDoubleRelaunch() 171 appThread.scheduleTransaction(newRelaunchResumeTransaction(activity)); in testDoubleRelaunch() 172 appThread.scheduleTransaction(newRelaunchResumeTransaction(activity)); in testDoubleRelaunch() 178 final Activity activity = mActivityTestRule.launchActivity(new Intent()); in testResumeAfterRelaunch() local 179 final IApplicationThread appThread = activity.getActivityThread().getApplicationThread(); in testResumeAfterRelaunch() 181 appThread.scheduleTransaction(newRelaunchResumeTransaction(activity)); in testResumeAfterRelaunch() 182 appThread.scheduleTransaction(newResumeTransaction(activity)); in testResumeAfterRelaunch() 189 final Activity activity = mActivityTestRule.launchActivity(new Intent()); in testRepeatedResume() local [all …]
|
D | RegisterComponentCallbacksTest.java | 17 package android.app.activity; 29 import android.app.activity.ActivityThreadTest.TestActivity; 72 scenario.onActivity(activity -> { in testRegisterComponentCallbacks() 74 activity.unregisterComponentCallbacks(callbacks); in testRegisterComponentCallbacks() 76 activity.registerComponentCallbacks(callbacks); in testRegisterComponentCallbacks() 78 activity.onConfigurationChanged(config); in testRegisterComponentCallbacks() 81 activity.onTrimMemory(trimMemoryLevel); in testRegisterComponentCallbacks() 84 activity.onLowMemory(); in testRegisterComponentCallbacks() 87 activity.unregisterComponentCallbacks(callbacks); in testRegisterComponentCallbacks() 103 scenario.onActivity(activity -> { in testRegisterComponentCallbacksBeforeT() [all …]
|
/frameworks/base/core/java/android/app/ |
D | Application.java | 76 default void onActivityPreCreated(@NonNull Activity activity, in onActivityPreCreated() argument 83 void onActivityCreated(@NonNull Activity activity, @Nullable Bundle savedInstanceState); in onActivityCreated() argument 89 default void onActivityPostCreated(@NonNull Activity activity, in onActivityPostCreated() argument 97 default void onActivityPreStarted(@NonNull Activity activity) { in onActivityPreStarted() argument 103 void onActivityStarted(@NonNull Activity activity); in onActivityStarted() argument 109 default void onActivityPostStarted(@NonNull Activity activity) { in onActivityPostStarted() argument 116 default void onActivityPreResumed(@NonNull Activity activity) { in onActivityPreResumed() argument 122 void onActivityResumed(@NonNull Activity activity); in onActivityResumed() argument 128 default void onActivityPostResumed(@NonNull Activity activity) { in onActivityPostResumed() argument 135 default void onActivityPrePaused(@NonNull Activity activity) { in onActivityPrePaused() argument [all …]
|
/frameworks/libs/binary_translation/native_activity/ |
D | native_activity_wrapper.cc | 36 Guest_ANativeActivity* ToGuestNativeActivity(ANativeActivity* activity) { in ToGuestNativeActivity() argument 37 return reinterpret_cast<Guest_ANativeActivity*>(activity->instance); in ToGuestNativeActivity() 40 Guest_ANativeActivityCallbacks* GetGuestCallbacks(Guest_ANativeActivity* activity) { in GetGuestCallbacks() argument 41 return ToHostAddr<Guest_ANativeActivityCallbacks>(activity->callbacks); in GetGuestCallbacks() 57 void Wrap_OnStart(ANativeActivity* activity) { in Wrap_OnStart() argument 58 Guest_ANativeActivity* guest_activity = ToGuestNativeActivity(activity); in Wrap_OnStart() 68 void Wrap_OnResume(ANativeActivity* activity) { in Wrap_OnResume() argument 69 Guest_ANativeActivity* guest_activity = ToGuestNativeActivity(activity); in Wrap_OnResume() 79 void* Wrap_OnSaveInstanceState(ANativeActivity* activity, size_t* outSize) { in Wrap_OnSaveInstanceState() argument 80 Guest_ANativeActivity* guest_activity = ToGuestNativeActivity(activity); in Wrap_OnSaveInstanceState() [all …]
|
/frameworks/base/tests/CtsSurfaceControlTestsStaging/src/main/java/android/view/surfacecontroltests/ |
D | SurfaceControlTest.java | 52 GraphicsActivity activity = mActivityRule.getActivity(); in setUp() local 65 mDisplayManager = activity.getSystemService(DisplayManager.class); in setUp() 87 GraphicsActivity activity = mActivityRule.getActivity(); in testSurfaceControlFrameRateCompatibilityGte() local 88 activity.testSurfaceControlFrameRateCompatibility(Surface.FRAME_RATE_COMPATIBILITY_GTE); in testSurfaceControlFrameRateCompatibilityGte() 93 GraphicsActivity activity = mActivityRule.getActivity(); in testSurfaceControlFrameRateCategoryHigh() local 94 activity.testSurfaceControlFrameRateCategory(Surface.FRAME_RATE_CATEGORY_HIGH); in testSurfaceControlFrameRateCategoryHigh() 99 GraphicsActivity activity = mActivityRule.getActivity(); in testSurfaceControlFrameRateCategoryHighHint() local 100 activity.testSurfaceControlFrameRateCategory(Surface.FRAME_RATE_CATEGORY_HIGH_HINT); in testSurfaceControlFrameRateCategoryHighHint() 105 GraphicsActivity activity = mActivityRule.getActivity(); in testSurfaceControlFrameRateCategoryNormal() local 106 activity.testSurfaceControlFrameRateCategory(Surface.FRAME_RATE_CATEGORY_NORMAL); in testSurfaceControlFrameRateCategoryNormal() [all …]
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | ActivityRefresher.java | 71 void onActivityConfigurationChanging(@NonNull ActivityRecord activity, in onActivityConfigurationChanging() argument 73 if (!shouldRefreshActivity(activity, newConfig, lastReportedConfig)) { in onActivityConfigurationChanging() 80 && !activity.mLetterboxUiController in onActivityConfigurationChanging() 83 activity.mLetterboxUiController.setIsRefreshRequested(true); in onActivityConfigurationChanging() 86 + "activityRecord=%s", activity); in onActivityConfigurationChanging() 88 activity.token, cycleThroughStop ? ON_STOP : ON_PAUSE); in onActivityConfigurationChanging() 90 activity.token, /* isForward */ false, /* shouldSendCompatFakeFocus */ false); in onActivityConfigurationChanging() 92 activity.mAtmService.getLifecycleManager().scheduleTransactionAndLifecycleItems( in onActivityConfigurationChanging() 93 activity.app.getThread(), refreshCallbackItem, resumeActivityItem); in onActivityConfigurationChanging() 96 onActivityRefreshed(activity); in onActivityConfigurationChanging() [all …]
|
D | UnknownAppVisibilityController.java | 95 void appRemovedOrHidden(@NonNull ActivityRecord activity) { in appRemovedOrHidden() argument 100 Slog.d(TAG, "App removed or hidden activity=" + activity); in appRemovedOrHidden() 102 mUnknownApps.remove(activity); in appRemovedOrHidden() 109 void notifyLaunched(@NonNull ActivityRecord activity) { in notifyLaunched() argument 111 Slog.d(TAG, "App launched activity=" + activity); in notifyLaunched() 115 if (!activity.mLaunchTaskBehind) { in notifyLaunched() 116 mUnknownApps.put(activity, UNKNOWN_STATE_WAITING_RESUME); in notifyLaunched() 118 mUnknownApps.put(activity, UNKNOWN_STATE_WAITING_RELAYOUT); in notifyLaunched() 125 void notifyAppResumedFinished(@NonNull ActivityRecord activity) { in notifyAppResumedFinished() argument 129 final Integer state = mUnknownApps.get(activity); in notifyAppResumedFinished() [all …]
|
/frameworks/base/nfc/java/android/nfc/ |
D | NfcActivityManager.java | 109 Activity activity; field in NfcActivityManager.NfcActivityState 118 public NfcActivityState(Activity activity) { in NfcActivityState() argument 119 if (activity.isDestroyed()) { in NfcActivityState() 124 resumed = activity.isResumed(); in NfcActivityState() 126 this.activity = activity; in NfcActivityState() 128 registerApplication(activity.getApplication()); in NfcActivityState() 131 unregisterApplication(activity.getApplication()); in destroy() 133 activity = null; in destroy() 152 synchronized NfcActivityState findActivityState(Activity activity) { in findActivityState() argument 154 if (state.activity == activity) { in findActivityState() [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/base/packages/SystemUI/src/com/android/systemui/dagger/ |
D | DefaultActivityBinder.java | 31 import com.android.systemui.telephony.ui.activity.SwitchToManagedProfileForCallActivity; 55 public abstract Activity bindTunerActivity(TunerActivity activity); in bindTunerActivity() argument 61 public abstract Activity bindForegroundServicesDialog(ForegroundServicesDialog activity); in bindForegroundServicesDialog() argument 67 public abstract Activity bindWorkLockActivity(WorkLockActivity activity); in bindWorkLockActivity() argument 73 public abstract Activity bindBrightnessDialog(BrightnessDialog activity); in bindBrightnessDialog() argument 79 public abstract Activity bindUsbDebuggingActivity(UsbDebuggingActivity activity); in bindUsbDebuggingActivity() argument 86 UsbDebuggingSecondaryUserActivity activity); in bindUsbDebuggingSecondaryUserActivity() argument 92 public abstract Activity bindUsbPermissionActivity(UsbPermissionActivity activity); in bindUsbPermissionActivity() argument 98 public abstract Activity bindUsbConfirmActivity(UsbConfirmActivity activity); in bindUsbConfirmActivity() argument 104 public abstract Activity bindUsbAccessoryUriActivity(UsbAccessoryUriActivity activity); in bindUsbAccessoryUriActivity() argument [all …]
|
/frameworks/base/core/java/com/android/internal/pm/pkg/component/ |
D | ParsedActivityUtils.java | 92 final ParsedActivityImpl activity = new ParsedActivityImpl(); in parseActivityOrReceiver() local 99 ParsedMainComponentUtils.parseMainComponent(activity, tag, separateProcesses, in parseActivityOrReceiver() 119 if (Objects.equals(activity.getProcessName(), packageName)) { in parseActivityOrReceiver() 129 activity.setTheme(sa.getResourceId(R.styleable.AndroidManifestActivity_theme, 0)) in parseActivityOrReceiver() 132 …activity.setFlags(activity.getFlags() | (flag(ActivityInfo.FLAG_ALLOW_TASK_REPARENTING, R.styleabl… in parseActivityOrReceiver() 147 …activity.setFlags(activity.getFlags() | (flag(ActivityInfo.FLAG_HARDWARE_ACCELERATED, R.styleable.… in parseActivityOrReceiver() 159 …activity.setPrivateFlags(activity.getPrivateFlags() | (flag(ActivityInfo.FLAG_INHERIT_SHOW_WHEN_LO… in parseActivityOrReceiver() 164 …activity.setColorMode(sa.getInt(R.styleable.AndroidManifestActivity_colorMode, ActivityInfo.COLOR_… in parseActivityOrReceiver() 180 activity.setScreenOrientation(screenOrientation) in parseActivityOrReceiver() 186 activity.setMaxAspectRatio(resizeMode, in parseActivityOrReceiver() [all …]
|
/frameworks/base/core/tests/coretests/src/android/view/ |
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 | 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 | 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() 105 final ViewAttachTestActivity activity = getActivity(); in testRoundScrollbarsWithMargins() local 106 final View rootView = activity.getWindow().getDecorView(); in testRoundScrollbarsWithMargins() 124 View contentView = activity.findViewById(R.id.view_attach_view); in testRoundScrollbarsWithMargins() [all …]
|