/cts/tests/framework/base/windowmanager/src/android/server/wm/ |
D | MultiDisplayActivityLaunchTests.java | 117 .setDisplayId(newDisplay.mId).execute(); in validateActivityLaunchOnNewDisplay() 118 waitAndAssertTopResumedActivity(TEST_ACTIVITY, newDisplay.mId, in validateActivityLaunchOnNewDisplay() 127 mAmWmState.getAmState().getFrontStackActivityType(newDisplay.mId)); in validateActivityLaunchOnNewDisplay() 163 final int newDisplayId = newDisplay.mId; in testLaunchActivityFromSecondaryDisplay() 168 waitAndAssertTopResumedActivity(BROADCAST_RECEIVER_ACTIVITY, newDisplay.mId, in testLaunchActivityFromSecondaryDisplay() 178 waitAndAssertTopResumedActivity(TEST_ACTIVITY, newDisplay.mId, in testLaunchActivityFromSecondaryDisplay() 208 launchActivityOnDisplay(TEST_ACTIVITY, newDisplay.mId); in testLaunchExternalDisplayActivityWhilePrimaryOff() 211 waitAndAssertTopResumedActivity(TEST_ACTIVITY, newDisplay.mId, in testLaunchExternalDisplayActivityWhilePrimaryOff() 229 launchActivityOnDisplay(NON_RESIZEABLE_ACTIVITY, newDisplay.mId); in testLaunchNonResizeableActivityOnSecondaryDisplay() 231 waitAndAssertTopResumedActivity(NON_RESIZEABLE_ACTIVITY, newDisplay.mId, in testLaunchNonResizeableActivityOnSecondaryDisplay() [all …]
|
D | MultiDisplaySecurityTests.java | 107 .setDisplayId(newDisplay.mId) in testLaunchWithoutPermissionOnVirtualDisplayByOwner() 116 assertEquals("Focused stack must be on secondary display", newDisplay.mId, in testLaunchWithoutPermissionOnVirtualDisplayByOwner() 142 .setDisplayId(newDisplay.mId) in testLaunchWithoutPermissionOnVirtualDisplay() 165 launchActivityOnDisplay(LAUNCHING_ACTIVITY, newDisplay.mId); in testConsequentLaunchActivityFromVirtualDisplayNoEmbedding() 167 waitAndAssertTopResumedActivity(LAUNCHING_ACTIVITY, newDisplay.mId, in testConsequentLaunchActivityFromVirtualDisplayNoEmbedding() 175 .setDisplayId(newDisplay.mId) in testConsequentLaunchActivityFromVirtualDisplayNoEmbedding() 198 newDisplay.mId, intent)); in testCanAccessSystemOwnedDisplay() 220 newDisplay.mId, intent)), "android.permission.INTERNAL_SYSTEM_WINDOW"); in testCanAccessPublicVirtualDisplayWithInternalPermission() 242 newDisplay.mId, intent)), "android.permission.INTERNAL_SYSTEM_WINDOW"); in testCanAccessPrivateVirtualDisplayWithInternalPermission() 263 newDisplay.mId, intent)); in testCantAccessPublicVirtualDisplayNoEmbeddingPermission() [all …]
|
D | MultiDisplayPolicyTests.java | 94 launchActivityOnDisplay(TEST_ACTIVITY, newDisplay.mId); in testContentDestroyOnDisplayRemoved() 95 waitAndAssertTopResumedActivity(TEST_ACTIVITY, newDisplay.mId, in testContentDestroyOnDisplayRemoved() 98 launchActivityOnDisplay(RESIZEABLE_ACTIVITY, newDisplay.mId); in testContentDestroyOnDisplayRemoved() 99 waitAndAssertTopResumedActivity(RESIZEABLE_ACTIVITY, newDisplay.mId, in testContentDestroyOnDisplayRemoved() 135 launchActivityOnDisplay(LAUNCH_TEST_ON_DESTROY_ACTIVITY, newDisplay.mId); in testActivityLaunchOnContentDestroyDisplayRemoved() 137 waitAndAssertTopResumedActivity(LAUNCH_TEST_ON_DESTROY_ACTIVITY, newDisplay.mId, in testActivityLaunchOnContentDestroyDisplayRemoved() 159 launchActivityOnDisplay(RESIZEABLE_ACTIVITY, newDisplay.mId); in testDisplayResize() 160 waitAndAssertTopResumedActivity(RESIZEABLE_ACTIVITY, newDisplay.mId, in testDisplayResize() 218 waitAndAssertTopResumedActivity(RESIZEABLE_ACTIVITY, newDisplay.mId, in testRotationNotAffectingSecondaryScreen() 235 waitAndAssertTopResumedActivity(TEST_ACTIVITY, newDisplay.mId, in testRotationNotAffectingSecondaryScreen() [all …]
|
D | MultiDisplayKeyguardTests.java | 65 launchActivityOnDisplay(DISMISS_KEYGUARD_ACTIVITY, newDisplay.mId); in testDismissKeyguardActivity_secondaryDisplay() 83 mAmWmState.waitForWithWmState((state) -> isKeyguardOnDisplay(state, publicDisplay.mId), in testShowKeyguardDialogOnSecondaryDisplay() 87 isKeyguardOnDisplay(mAmWmState.getWmState(), publicDisplay.mId)); in testShowKeyguardDialogOnSecondaryDisplay() 93 isKeyguardOnDisplay(mAmWmState.getWmState(), publicDisplay.mId)); in testShowKeyguardDialogOnSecondaryDisplay() 111 mAmWmState.waitForWithWmState((state) -> isKeyguardOnDisplay(state, publicDisplay.mId), in testNoKeyguardDialogOnPrivateDisplay() 115 isKeyguardOnDisplay(mAmWmState.getWmState(), publicDisplay.mId)); in testNoKeyguardDialogOnPrivateDisplay() 117 isKeyguardOnDisplay(mAmWmState.getWmState(), privateDisplay.mId)); in testNoKeyguardDialogOnPrivateDisplay()
|
D | MultiDisplaySystemDecorationTests.java | 122 final String TARGET_ENGINE_DISPLAY_ID = ENGINE_DISPLAY_ID + newDisplay.mId; in testWallpaperGetDisplayContext() 149 (state) -> isWallpaperOnDisplay(state, decoredSystemDisplay.mId), in testWallpaperShowOnSecondaryDisplays() 153 isWallpaperOnDisplay(mAmWmState.getWmState(), decoredSystemDisplay.mId)); in testWallpaperShowOnSecondaryDisplays() 156 isWallpaperOnDisplay(mAmWmState.getWmState(), untrustedDisplay.mId)); in testWallpaperShowOnSecondaryDisplays() 212 mAmWmState.waitAndAssertNavBarShownOnDisplay(newDisplay.mId); in testNavBarShowingOnDisplayWithDecor() 265 mAmWmState.waitAndAssertNavBarShownOnDisplay(supportsSysDecorDisplay.mId); in waitAndAssertNavBarStatesAreTheSame() 314 waitAndAssertTopResumedActivity(getDefaultSecondaryHomeComponent(), newDisplay.mId, in testLaunchSingleHomeActivityOnDisplayWithDecorations() 317 mAmWmState.getAmState().getFrontStackActivityType(newDisplay.mId)); in testLaunchSingleHomeActivityOnDisplayWithDecorations() 336 waitAndAssertTopResumedActivity(getDefaultSecondaryHomeComponent(), newDisplay.mId, in testLaunchSingleSecondaryHomeActivityOnDisplayWithDecorations() 339 mAmWmState.getAmState().getFrontStackActivityType(newDisplay.mId)); in testLaunchSingleSecondaryHomeActivityOnDisplayWithDecorations() [all …]
|
D | MultiDisplayTestBase.java | 106 if (display.mId == displayId) { in getDisplayState() 117 if (display.mId == DEFAULT_DISPLAY) { in getDisplayState() 140 if (oldDisplays.stream().noneMatch(d -> d.mId == newDisplay.mId)) { in findNewDisplayStates() 523 .setDisplayId(display.mId)); in launchActivityOnDisplay() 555 final boolean showSystemDecors = mWm.shouldShowSystemDecors(display.mId); in addAndConfigDisplayState() 556 final boolean showIme = mWm.shouldShowIme(display.mId); in addAndConfigDisplayState() 557 mDisplayStates.add(new OverlayDisplayState(display.mId, showSystemDecors, showIme)); in addAndConfigDisplayState() 559 mWm.setShouldShowSystemDecors(display.mId, requestShowSysDecors); in addAndConfigDisplayState() 562 () -> mWm.shouldShowSystemDecors(display.mId) == requestShowSysDecors); in addAndConfigDisplayState() 565 mWm.setShouldShowIme(display.mId, requestShowIme); in addAndConfigDisplayState() [all …]
|
D | MultiDisplayClientTests.java | 106 launchOptions.setLaunchDisplayId(newDisplay.mId); in testDisplayIdUpdateOnMove() 111 waitAndAssertTopResumedActivity(activityName, newDisplay.mId, in testDisplayIdUpdateOnMove() 123 assertEquals(message, newDisplay.mId, activity.getDisplayId()); in testDisplayIdUpdateOnMove() 124 assertEquals(message, newDisplay.mId, activity.getDisplay().getDisplayId()); in testDisplayIdUpdateOnMove() 126 assertEquals(message, newDisplay.mId, wm.getDefaultDisplay().getDisplayId()); in testDisplayIdUpdateOnMove() 179 activityClass, mockImeSession, newDisplay.mId); in testDisplayIdUpdateWhenImeMove() 213 .getDisplay(newDisplay.mId); in testInputMethodManagerDisplayId() 218 assertEquals(newDisplay.mId, imm.getDisplayId()); in testInputMethodManagerDisplayId()
|
D | MultiDisplayLockedKeyguardTests.java | 71 launchActivityOnDisplay(TEST_ACTIVITY, newDisplay.mId); in testVirtualDisplayHidesContentWhenLocked() 103 launchActivityOnDisplay(TEST_ACTIVITY, newDisplay.mId); in testPrivateDisplayHideContentWhenLocked() 129 .setMultipleTask(true).setDisplayId(newDisplay.mId) in testDismissKeyguard_secondaryDisplay() 156 .setMultipleTask(true).setDisplayId(newDisplay.mId) in testDismissKeyguard_whileOccluded_secondaryDisplay()
|
D | VrDisplayTests.java | 147 assertEquals("Launch in Vr mode should be in virtual stack", vrDisplay.mId, in testVrActivityLaunch() 197 assertEquals("Launch in Vr mode should be in virtual stack", vrDisplay.mId, in testVrActivityReLaunch() 249 assertEquals("Launch in Vr mode should be in virtual stack", vrDisplay.mId, in testActivityLaunchPostVr()
|
/cts/tests/autofillservice/src/android/autofillservice/cts/ |
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 | DatasetTest.java | 41 private final AutofillId mId = new AutofillId(42); field in DatasetTest 61 assertThat(new Dataset.Builder().setValue(mId, mValue).build()).isNotNull(); in testBuilder_setValueWithoutPresentation() 67 assertThrows(NullPointerException.class, () -> builder.setValue(mId, mValue, in testBuilder_setValueWithNullPresentation() 73 assertThat(new Dataset.Builder(mPresentation).setValue(mId, mValue, (Pattern) null).build()) in testBuilder_setFilteredValueWithNullFilter() 79 assertThat(new Dataset.Builder().setValue(mId, mValue, null, mPresentation).build()) in testBuilder_setFilteredValueWithPresentationNullFilter() 86 assertThrows(NullPointerException.class, () -> builder.setValue(mId, mValue, mFilter, in testBuilder_setFilteredValueWithPresentationNullPresentation() 93 assertThrows(IllegalStateException.class, () -> builder.setValue(mId, mValue, mFilter)); in testBuilder_setFilteredValueWithoutPresentation() 105 builder.setValue(mId, mValue, mPresentation); in testNoMoreInteractionsAfterBuild() 108 assertThrows(IllegalStateException.class, () -> builder.setValue(mId, mValue)); in testNoMoreInteractionsAfterBuild() 110 () -> builder.setValue(mId, mValue, mPresentation)); in testNoMoreInteractionsAfterBuild() [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()
|
D | CannedFillResponse.java | 538 private final String mId; field in CannedFillResponse.CannedDataset 546 mId = builder.mId; in CannedDataset() 583 builder.setId(mId).setAuthentication(mAuthentication); in asDataset() 589 return "CannedDataset " + mId + " : [hasPresentation=" + (mPresentation != null) in toString() 603 private String mId; field in CannedFillResponse.CannedDataset.Builder 745 mId = id; in setId()
|
/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/provider/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/libs/input/src/com/android/cts/input/ |
D | HidDevice.java | 44 private final int mId; // // initialized from the json file field in HidDevice 64 mId = deviceId; in HidDevice() 103 json.put("id", mId); in delay() 124 json.put("id", mId); in sendHidReport()
|
/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 | 64 private final int mId = ++sIdCounter; field in CtsContentCaptureService 165 Log.i(TAG, "onConnected(id=" + mId + "): sServiceWatcher=" + sServiceWatcher); in onConnected() 188 Log.i(TAG, "onDisconnected(id=" + mId + "): sServiceWatcher=" + sServiceWatcher); in onDisconnected() 231 Log.i(TAG, "onCreateContentCaptureSession(id=" + mId + ", ignoreOrpahn=" in onCreateContentCaptureSession() 249 Log.i(TAG, "onDestroyContentCaptureSession(id=" + mId + ", ignoreOrpahn=" in onDestroyContentCaptureSession() 269 Log.i(TAG, "onContentCaptureEventsRequest(id=" + mId + ", ignoreOrpahn=" in onContentCaptureEvent() 284 Log.i(TAG, "onDataRemovalRequest(id=" + mId + ",req=" + request + ")"); in onDataRemovalRequest() 360 pw.print("mId: "); pw.println(mId); in dump() 391 + ".\nID=" + mId in throwIllegalSessionStateException()
|
/cts/tests/app/src/android/app/cts/ |
D | NotificationManagerTest.java | 128 private String mId; field in NotificationManagerTest 136 mId = UUID.randomUUID().toString(); in setUp() 648 new NotificationChannel(mId, "name", NotificationManager.IMPORTANCE_DEFAULT); in testCreateChannelGroup() 652 new NotificationChannel(mId + "!", "name", NotificationManager.IMPORTANCE_DEFAULT); in testCreateChannelGroup() 673 new NotificationChannel(mId, "name", NotificationManager.IMPORTANCE_DEFAULT); in testGetChannelGroup() 693 new NotificationChannel(mId, "name", NotificationManager.IMPORTANCE_DEFAULT); in testGetChannelGroups() 722 new NotificationChannel(mId, "name", NotificationManager.IMPORTANCE_DEFAULT); in testDeleteChannelGroup() 735 new NotificationChannel(mId, "name", NotificationManager.IMPORTANCE_DEFAULT); in testCreateChannel() 747 mNotificationManager.getNotificationChannel(mId); in testCreateChannel() 756 new NotificationChannel(mId, "name", NotificationManager.IMPORTANCE_DEFAULT); in testCreateChannel_rename() [all …]
|
/cts/suite/audio_quality/lib/src/audio/ |
D | AudioProtocol.cpp | 95 mBuffer[2] = htonl(param.mId); in sendCommand() 113 mBuffer[2] = htonl(param.mId); in sendCommand()
|