/cts/tests/framework/base/windowmanager/src/android/server/wm/multidisplay/ |
D | MultiDisplaySecurityTests.java | 111 .setDisplayId(newDisplay.mId) in testLaunchWithoutPermissionOnVirtualDisplayByOwner() 135 .setDisplayId(newDisplay.mId) in testLaunchWithoutPermissionOnVirtualDisplay() 154 launchActivityOnDisplay(LAUNCHING_ACTIVITY, newDisplay.mId); in testConsequentLaunchActivityFromVirtualDisplayNoEmbedding() 156 waitAndAssertActivityStateOnDisplay(LAUNCHING_ACTIVITY, STATE_RESUMED, newDisplay.mId, in testConsequentLaunchActivityFromVirtualDisplayNoEmbedding() 164 .setDisplayId(newDisplay.mId) in testConsequentLaunchActivityFromVirtualDisplayNoEmbedding() 187 assertTrue(isActivityStartAllowedOnDisplay(newDisplay.mId, TEST_ACTIVITY)); in testCanAccessSystemOwnedDisplay() 203 newDisplay.mId, SECOND_NO_EMBEDDING_ACTIVITY)), in testCanAccessPublicVirtualDisplayWithInternalPermission() 220 newDisplay.mId, SECOND_NO_EMBEDDING_ACTIVITY)), in testCanAccessPrivateVirtualDisplayWithInternalPermission() 236 assertFalse(isActivityStartAllowedOnDisplay(newDisplay.mId, SECOND_ACTIVITY)); in testCantAccessPublicVirtualDisplayNoEmbeddingPermission() 252 newDisplay.mId, SECOND_NO_EMBEDDING_ACTIVITY)), in testCantAccessPublicVirtualDisplayActivityEmbeddingNotAllowed() [all …]
|
D | MultiDisplayActivityLaunchTests.java | 140 .setDisplayId(newDisplay.mId).execute(); in validateActivityLaunchOnNewDisplay() 141 waitAndAssertTopResumedActivity(TEST_ACTIVITY, newDisplay.mId, in validateActivityLaunchOnNewDisplay() 150 mWmState.getFrontRootTaskActivityType(newDisplay.mId)); in validateActivityLaunchOnNewDisplay() 187 final int newDisplayId = newDisplay.mId; in testLaunchActivityFromSecondaryDisplay() 192 waitAndAssertTopResumedActivity(BROADCAST_RECEIVER_ACTIVITY, newDisplay.mId, in testLaunchActivityFromSecondaryDisplay() 237 launchActivityOnDisplay(TEST_ACTIVITY, newDisplay.mId); in testLaunchExternalDisplayActivityWhilePrimaryOff() 240 waitAndAssertActivityStateOnDisplay(TEST_ACTIVITY, STATE_RESUMED, newDisplay.mId, in testLaunchExternalDisplayActivityWhilePrimaryOff() 259 launchActivityOnDisplay(NON_RESIZEABLE_ACTIVITY, WINDOWING_MODE_FULLSCREEN, newDisplay.mId); in testLaunchNonResizeableActivityOnSecondaryDisplay() 261 waitAndAssertTopResumedActivity(NON_RESIZEABLE_ACTIVITY, newDisplay.mId, in testLaunchNonResizeableActivityOnSecondaryDisplay() 267 .getDisplay(newDisplay.mId).getFullConfiguration(); in testLaunchNonResizeableActivityOnSecondaryDisplay() [all …]
|
D | MultiDisplayPolicyTests.java | 95 launchActivityOnDisplay(TEST_ACTIVITY, newDisplay.mId); in testContentDestroyOnDisplayRemoved() 96 waitAndAssertActivityStateOnDisplay(TEST_ACTIVITY, STATE_RESUMED, newDisplay.mId, in testContentDestroyOnDisplayRemoved() 99 launchActivityOnDisplay(RESIZEABLE_ACTIVITY, newDisplay.mId); in testContentDestroyOnDisplayRemoved() 100 waitAndAssertActivityStateOnDisplay(RESIZEABLE_ACTIVITY, STATE_RESUMED, newDisplay.mId, in testContentDestroyOnDisplayRemoved() 136 launchActivityOnDisplay(LAUNCH_TEST_ON_DESTROY_ACTIVITY, newDisplay.mId); in testActivityLaunchOnContentDestroyDisplayRemoved() 139 newDisplay.mId,"Launched activity must be resumed on secondary display"); in testActivityLaunchOnContentDestroyDisplayRemoved() 160 launchActivityOnDisplay(RESIZEABLE_ACTIVITY, WINDOWING_MODE_FULLSCREEN, newDisplay.mId); in testDisplayResize() 161 waitAndAssertActivityStateOnDisplay(RESIZEABLE_ACTIVITY, STATE_RESUMED, newDisplay.mId, in testDisplayResize() 213 waitAndAssertActivityStateOnDisplay(RESIZEABLE_ACTIVITY, STATE_RESUMED, newDisplay.mId, in testRotationNotAffectingSecondaryScreen() 229 waitAndAssertActivityStateOnDisplay(TEST_ACTIVITY, STATE_RESUMED, newDisplay.mId, in testRotationNotAffectingSecondaryScreen() [all …]
|
D | MultiDisplayKeyguardTests.java | 65 launchActivityOnDisplay(DISMISS_KEYGUARD_ACTIVITY, newDisplay.mId); in testDismissKeyguardActivity_secondaryDisplay() 82 mWmState.waitAndAssertKeyguardShownOnSecondaryDisplay(publicDisplay.mId); in testShowKeyguardDialogOnSecondaryDisplay() 87 mWmState.assertKeyguardShownOnSecondaryDisplay(publicDisplay.mId); in testShowKeyguardDialogOnSecondaryDisplay() 103 mWmState.waitAndAssertKeyguardShownOnSecondaryDisplay(publicDisplay.mId); in testShowKeyguardDialogSecondaryDisplayChange() 109 mWmState.waitAndAssertKeyguardShownOnSecondaryDisplay(publicDisplay.mId); in testShowKeyguardDialogSecondaryDisplayChange() 129 mWmState.waitAndAssertKeyguardShownOnSecondaryDisplay(publicDisplay.mId); in testShowKeyguardDialogDefaultDisplayChange() 145 mWmState.waitAndAssertKeyguardShownOnSecondaryDisplay(publicDisplay.mId); in testShowKeyguardDialogDefaultDisplayChange() 162 mWmState.waitAndAssertKeyguardShownOnSecondaryDisplay(publicDisplay.mId); in testNoKeyguardDialogOnPrivateDisplay() 163 mWmState.assertKeyguardGoneOnSecondaryDisplay(privateDisplay.mId); in testNoKeyguardDialogOnPrivateDisplay() 176 final int secondDisplayId = secondDisplay.mId; in testUnlockScreen_secondDisplayChanged_dismissesKeyguardOnUnlock() [all …]
|
D | MultiDisplaySystemDecorationTests.java | 97 final String TARGET_ENGINE_DISPLAY_ID = ENGINE_DISPLAY_ID + newDisplay.mId; in testWallpaperGetDisplayContext() 123 state -> isWallpaperOnDisplay(state, decoredSystemDisplay.mId), in testWallpaperShowOnSecondaryDisplays() 127 isWallpaperOnDisplay(mWmState, untrustedDisplay.mId)); in testWallpaperShowOnSecondaryDisplays() 146 mWmState.waitAndAssertNavBarShownOnDisplay(newDisplay.mId); in testNavBarShowingOnDisplayWithDecor() 194 mWmState.waitAndAssertNavBarShownOnDisplay(supportsSysDecorDisplay.mId); in waitAndAssertNavBarStatesAreTheSame() 205 ws.getDisplayId() == displayContent.mId) in waitAndAssertNavBarStatesAreTheSame() 208 mWmState.waitAndAssertNavBarShownOnDisplay(displayContent.mId, navWindows.size()); in waitAndAssertNavBarStatesAreTheSame() 282 assertSecondaryHomeResumedOnDisplay(getDefaultSecondaryHomeComponent(), display.mId); in testSendSecondaryHomeIntentActivityOnDisplayWithDecorations() 288 waitAndAssertActivityStateOnDisplay(TEST_ACTIVITY, STATE_RESUMED, display.mId, in testSendSecondaryHomeIntentActivityOnDisplayWithDecorations() 292 sendHomeIntentToDisplay(Intent.CATEGORY_SECONDARY_HOME, display.mId); in testSendSecondaryHomeIntentActivityOnDisplayWithDecorations() [all …]
|
/cts/tests/autofillservice/src/android/autofillservice/cts/testcore/ |
D | MyAutofillId.java | 25 private final AutofillId mId; field in MyAutofillId 28 mId = id; in MyAutofillId() 35 result = prime * result + ((mId == null) ? 0 : mId.hashCode()); in hashCode() 45 if (mId == null) { in equals() 46 if (other.mId != null) return false; in equals() 47 } else if (!mId.equals(other.mId)) { in equals() 55 return mId.toString(); in toString() 65 dest.writeParcelable(mId, flags); in writeToParcel()
|
D | CannedFieldClassificationResponse.java | 115 private final String mId; field in CannedFieldClassification 118 mId = id; in CannedFieldClassification() 139 final AutofillId autofillId = autofillIdResolver.apply(mId); in asFieldClassification() 141 throw new AssertionError("No node with resource id " + mId); in asFieldClassification()
|
/cts/tests/autofillservice/src/android/autofillservice/cts/unittests/ |
D | DatasetTest.java | 58 private final AutofillId mId = new AutofillId(42); field in DatasetTest 115 assertThat(new Dataset.Builder().setValue(mId, mValue).build()).isNotNull(); in testBuilder_setValueWithoutPresentation() 121 assertThrows(NullPointerException.class, () -> builder.setValue(mId, mValue, in testBuilder_setValueWithNullPresentation() 128 assertThrows(NullPointerException.class, () -> builder.setValue(mId, mValue, in testBuilder_setValueWithBothPresentation_nullPresentation() 135 assertThrows(NullPointerException.class, () -> builder.setValue(mId, mValue, in testBuilder_setValueWithBothPresentation_nullInlinePresentation() 142 assertThrows(NullPointerException.class, () -> builder.setValue(mId, mValue, in testBuilder_setValueWithBothPresentation_bothNull() 148 assertThat(new Dataset.Builder(mPresentation).setValue(mId, mValue, (Pattern) null).build()) in testBuilder_setFilteredValueWithNullFilter() 154 assertThat(new Dataset.Builder().setValue(mId, mValue, null, mPresentation).build()) in testBuilder_setFilteredValueWithPresentation_nullFilter() 161 assertThrows(NullPointerException.class, () -> builder.setValue(mId, mValue, mFilter, in testBuilder_setFilteredValueWithPresentation_nullPresentation() 168 assertThrows(IllegalStateException.class, () -> builder.setValue(mId, mValue, mFilter)); in testBuilder_setFilteredValueWithoutPresentation() [all …]
|
D | SaveInfoTest.java | 42 private final AutofillId mId = new AutofillId(42); field in SaveInfoTest 43 private final AutofillId[] mIdArray = { mId }; 94 () -> builder.addSanitizer(null, mId)); in testAddSanitizer_illegalArgs() 97 () -> builder.addSanitizer(mock(Sanitizer.class), mId)); in testAddSanitizer_illegalArgs() 106 () -> builder.addSanitizer(mSanitizer, new AutofillId[] {mId, mId})); in testAddSanitizer_illegalArgs() 113 builder.addSanitizer(mSanitizer, mId); in testAddSanitizer_sameIdOnDifferentCalls() 114 assertThrows(IllegalArgumentException.class, () -> builder.addSanitizer(mSanitizer, mId)); in testAddSanitizer_sameIdOnDifferentCalls()
|
D | UserDataTest.java | 76 private final String mId = "4815162342"; field in UserDataTest 90 mBuilder = new UserData.Builder(mId, mValue, mCategoryId); in setFixtures() 100 () -> new UserData.Builder(mId, null, mCategoryId)); in testBuilder_invalid() 102 () -> new UserData.Builder(mId, "", mCategoryId)); in testBuilder_invalid() 104 () -> new UserData.Builder(mId, mShortValue, mCategoryId)); in testBuilder_invalid() 106 () -> new UserData.Builder(mId, mLongValue, mCategoryId)); in testBuilder_invalid() 107 assertThrows(NullPointerException.class, () -> new UserData.Builder(mId, mValue, null)); in testBuilder_invalid() 108 assertThrows(IllegalArgumentException.class, () -> new UserData.Builder(mId, mValue, "")); in testBuilder_invalid() 123 assertThat(new UserData.Builder(mId, mValue, mCategoryId).add(mValue, mCategoryId).build()) in testAdd_duplicatedValue() 125 assertThat(new UserData.Builder(mId, mValue, mCategoryId).add(mValue, mCategoryId2).build()) in testAdd_duplicatedValue() [all …]
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/ime/ |
D | MultiDisplayImeTests.java | 127 newDisplay.mId); in testImeWindowCanSwitchToDifferentDisplays() 133 showSoftInputAndAssertImeShownOnDisplay(newDisplay.mId, imeTestActivitySession, stream); in testImeWindowCanSwitchToDifferentDisplays() 168 ImeTestActivity.class, newDisplay.mId); in testFallbackImmMaintainsParameters() 197 ImeTestActivityWithBrokenContextWrapper.class, newDisplay.mId); in testImeApiForBug118341760() 239 newDisplay.mId); in testImeWindowCanSwitchWhenTopFocusedDisplayChange() 251 showSoftInputAndAssertImeShownOnDisplay(defDisplay.mId, imeTestActivitySession, stream); in testImeWindowCanSwitchWhenTopFocusedDisplayChange() 255 touchAndCancelOnDisplayCenterSync(newDisplay.mId); in testImeWindowCanSwitchWhenTopFocusedDisplayChange() 258 showSoftInputAndAssertImeShownOnDisplay(newDisplay.mId, imeTestActivitySession2, stream); in testImeWindowCanSwitchWhenTopFocusedDisplayChange() 267 showSoftInputAndAssertImeShownOnDisplay(defDisplay.mId, imeTestActivitySession, stream); in testImeWindowCanSwitchWhenTopFocusedDisplayChange() 288 .getDisplayImePolicy(newDisplay.mId) in testCrossDisplayBasicImeOperations() [all …]
|
/cts/tests/leanbackjank/app/src/android/leanbackjank/app/model/ |
D | Movie.java | 28 private String mId; field in Movie 41 mId = data[0]; in Movie() 57 return mId; in getId() 61 mId = id; in setId() 103 dest.writeStringArray(new String[] {mId, in writeToParcel() 114 sb.append("mId=" + mId); in toString()
|
/cts/tests/framework/base/windowmanager/jetpack/src/android/server/wm/jetpack/utils/ |
D | TestActivityWithId.java | 32 private String mId = DEFAULT_ID; field in TestActivityWithId 41 mId = intent.getStringExtra(KEY_ACTIVITY_ID); in onCreate() 46 return mId; in getId() 51 return String.format("{" + this.getClass().getSimpleName() + ", id=%s}", mId); in toString()
|
/cts/tests/inputmethod/mockime/src/com/android/cts/mockime/ |
D | ImeCommand.java | 32 private final long mId; field in ImeCommand 40 mId = id; in ImeCommand() 47 mId = bundle.getLong(ID_KEY); in ImeCommand() 59 bundle.putLong(ID_KEY, mId); in toBundle() 71 return mId; in getId()
|
/cts/tests/inputmethod/mocka11yime/common/src/com/android/cts/mocka11yime/ |
D | MockA11yImeCommand.java | 36 private final long mId; field in MockA11yImeCommand 44 mId = id; in MockA11yImeCommand() 51 mId = bundle.getLong(ID_KEY); in MockA11yImeCommand() 63 bundle.putLong(ID_KEY, mId); in toBundle() 81 return mId; in getId()
|
/cts/tests/tests/telecom-apps/Utils/src/android/telecom/cts/apps/ |
D | TransactionalCall.java | 34 private String mId = ""; field in TransactionalCall 58 return mId; in getId() 62 mId = id; in setId() 79 mId = callControl.getCallId().toString(); in setCallControlAndId() 80 mCallResources.setCallId(mId); in setCallControlAndId() 81 Log.i(TAG, String.format("setCallControlAndId: id=[%s], cc=[%s]", mId, callControl)); in setCallControlAndId() 127 Log.i(TAG, "onSetInactive: stopped recording ; callId"+ mId); 134 Log.i(TAG, "onAnswer: started recording; callId" + mId);
|
/cts/hostsidetests/inputmethodservice/deviceside/provider/src/android/inputmethodservice/cts/provider/ |
D | UriHelper.java | 105 private final String mId; field in UriHelper 110 mId = (segments.size() >= 2) ? segments.get(1) : null; in UriHelper() 123 if (mId == null) { in buildSelection() 146 if (mId == null) { in buildSelectionArgs() 152 return new String[]{ mId }; in buildSelectionArgs() 158 args[0] = mId; in buildSelectionArgs()
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/display/ |
D | PresentationTest.java | 67 launchPresentationActivity(display.mId); in testPresentationAllowedOnPresentationDisplay() 68 assertPresentationOnDisplayAndMatchesDisplayMetrics(display.mId); in testPresentationAllowedOnPresentationDisplay() 83 launchPresentationActivity(display.mId); in testPresentationNotDismissAfterResizeDisplay() 84 assertPresentationOnDisplayAndMatchesDisplayMetrics(display.mId); in testPresentationNotDismissAfterResizeDisplay() 90 state -> isPresentationOnDisplay(state, display.mId), in testPresentationNotDismissAfterResizeDisplay() 102 launchPresentationActivity(display.mId); in testPresentationBlockedOnNonPresentationDisplay()
|
/cts/tests/inputmethod/src/android/view/inputmethod/cts/ |
D | InputMethodManagerMultiDisplayTest.java | 108 .getDisplay(dc.mId); in testShowInputMethodAndSubtypeEnablerOnNonDefaultDisplay() 111 TestActivity testActivity = new TestActivity.Starter().withDisplayId(dc.mId) in testShowInputMethodAndSubtypeEnablerOnNonDefaultDisplay() 119 dc.mId, "Test Activity launched on external display must be resumed"); in testShowInputMethodAndSubtypeEnablerOnNonDefaultDisplay() 122 tapOnDisplayCenter(dc.mId); in testShowInputMethodAndSubtypeEnablerOnNonDefaultDisplay() 125 dc.mId, "Test Activity launched on external display must be on top"); in testShowInputMethodAndSubtypeEnablerOnNonDefaultDisplay() 134 state.getResumedActivityOnDisplay(dc.mId)).getPackageName().equals( in testShowInputMethodAndSubtypeEnablerOnNonDefaultDisplay()
|
D | InputMethodPickerTest.java | 139 .getDisplay(dc.mId); in testShowImePickerOnExternalDisplay() 142 TestActivity testActivity = new TestActivity.Starter().withDisplayId(dc.mId) in testShowImePickerOnExternalDisplay() 150 STATE_RESUMED, dc.mId, "Activity launched on external display must be resumed"); in testShowImePickerOnExternalDisplay() 160 mWmState.waitAndAssertImePickerShownOnDisplay(dc.mId, in testShowImePickerOnExternalDisplay() 161 "Test failed: InputMethod picker should be shown on display #" + dc.mId); in testShowImePickerOnExternalDisplay()
|
/cts/tests/tests/contactsprovider/src/android/provider/cts/contacts/ |
D | ContactsContract_TestDataBuilder.java | 60 private long mId = -1; field in ContactsContract_TestDataBuilder.Builder 67 if (mId != -1) { in getId() 68 return mId; in getId() 77 mId = cursor.getInt(IdQuery._ID); in getId() 83 assertTrue("Could not obtain _ID for URI: " + mUri, mId != -1); in getId() 84 return mId; in getId() 95 assertTrue("Neither URI nor ID has been specified", mId != -1); in getUri() 96 mUri = ContentUris.withAppendedId(getContentUri(), mId); in getUri() 130 mId = ContentUris.parseId(mUri); in insertDependent() 194 mId = mCursor.getLong(getColumnIndex(BaseColumns._ID)); in loadUsingValues()
|
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/ |
D | MultiDisplayTestBase.java | 119 if (display.mId == displayId) { in getDisplayState() 130 if (display.mId == DEFAULT_DISPLAY) { in getDisplayState() 153 if (oldDisplays.stream().noneMatch(d -> d.mId == newDisplay.mId)) { in findNewDisplayStates() 458 .setDisplayId(display.mId)); in launchActivityOnDisplay() 540 final int oldImePolicy = mWm.getDisplayImePolicy(display.mId); in configureDisplays() 541 mDisplayStates.add(new OverlayDisplayState(display.mId, oldImePolicy)); in configureDisplays() 543 mWm.setDisplayImePolicy(display.mId, imePolicy); in configureDisplays() 545 () -> (mWm.getDisplayImePolicy(display.mId) == imePolicy)); in configureDisplays() 553 mWm.setDisplayImePolicy(state.mId, state.mImePolicy); in restoreDisplayStates() 557 () -> (mWm.getDisplayImePolicy(state.mId) == state.mImePolicy)); in restoreDisplayStates() [all …]
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/activity/ |
D | ActivityCaptureCallbackTests.java | 82 startActivity(SecondaryActivity.class, newDisplay.mId, /* hasFocus */ false); in testScreencaptureInvokeCallbackOnAllVisibleActivities() 87 mWm.notifyScreenshotListeners(newDisplay.mId); in testScreencaptureInvokeCallbackOnAllVisibleActivities() 100 startActivity(SecondaryActivity.class, newDisplay.mId, /* hasFocus */ false); in testScreencaptureInvokeCallbackOnOneDisplay() 117 startActivity(SecondaryActivity.class, newDisplay.mId, /* hasFocus */ false); in testScreencaptureInvokeCallbackOnRegisteredVisibleActivities() 122 mWm.notifyScreenshotListeners(newDisplay.mId); in testScreencaptureInvokeCallbackOnRegisteredVisibleActivities()
|
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/users/ |
D | UserReference.java | 89 private final int mId; field in UserReference 111 mId = id; in UserReference() 120 return mId; in id() 168 return UserHandle.of(mId); in userHandle() 179 Log.i(LOG_TAG, "Trying to remove user " + mId); in remove() 181 Log.i(LOG_TAG, "User " + mId + " does not exist or removed already."); in remove() 200 .addOperand(mId) in remove() 225 Log.i(LOG_TAG, "Removed user " + mId); in remove() 247 .addOperand(mId) in removeWhenPossible() 266 Log.i(LOG_TAG, "Starting user " + mId); in start() [all …]
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/notifications/ |
D | ConditionProviderVerifierActivity.java | 680 private String mId; field in ConditionProviderVerifierActivity.ReceiveRuleDisableNoticeTest 697 mId = mNm.addAutomaticZenRule(rule); in setUp() 711 AutomaticZenRule rule = mNm.getAutomaticZenRule(mId); in test() 714 Log.d(TAG, "Check pref for broadcast " + prefs.contains(mId) in test() 715 + " " + prefs.getInt(mId, AUTOMATIC_RULE_STATUS_UNKNOWN)); in test() 716 if (prefs.contains(mId) in test() 717 && EXPECTED_STATUS == prefs.getInt(mId, AUTOMATIC_RULE_STATUS_UNKNOWN)) { in test() 737 mNm.removeAutomaticZenRule(mId); in tearDown() 757 private String mId; field in ConditionProviderVerifierActivity.ReceiveRuleEnabledNoticeTest 774 mId = mNm.addAutomaticZenRule(rule); in setUp() [all …]
|