/cts/tests/framework/base/windowmanager/src/android/server/wm/ |
D | MultiDisplayActivityLaunchTests.java | 137 .setDisplayId(newDisplay.mId).execute(); in validateActivityLaunchOnNewDisplay() 138 waitAndAssertTopResumedActivity(TEST_ACTIVITY, newDisplay.mId, in validateActivityLaunchOnNewDisplay() 147 mWmState.getFrontStackActivityType(newDisplay.mId)); in validateActivityLaunchOnNewDisplay() 184 final int newDisplayId = newDisplay.mId; in testLaunchActivityFromSecondaryDisplay() 189 waitAndAssertTopResumedActivity(BROADCAST_RECEIVER_ACTIVITY, newDisplay.mId, in testLaunchActivityFromSecondaryDisplay() 233 launchActivityOnDisplay(TEST_ACTIVITY, newDisplay.mId); in testLaunchExternalDisplayActivityWhilePrimaryOff() 236 waitAndAssertActivityStateOnDisplay(TEST_ACTIVITY, STATE_RESUMED, newDisplay.mId, in testLaunchExternalDisplayActivityWhilePrimaryOff() 253 launchActivityOnDisplay(NON_RESIZEABLE_ACTIVITY, newDisplay.mId); in testLaunchNonResizeableActivityOnSecondaryDisplay() 255 waitAndAssertTopResumedActivity(NON_RESIZEABLE_ACTIVITY, newDisplay.mId, in testLaunchNonResizeableActivityOnSecondaryDisplay() 261 .getDisplay(newDisplay.mId).mFullConfiguration; in testLaunchNonResizeableActivityOnSecondaryDisplay() [all …]
|
D | MultiDisplaySecurityTests.java | 119 .setDisplayId(newDisplay.mId) in testLaunchWithoutPermissionOnVirtualDisplayByOwner() 143 .setDisplayId(newDisplay.mId) in testLaunchWithoutPermissionOnVirtualDisplay() 162 launchActivityOnDisplay(LAUNCHING_ACTIVITY, newDisplay.mId); in testConsequentLaunchActivityFromVirtualDisplayNoEmbedding() 164 waitAndAssertActivityStateOnDisplay(LAUNCHING_ACTIVITY, STATE_RESUMED, newDisplay.mId, in testConsequentLaunchActivityFromVirtualDisplayNoEmbedding() 172 .setDisplayId(newDisplay.mId) in testConsequentLaunchActivityFromVirtualDisplayNoEmbedding() 195 assertTrue(isActivityStartAllowedOnDisplay(newDisplay.mId, TEST_ACTIVITY)); in testCanAccessSystemOwnedDisplay() 211 newDisplay.mId, SECOND_NO_EMBEDDING_ACTIVITY)), in testCanAccessPublicVirtualDisplayWithInternalPermission() 228 newDisplay.mId, SECOND_NO_EMBEDDING_ACTIVITY)), in testCanAccessPrivateVirtualDisplayWithInternalPermission() 244 assertFalse(isActivityStartAllowedOnDisplay(newDisplay.mId, SECOND_ACTIVITY)); in testCantAccessPublicVirtualDisplayNoEmbeddingPermission() 260 newDisplay.mId, SECOND_NO_EMBEDDING_ACTIVITY)), in testCantAccessPublicVirtualDisplayActivityEmbeddingNotAllowed() [all …]
|
D | MultiDisplayPolicyTests.java | 88 launchActivityOnDisplay(TEST_ACTIVITY, newDisplay.mId); in testContentDestroyOnDisplayRemoved() 89 waitAndAssertActivityStateOnDisplay(TEST_ACTIVITY, STATE_RESUMED, newDisplay.mId, in testContentDestroyOnDisplayRemoved() 92 launchActivityOnDisplay(RESIZEABLE_ACTIVITY, newDisplay.mId); in testContentDestroyOnDisplayRemoved() 93 waitAndAssertActivityStateOnDisplay(RESIZEABLE_ACTIVITY, STATE_RESUMED, newDisplay.mId, in testContentDestroyOnDisplayRemoved() 129 launchActivityOnDisplay(LAUNCH_TEST_ON_DESTROY_ACTIVITY, newDisplay.mId); in testActivityLaunchOnContentDestroyDisplayRemoved() 132 newDisplay.mId,"Launched activity must be resumed on secondary display"); in testActivityLaunchOnContentDestroyDisplayRemoved() 153 launchActivityOnDisplay(RESIZEABLE_ACTIVITY, WINDOWING_MODE_FULLSCREEN, newDisplay.mId); in testDisplayResize() 154 waitAndAssertActivityStateOnDisplay(RESIZEABLE_ACTIVITY, STATE_RESUMED, newDisplay.mId, in testDisplayResize() 206 waitAndAssertActivityStateOnDisplay(RESIZEABLE_ACTIVITY, STATE_RESUMED, newDisplay.mId, in testRotationNotAffectingSecondaryScreen() 222 waitAndAssertActivityStateOnDisplay(TEST_ACTIVITY, STATE_RESUMED, newDisplay.mId, in testRotationNotAffectingSecondaryScreen() [all …]
|
D | MultiDisplayKeyguardTests.java | 64 launchActivityOnDisplay(DISMISS_KEYGUARD_ACTIVITY, newDisplay.mId); in testDismissKeyguardActivity_secondaryDisplay() 81 mWmState.waitAndAssertKeyguardShownOnSecondaryDisplay(publicDisplay.mId); in testShowKeyguardDialogOnSecondaryDisplay() 86 mWmState.assertKeyguardShownOnSecondaryDisplay(publicDisplay.mId); in testShowKeyguardDialogOnSecondaryDisplay() 102 mWmState.waitAndAssertKeyguardShownOnSecondaryDisplay(publicDisplay.mId); in testShowKeyguardDialogSecondaryDisplayChange() 108 mWmState.waitAndAssertKeyguardShownOnSecondaryDisplay(publicDisplay.mId); in testShowKeyguardDialogSecondaryDisplayChange() 128 mWmState.waitAndAssertKeyguardShownOnSecondaryDisplay(publicDisplay.mId); in testShowKeyguardDialogDefaultDisplayChange() 143 mWmState.waitAndAssertKeyguardShownOnSecondaryDisplay(publicDisplay.mId); in testShowKeyguardDialogDefaultDisplayChange() 160 mWmState.waitAndAssertKeyguardShownOnSecondaryDisplay(publicDisplay.mId); in testNoKeyguardDialogOnPrivateDisplay() 161 mWmState.assertKeyguardGoneOnSecondaryDisplay(privateDisplay.mId); in testNoKeyguardDialogOnPrivateDisplay() 174 final int secondDisplayId = secondDisplay.mId; in testUnlockScreen_secondDisplayChanged_dismissesKeyguardOnUnlock() [all …]
|
D | MultiDisplaySystemDecorationTests.java | 131 final String TARGET_ENGINE_DISPLAY_ID = ENGINE_DISPLAY_ID + newDisplay.mId; in testWallpaperGetDisplayContext() 155 state -> isWallpaperOnDisplay(state, decoredSystemDisplay.mId), in testWallpaperShowOnSecondaryDisplays() 159 isWallpaperOnDisplay(mWmState, untrustedDisplay.mId)); in testWallpaperShowOnSecondaryDisplays() 222 mWmState.waitAndAssertNavBarShownOnDisplay(newDisplay.mId); in testNavBarShowingOnDisplayWithDecor() 270 mWmState.waitAndAssertNavBarShownOnDisplay(supportsSysDecorDisplay.mId); in waitAndAssertNavBarStatesAreTheSame() 375 newDisplay.mId, "Activity launched on secondary display must be resumed"); in assertSecondaryHomeResumedOnNewDisplay() 377 tapOnDisplayCenter(newDisplay.mId); in assertSecondaryHomeResumedOnNewDisplay() 379 mWmState.getFrontStackActivityType(newDisplay.mId)); in assertSecondaryHomeResumedOnNewDisplay() 400 newDisplay.mId); in testImeWindowCanSwitchToDifferentDisplays() 406 waitOrderedImeEventsThenAssertImeShown(stream, newDisplay.mId, in testImeWindowCanSwitchToDifferentDisplays() [all …]
|
D | PresentationTest.java | 65 launchPresentationActivity(display.mId); in testPresentationAllowedOnPresentationDisplay() 66 assertPresentationOnDisplayAndMatchesDisplayMetrics(display.mId); in testPresentationAllowedOnPresentationDisplay() 81 launchPresentationActivity(display.mId); in testPresentationNotDismissAfterResizeDisplay() 82 assertPresentationOnDisplayAndMatchesDisplayMetrics(display.mId); in testPresentationNotDismissAfterResizeDisplay() 88 state -> isPresentationOnDisplay(state, display.mId), in testPresentationNotDismissAfterResizeDisplay() 100 launchPresentationActivity(display.mId); in testPresentationBlockedOnNonPresentationDisplay()
|
D | MultiDisplayTestBase.java | 131 if (display.mId == displayId) { in getDisplayState() 142 if (display.mId == DEFAULT_DISPLAY) { in getDisplayState() 165 if (oldDisplays.stream().noneMatch(d -> d.mId == newDisplay.mId)) { in findNewDisplayStates() 653 .setDisplayId(display.mId)); in launchActivityOnDisplay() 727 final int oldImePolicy = mWm.getDisplayImePolicy(display.mId); in configureDisplays() 728 mDisplayStates.add(new OverlayDisplayState(display.mId, oldImePolicy)); in configureDisplays() 730 mWm.setDisplayImePolicy(display.mId, imePolicy); in configureDisplays() 732 () -> (mWm.getDisplayImePolicy(display.mId) == imePolicy)); in configureDisplays() 740 mWm.setDisplayImePolicy(state.mId, state.mImePolicy); in restoreDisplayStates() 744 () -> (mWm.getDisplayImePolicy(state.mId) == state.mImePolicy)); in restoreDisplayStates() [all …]
|
D | MultiDisplayLockedKeyguardTests.java | 71 launchActivityOnDisplay(TEST_ACTIVITY, newDisplay.mId); in testVirtualDisplayHidesContentWhenLocked() 101 launchActivityOnDisplay(TEST_ACTIVITY, newDisplay.mId); in testPrivateDisplayHideContentWhenLocked() 127 .setMultipleTask(true).setDisplayId(newDisplay.mId) in testDismissKeyguard_secondaryDisplay() 153 .setMultipleTask(true).setDisplayId(newDisplay.mId) in testDismissKeyguard_whileOccluded_secondaryDisplay()
|
D | WindowContextTests.java | 69 final Context windowContext = createWindowContext(display.mId); in testWindowContextConfigChanges() 76 createManagedDisplayMetricsSession(display.mId); in testWindowContextConfigChanges() 129 final Context windowContext = createWindowContext(display.mId); in testWindowContextRegisterComponentCallbacks() 131 createManagedDisplayMetricsSession(display.mId); in testWindowContextRegisterComponentCallbacks() 156 final Context windowContext = createWindowContext(display.mId); in testWindowContextGlobalConfigChanges()
|
D | MultiDisplayClientTests.java | 110 final int displayId = newDisplay.mId; in testDisplayIdUpdateOnMove() 170 activityClass, mockImeSession, newDisplay.mId); in testDisplayIdUpdateWhenImeMove() 202 final Display display = mDm.getDisplay(newDisplay.mId); in testInputMethodManagerDisplayId() 206 assertEquals("IMM#getDisplayId() must match.", newDisplay.mId, imm.getDisplayId()); in testInputMethodManagerDisplayId() 225 final int displayId = isPrimary ? DEFAULT_DISPLAY : newDisplay.mId; in testViewGetDisplay()
|
/cts/tests/autofillservice/src/android/autofillservice/cts/unittests/ |
D | DatasetTest.java | 54 private final AutofillId mId = new AutofillId(42); field in DatasetTest 106 assertThat(new Dataset.Builder().setValue(mId, mValue).build()).isNotNull(); in testBuilder_setValueWithoutPresentation() 112 assertThrows(NullPointerException.class, () -> builder.setValue(mId, mValue, in testBuilder_setValueWithNullPresentation() 119 assertThrows(NullPointerException.class, () -> builder.setValue(mId, mValue, in testBuilder_setValueWithBothPresentation_nullPresentation() 126 assertThrows(NullPointerException.class, () -> builder.setValue(mId, mValue, in testBuilder_setValueWithBothPresentation_nullInlinePresentation() 133 assertThrows(NullPointerException.class, () -> builder.setValue(mId, mValue, in testBuilder_setValueWithBothPresentation_bothNull() 139 assertThat(new Dataset.Builder(mPresentation).setValue(mId, mValue, (Pattern) null).build()) in testBuilder_setFilteredValueWithNullFilter() 145 assertThat(new Dataset.Builder().setValue(mId, mValue, null, mPresentation).build()) in testBuilder_setFilteredValueWithPresentation_nullFilter() 152 assertThrows(NullPointerException.class, () -> builder.setValue(mId, mValue, mFilter, in testBuilder_setFilteredValueWithPresentation_nullPresentation() 159 assertThrows(IllegalStateException.class, () -> builder.setValue(mId, mValue, mFilter)); in testBuilder_setFilteredValueWithoutPresentation() [all …]
|
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 …]
|
D | SaveInfoTest.java | 43 private final AutofillId mId = new AutofillId(42); field in SaveInfoTest 44 private final AutofillId[] mIdArray = { mId }; 101 () -> builder.addSanitizer(null, mId)); in testAddSanitizer_illegalArgs() 104 () -> builder.addSanitizer(mock(Sanitizer.class), mId)); in testAddSanitizer_illegalArgs() 113 () -> builder.addSanitizer(mSanitizer, new AutofillId[] {mId, mId})); in testAddSanitizer_illegalArgs() 120 builder.addSanitizer(mSanitizer, mId); in testAddSanitizer_sameIdOnDifferentCalls() 121 assertThrows(IllegalArgumentException.class, () -> builder.addSanitizer(mSanitizer, mId)); in testAddSanitizer_sameIdOnDifferentCalls()
|
/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()
|
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/users/ |
D | UserReference.java | 43 private final int mId; field in UserReference 50 mId = id; in UserReference() 54 return mId; in id() 61 return UserHandle.of(mId); in userHandle() 70 return mTestApis.users().fetchUser(mId); in resolve() 85 .addOperand(mId) in remove() 108 .addOperand(mId) in start() 134 .addOperand(mId) in stop() 159 .getIdentifier() == mId); in switchTo() 169 .addOperand(mId) in switchTo()
|
D | User.java | 61 Integer mId; field in User.MutableUser 76 super(testApis, mutableUser.mId); in User() 139 stringBuilder.append("id=" + mMutableUser.mId); in toString()
|
/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/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/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/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/apps/CtsVerifier/src/com/android/cts/verifier/notifications/ |
D | ConditionProviderVerifierActivity.java | 662 private String mId; field in ConditionProviderVerifierActivity.ReceiveRuleDisableNoticeTest 679 mId = mNm.addAutomaticZenRule(rule); in setUp() 693 AutomaticZenRule rule = mNm.getAutomaticZenRule(mId); in test() 696 Log.d(TAG, "Check pref for broadcast " + prefs.contains(mId) in test() 697 + " " + prefs.getInt(mId, AUTOMATIC_RULE_STATUS_UNKNOWN)); in test() 698 if (prefs.contains(mId) in test() 699 && EXPECTED_STATUS == prefs.getInt(mId, AUTOMATIC_RULE_STATUS_UNKNOWN)) { in test() 719 mNm.removeAutomaticZenRule(mId); in tearDown() 739 private String mId; field in ConditionProviderVerifierActivity.ReceiveRuleEnabledNoticeTest 756 mId = mNm.addAutomaticZenRule(rule); in setUp() [all …]
|
/cts/suite/audio_quality/lib/src/task/ |
D | TaskInput.cpp | 97 if (!getTestCase()->registerBuffer(mId, mBuffer)) { in complete() 98 if (!getTestCase()->updateBuffer(mId, mBuffer)) { in complete() 99 LOGE("cannot register/update buffer %s", mId.string()); in complete()
|
D | TaskOutput.cpp | 57 android::sp<Buffer> buffer = getTestCase()->findBuffer(mId); in start() 59 LOGE("cannot find buffer %s", mId.string()); in start() 69 int id = getTestCase()->getRemoteAudio()->getDataId(mId); in start()
|
D | TaskAsync.cpp | 40 if (mId.length() == 0) { in run() 62 mId.append(value); in parseAttribute()
|
/cts/tests/contentcaptureservice/src/android/contentcaptureservice/cts/ |
D | CtsContentCaptureService.java | 76 private final int mId = ++sIdCounter; field in CtsContentCaptureService 206 Log.i(TAG, "onConnected(id=" + mId + "): sServiceWatcher=" + sServiceWatcher); in onConnected() 230 Log.i(TAG, "onDisconnected(id=" + mId + "): sServiceWatcher=" + sServiceWatcher); in onDisconnected() 272 Log.i(TAG, "onCreateContentCaptureSession(id=" + mId + ", ignoreOrpahn=" in onCreateContentCaptureSession() 290 Log.i(TAG, "onDestroyContentCaptureSession(id=" + mId + ", ignoreOrpahn=" in onDestroyContentCaptureSession() 320 Log.i(TAG, "onContentCaptureEventsRequest(id=" + mId + ", ignoreOrpahn=" in onContentCaptureEvent() 336 Log.i(TAG, "onUserDataRemovalRequest(id=" + mId + ",req=" + request + ")"); in onDataRemovalRequest() 454 pw.print("mId: "); pw.println(mId); in dump() 485 + ".\nID=" + mId in throwIllegalSessionStateException()
|