/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | SizeCompatTests.java | 145 private ActivityRecord mActivity; field in SizeCompatTests 169 mActivity = mTask.getTopNonFinishingActivity(); in setUpApp() 181 prepareUnresizable(mActivity, SCREEN_ORIENTATION_PORTRAIT); in testActivityInHistoryAndNotVisibleIsNotUsedAsOpaqueForTranslucentActivities() 182 mActivity.mDisplayContent.setIgnoreOrientationRequest(true /* ignoreOrientationRequest */); in testActivityInHistoryAndNotVisibleIsNotUsedAsOpaqueForTranslucentActivities() 183 mActivity.nowVisible = false; in testActivityInHistoryAndNotVisibleIsNotUsedAsOpaqueForTranslucentActivities() 186 .setLaunchedFromUid(mActivity.getUid()) in testActivityInHistoryAndNotVisibleIsNotUsedAsOpaqueForTranslucentActivities() 200 prepareUnresizable(mActivity, SCREEN_ORIENTATION_PORTRAIT); in testActivityInHistoryAndVisibleIsUsedAsOpaqueForTranslucentActivities() 201 mActivity.mDisplayContent.setIgnoreOrientationRequest(true /* ignoreOrientationRequest */); in testActivityInHistoryAndVisibleIsUsedAsOpaqueForTranslucentActivities() 202 mActivity.nowVisible = true; in testActivityInHistoryAndVisibleIsUsedAsOpaqueForTranslucentActivities() 205 .setLaunchedFromUid(mActivity.getUid()) in testActivityInHistoryAndVisibleIsUsedAsOpaqueForTranslucentActivities() [all …]
|
D | AppWindowTokenAnimationTests.java | 52 private ActivityRecord mActivity; field in AppWindowTokenAnimationTests 61 mActivity = createActivityRecord(mDisplayContent); in setUp() 66 mActivity.mNeedsAnimationBoundsLayer = true; in clipAfterAnim_boundsLayerIsCreated() 68 mActivity.mSurfaceAnimator.startAnimation(mTransaction, mSpec, true /* hidden */, in clipAfterAnim_boundsLayerIsCreated() 70 verify(mTransaction).reparent(eq(mActivity.getSurfaceControl()), in clipAfterAnim_boundsLayerIsCreated() 71 eq(mActivity.mSurfaceAnimator.mLeash)); in clipAfterAnim_boundsLayerIsCreated() 72 verify(mTransaction).reparent(eq(mActivity.mSurfaceAnimator.mLeash), in clipAfterAnim_boundsLayerIsCreated() 73 eq(mActivity.mAnimationBoundsLayer)); in clipAfterAnim_boundsLayerIsCreated() 78 final Task task = mActivity.getTask(); in clipAfterAnim_boundsLayerZBoosted() 82 assertThat(topActivity.getLastLayer()).isGreaterThan(mActivity.getLastLayer()); in clipAfterAnim_boundsLayerZBoosted() [all …]
|
D | LetterboxUiControllerTest.java | 113 private ActivityRecord mActivity; field in LetterboxUiControllerTest 122 mActivity = setUpActivityWithComponent(); in setUp() 127 mController = new LetterboxUiController(mWm, mActivity); in setUp() 146 mActivity = setUpActivityWithComponent(); in testShouldIgnoreRequestedOrientation_cameraCompatTreatment_returnsTrue() 147 mController = new LetterboxUiController(mWm, mActivity); in testShouldIgnoreRequestedOrientation_cameraCompatTreatment_returnsTrue() 153 .isTreatmentEnabledForActivity(eq(mActivity)); in testShouldIgnoreRequestedOrientation_cameraCompatTreatment_returnsTrue() 171 mController = new LetterboxUiController(mWm, mActivity); in testShouldIgnoreRequestedOrientation_propertyIsTrue_returnsTrue() 185 mController = new LetterboxUiController(mWm, mActivity); in testShouldIgnoreRequestedOrientation_propertyIsFalseAndOverride_returnsFalse() 195 doReturn(false).when(mActivity).isLetterboxedForFixedOrientationAndAspectRatio(); in testShouldIgnoreOrientationRequestLoop_overrideDisabled_returnsFalse() 211 doReturn(false).when(mActivity).isLetterboxedForFixedOrientationAndAspectRatio(); in testShouldIgnoreOrientationRequestLoop_propertyIsFalseAndOverride_returnsFalse() [all …]
|
D | DisplayRotationCompatPolicyTests.java | 95 private ActivityRecord mActivity; field in DisplayRotationCompatPolicyTests 140 doReturn(WINDOWING_MODE_MULTI_WINDOW).when(mActivity).getWindowingMode(); in testOpenedCameraInSplitScreen_showToast() 154 doReturn(WINDOWING_MODE_MULTI_WINDOW).when(mActivity).getWindowingMode(); in testOpenedCameraInSplitScreen_orientationNotFixed_doNotShowToast() 189 doReturn(true).when(mActivity).inMultiWindowMode(); in testOnScreenRotationAnimationFinished_notFullscreen_doNotShowToast() 255 when(mActivity.mLetterboxUiController.shouldForceRotateForCameraCompat()) in testTreatmentDisabledPerApp_noForceRotationOrRefresh() 267 mActivity.getTask().reparent(organizer.mPrimary, WindowContainer.POSITION_TOP, in testMultiWindowMode_returnUnspecified_noForceRotationOrRefresh() 272 assertTrue(mActivity.inMultiWindowMode()); in testMultiWindowMode_returnUnspecified_noForceRotationOrRefresh() 346 callOnActivityConfigurationChanging(mActivity, /* isDisplayRotationChanging */ true); in testCameraReconnected_forceRotationAndRefresh() 360 callOnActivityConfigurationChanging(mActivity, /* isDisplayRotationChanging */ true); in testReconnectedToDifferentCamera_forceRotationAndRefresh() 372 callOnActivityConfigurationChanging(mActivity, /* isDisplayRotationChanging */ true); in testCameraDisconnected_revertRotationAndRefresh() [all …]
|
D | AppChangeTransitionTests.java | 58 private ActivityRecord mActivity; field in AppChangeTransitionTests 61 mActivity = createActivityRecord(dc, WINDOWING_MODE_UNDEFINED, ACTIVITY_TYPE_STANDARD); in setUpOnDisplay() 62 mTask = mActivity.getTask(); in setUpOnDisplay() 113 mActivity.removeImmediately(); in testModeChangeRemoteAnimatorNoSnapshot() 127 mDisplayContent.removeAppToken(mActivity.token); in testCancelPendingChangeOnRemove() 132 mActivity.removeImmediately(); in testCancelPendingChangeOnRemove() 155 mActivity.removeImmediately(); in testNoChangeOnOldDisplayWhenMoveDisplay() 168 mActivity.setVisibility(false, false); in testCancelPendingChangeOnHide() 173 mActivity.removeImmediately(); in testCancelPendingChangeOnHide()
|
/frameworks/base/core/tests/coretests/src/android/widget/listview/ |
D | ListEmptyViewTest.java | 30 private ListWithEmptyView mActivity; field in ListEmptyViewTest 42 mActivity = getActivity(); in setUp() 48 assertNotNull(mActivity); in testPreconditions() 58 inst.invokeMenuActionSync(mActivity, mActivity.MENU_ADD, 0); in testZeroToOne() 60 assertTrue("Empty view still shown", mActivity.getEmptyView().getVisibility() == View.GONE); in testZeroToOne() 61 assertTrue("List not shown", mActivity.getListView().getVisibility() == View.VISIBLE); in testZeroToOne() 68 inst.invokeMenuActionSync(mActivity, mActivity.MENU_ADD, 0); in testZeroToOneForwardBack() 70 assertTrue("Empty view still shown", mActivity.getEmptyView().getVisibility() == View.GONE); in testZeroToOneForwardBack() 71 assertTrue("List not shown", mActivity.getListView().getVisibility() == View.VISIBLE); in testZeroToOneForwardBack() 75 intent.setClass(mActivity, ListWithEmptyView.class); in testZeroToOneForwardBack() [all …]
|
D | ListViewHeightTest.java | 29 private ListViewHeight mActivity; field in ListViewHeightTest 40 mActivity = getActivity(); in setUp() 45 assertNotNull(mActivity); in testPreconditions() 51 final Button button1 = (Button) mActivity.findViewById(R.id.button1); in testButtons() 52 final Button button2 = (Button) mActivity.findViewById(R.id.button2); in testButtons() 53 final Button button3 = (Button) mActivity.findViewById(R.id.button3); in testButtons() 56 ListView list = (ListView) mActivity.findViewById(R.id.inner_list); in testButtons() 60 mActivity.runOnUiThread(new Runnable() { in testButtons() 69 mActivity.runOnUiThread(new Runnable() { in testButtons() 77 mActivity.runOnUiThread(new Runnable() { in testButtons()
|
D | ListFocusableTest.java | 27 private ListTopGravity mActivity; field in ListFocusableTest 38 mActivity = getActivity(); in setUp() 44 assertNotNull(mActivity); in testPreconditions() 179 return new ArrayAdapter<String>(mActivity, android.R.layout.simple_list_item_1, in createFullAdapter() 184 return new ArrayAdapter<String>(mActivity, android.R.layout.simple_list_item_1, in createEmptyAdapter() 190 mActivity.runOnUiThread(new Runnable() { in setFullAdapter() 199 mActivity.runOnUiThread(new Runnable() { in setEmptyAdapter() 208 mActivity.runOnUiThread(new Runnable() { in setNullAdapter() 217 mActivity.runOnUiThread(new Runnable() { in setFocusable() 226 mActivity.runOnUiThread(new Runnable() { in setNonFocusable()
|
/frameworks/base/libs/WindowManager/Jetpack/tests/unittest/src/androidx/window/extensions/embedding/ |
D | SplitControllerTest.java | 126 private Activity mActivity; field in SplitControllerTest 170 mActivity = createMockActivity(); in setUp() 221 final TaskFragmentContainer tf = mSplitController.newContainer(mActivity, TASK_ID); in testOnTaskFragmentVanished() 236 final TaskFragmentContainer tf = mSplitController.newContainer(mActivity, TASK_ID); in testOnTaskFragmentAppearEmptyTimeout() 246 doReturn(new Binder()).when(mActivity).getActivityToken(); in testOnActivityDestroyed() 247 final TaskFragmentContainer tf = mSplitController.newContainer(mActivity, TASK_ID); in testOnActivityDestroyed() 249 assertTrue(tf.hasActivity(mActivity.getActivityToken())); in testOnActivityDestroyed() 252 doReturn(false).when(mActivity).isFinishing(); in testOnActivityDestroyed() 253 mSplitController.onActivityDestroyed(mActivity); in testOnActivityDestroyed() 255 assertTrue(tf.hasActivity(mActivity.getActivityToken())); in testOnActivityDestroyed() [all …]
|
D | TaskFragmentContainerTest.java | 81 private Activity mActivity; field in TaskFragmentContainerTest 92 mActivity = createMockActivity(); in setup() 107 () -> new TaskFragmentContainer(mActivity, mIntent, taskContainer, mController, in testNewContainer() 114 final TaskFragmentContainer container = new TaskFragmentContainer(mActivity, in testFinish() 117 doReturn(container).when(mController).getContainerWithActivity(mActivity); in testFinish() 122 verify(mTransaction).finishActivity(mActivity.getActivityToken()); in testFinish() 147 final TaskFragmentContainer container0 = new TaskFragmentContainer(mActivity, in testFinish_notFinishActivityThatIsReparenting() 150 final TaskFragmentInfo info = createMockTaskFragmentInfo(container0, mActivity); in testFinish_notFinishActivityThatIsReparenting() 153 final TaskFragmentContainer container1 = new TaskFragmentContainer(mActivity, in testFinish_notFinishActivityThatIsReparenting() 156 doReturn(container1).when(mController).getContainerWithActivity(mActivity); in testFinish_notFinishActivityThatIsReparenting() [all …]
|
/frameworks/base/core/tests/coretests/src/android/view/menu/ |
D | MenuLayoutLandscapeTest.java | 29 private MenuLayout mActivity; field in MenuLayoutLandscapeTest 38 mActivity = getActivity(); in setUp() 42 assertNotNull(mActivity); in testPreconditions() 78 mActivity.setParams(new MenuScenario.Params() in test1ShortItem() 85 mActivity.setParams(new MenuScenario.Params() in test1LongItem() 92 mActivity.setParams(new MenuScenario.Params() in test2LongItems() 100 mActivity.setParams(new MenuScenario.Params() in test2ShortItems() 108 mActivity.setParams(new MenuScenario.Params() in test3ShortItems() 117 mActivity.setParams(new MenuScenario.Params() in test3VarietyItems() 126 mActivity.setParams(new MenuScenario.Params() in test3VarietyItems2() [all …]
|
D | MenuLayoutPortraitTest.java | 29 private MenuLayout mActivity; field in MenuLayoutPortraitTest 38 mActivity = getActivity(); in setUp() 42 assertNotNull(mActivity); in testPreconditions() 77 mActivity.setParams(new MenuScenario.Params() in test1ShortItem() 84 mActivity.setParams(new MenuScenario.Params() in test1LongItem() 91 mActivity.setParams(new MenuScenario.Params() in test2LongItems() 99 mActivity.setParams(new MenuScenario.Params() in test2ShortItems() 107 mActivity.setParams(new MenuScenario.Params() in test3ShortItems() 116 mActivity.setParams(new MenuScenario.Params() in test3VarietyItems() 126 mActivity.setParams(new MenuScenario.Params() in test3VarietyItems2() [all …]
|
D | MenuWith1ItemTest.java | 27 private MenuWith1Item mActivity; field in MenuWith1ItemTest 36 mActivity = getActivity(); in setUp() 41 assertNotNull(mActivity); in testPreconditions() 42 assertFalse(mActivity.getButton().isInTouchMode()); in testPreconditions() 51 assertFalse("Item seems to have been clicked before we clicked on it", mActivity in testItemClick() 54 assertTrue("Item doesn't seem to have registered our click", mActivity.wasItemClicked(0)); in testItemClick()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | ActivityServiceConnectionsHolder.java | 42 private final ActivityRecord mActivity; field in ActivityServiceConnectionsHolder 57 mActivity = activity; in ActivityServiceConnectionsHolder() 62 synchronized (mActivity) { in addConnection() 67 + mActivity); in addConnection() 80 synchronized (mActivity) { in removeConnection() 85 Slog.v(TAG_ATM, "Remove pending disconnecting " + c + " of " + mActivity); in removeConnection() 93 return mActivity.mVisibleForServiceConnection; in isActivityVisible() 97 final WindowProcessController wpc = mActivity.app; in getActivityPid() 102 synchronized (mActivity) { in forEachConnection() 130 mActivity.mAtmService.mH.post(() -> { in disconnectActivityFromServices() [all …]
|
/frameworks/base/core/tests/coretests/src/android/widget/touchmode/ |
D | TouchModeFocusChangeTest.java | 37 private LLOfButtons1 mActivity; field in TouchModeFocusChangeTest 49 mActivity = getActivity(); in setUp() 50 mFirstButton = mActivity.getFirstButton(); in setUp() 55 assertFalse("we should not be in touch mode", mActivity.isInTouchMode()); in testPreconditions() 62 assertTrue("should be in touch mode", mActivity.isInTouchMode()); in testTouchButtonNotTakeFocus() 67 assertNull("activity shouldn't have focus", mActivity.getCurrentFocus()); in testTouchButtonNotTakeFocus() 69 mActivity.getLayout().hasFocus()); in testTouchButtonNotTakeFocus() 72 mActivity.buttonClickListenerFired()); in testTouchButtonNotTakeFocus() 79 assertTrue("should be in touch mode", mActivity.isInTouchMode()); in DISABLE_testLeaveTouchModeWithDpadEvent() 84 assertFalse("should be out of touch mode", mActivity.isInTouchMode()); in DISABLE_testLeaveTouchModeWithDpadEvent()
|
/frameworks/base/core/tests/coretests/src/android/view/ |
D | GlobalFocusChangeTest.java | 31 private GlobalFocusChange mActivity; field in GlobalFocusChangeTest 42 mActivity = getActivity(); in setUp() 43 mLeft = mActivity.findViewById(R.id.left); in setUp() 44 mRight = mActivity.findViewById(R.id.right); in setUp() 49 mActivity.reset(); in tearDown() 61 assertSame(mLeft, mActivity.mOldFocus); in testFocusChange() 62 assertSame(mRight, mActivity.mNewFocus); in testFocusChange() 72 assertSame(mLeft, mActivity.mOldFocus); in testEnterTouchMode() 73 assertSame(null, mActivity.mNewFocus); in testEnterTouchMode() 86 assertSame(null, mActivity.mOldFocus); in testLeaveTouchMode() [all …]
|
/frameworks/base/core/tests/coretests/src/android/widget/focus/ |
D | ScrollingThroughListOfFocusablesTest.java | 36 private ListOfInternalSelectionViews mActivity; field in ScrollingThroughListOfFocusablesTest 45 mActivity = launchActivity( in setUp() 52 mListView = mActivity.getListView(); in setUp() 59 mActivity.runOnUiThread(() -> mListView.requestFocus()); in setUp() 65 mActivity.finish(); in tearDown() 71 assertNotNull(mActivity); in testPreconditions() 73 assertEquals(mNumItems, mActivity.getNumItems()); in testPreconditions() 74 assertEquals(mNumRowsPerItem, mActivity.getNumRowsPerItem()); in testPreconditions() 83 InternalSelectionView view = mActivity.getSelectedView(); in testScrollingDownInFirstItem() 114 mActivity.getLabelForPosition(1), peekingChild.getLabel()); in testScrollingDownInFirstItem() [all …]
|
/frameworks/base/core/java/android/view/autofill/ |
D | AutofillClientController.java | 64 private final Activity mActivity; field in AutofillClientController 78 mActivity = activity; in AutofillClientController() 83 mAutofillManager = mActivity.getSystemService(AutofillManager.class); in getAutofillManager() 94 mActivity.setAutofillOptions(application.getAutofillOptions()); in onActivityAttached() 124 View focus = mActivity.getCurrentFocus(); in onActivityResumed() 161 View focus = mActivity.getCurrentFocus(); in onActivityPaused() 191 if (mActivity.isFinishing() && mAutoFillResetNeeded) { in onActivityDestroyed() 235 mActivity.getCurrentFocus()); in onDispatchActivityResult() 245 if (TextUtils.equals(mActivity.getPackageName(), in onStartActivity() 246 startIntent.resolveActivity(mActivity.getPackageManager()).getPackageName())) { in onStartActivity() [all …]
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/core/lifecycle/ |
D | HideNonSystemOverlayMixin.java | 41 private final Activity mActivity; field in HideNonSystemOverlayMixin 44 mActivity = activity; in HideNonSystemOverlayMixin() 49 return Settings.Secure.getInt(mActivity.getContentResolver(), in isEnabled() 58 if (mActivity == null || !isEnabled()) { in onStart() 61 mActivity.getWindow().addSystemFlags(SYSTEM_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS); in onStart() 70 if (mActivity == null || !isEnabled()) { in onStop() 73 final Window window = mActivity.getWindow(); in onStop()
|
/frameworks/base/core/tests/coretests/src/android/widget/listview/touch/ |
D | ListTouchManyTest.java | 34 private ListTopGravityMany mActivity; field in ListTouchManyTest 45 mActivity = getActivity(); in setUp() 51 assertNotNull(mActivity); in testPreconditions() 101 mActivity.setClickedPosition(-1); in testPress() 102 mActivity.setLongClickedPosition(-1); in testPress() 112 mActivity.getClickedPosition()); in testPress() 114 mActivity.getLongClickedPosition()); in testPress() 128 mActivity.enableLongPress(); in testLongPress() 129 mActivity.setClickedPosition(-1); in testLongPress() 130 mActivity.setLongClickedPosition(-1); in testLongPress() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/people/widget/ |
D | LaunchConversationActivityTest.java | 81 private LaunchConversationActivity mActivity; field in LaunchConversationActivityTest 117 mActivity = new LaunchConversationActivity( in setUp() 127 mActivity.setIsForTesting(true, mIStatusBarService); in setUp() 160 mActivity.setIntent(mIntent); in testDoNotClearNotificationIfNoKey() 161 mActivity.onCreate(new Bundle()); in testDoNotClearNotificationIfNoKey() 171 mActivity.setIntent(mIntent); in testDoNotClearNotificationIfNoNotificationEntry() 172 mActivity.onCreate(new Bundle()); in testDoNotClearNotificationIfNoNotificationEntry() 182 mActivity.setIntent(mIntent); in testDoNotClearNotificationIfNoRanking() 183 mActivity.onCreate(new Bundle()); in testDoNotClearNotificationIfNoRanking() 193 mActivity.setIntent(mIntent); in testEntryClearsNotificationAndDoesNotOpenBubble() [all …]
|
/frameworks/base/core/java/android/app/people/ |
D | ConversationStatus.java | 106 private final int mActivity; field in ConversationStatus 116 mActivity = b.mActivity; in ConversationStatus() 126 mActivity = p.readInt(); in ConversationStatus() 137 dest.writeInt(mActivity); in writeToParcel() 156 return mActivity; in getActivity() 200 return mActivity == that.mActivity && in equals() 211 return Objects.hash(mId, mActivity, mAvailability, mDescription, mIcon, mStartTimeMs, in hashCode() 219 ", mActivity=" + mActivity + in toString() 246 final int mActivity; field in ConversationStatus.Builder 261 mActivity = activity; in Builder()
|
/frameworks/base/tests/LocationTracker/src/com/android/locationtracker/data/ |
D | TrackerListHelper.java | 32 private ListActivity mActivity; field in TrackerListHelper 39 mActivity = activity; in TrackerListHelper() 50 Cursor cursor = mActivity.managedQuery(TrackerProvider.CONTENT_URI, in bindListUI() 53 TrackerAdapter adapter = new TrackerAdapter(mActivity, layout, cursor); in bindListUI() 54 mActivity.setListAdapter(adapter); in bindListUI() 55 cursor.setNotificationUri(mActivity.getContentResolver(), in bindListUI()
|
/frameworks/base/core/tests/coretests/src/android/widget/ |
D | TextViewTest.java | 63 private Activity mActivity; field in TextViewTest 68 mActivity = mActivityRule.getActivity(); in setup() 76 mTextView = new TextView(mActivity); in testArray() 107 mTextView = new TextView(mActivity); in testHyphenationWidth() 159 mTextView = new TextView(mActivity); in testCopyShouldNotThrowException() 169 mTextView = new TextView(mActivity); in testCutShouldNotThrowException() 178 mTextView = new TextView(mActivity); in testUseDynamicLayout() 203 mTextView = new TextView(mActivity); in testUseDynamicLayout_SPANNABLE() 229 mTextView = new TextView(mActivity); in testUseDynamicLayout_EDITABLE() 255 mTextView = new NullSetTextTextView(mActivity); in testConstructor_doesNotLeaveTextNull() [all …]
|
/frameworks/base/core/tests/coretests/src/android/os/ |
D | SetPersistentVrThreadTest.java | 34 private TestVrActivity mActivity; field in SetPersistentVrThreadTest 63 mActivity = getActivity(); in setUp() 88 if (!mActivity.getPackageManager().hasSystemFeature( in testSetPersistentVrThreadAPISuccess() 108 mActivity.setVrModeEnabled(true, mRequestedComponent); in testSetPersistentVrThreadAPISuccess() 115 mActivity.setVrModeEnabled(false, mRequestedComponent); in testSetPersistentVrThreadAPISuccess() 125 if (!mActivity.getPackageManager().hasSystemFeature( in testSetPersistentVrThreadAPIFailure() 138 if (!mActivity.getPackageManager().hasSystemFeature( in testSetVrThreadAPIFailsInPersistentMode() 143 mActivity.setVrModeEnabled(true, mRequestedComponent); in testSetVrThreadAPIFailsInPersistentMode() 153 mActivity.setVrModeEnabled(true, mRequestedComponent); in testSetVrThreadAPIFailsInPersistentMode()
|