Home
last modified time | relevance | path

Searched refs:mId (Results 1 – 25 of 41) sorted by relevance

12

/cts/tests/framework/base/windowmanager/src/android/server/wm/
DMultiDisplayActivityLaunchTests.java117 .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 …]
DMultiDisplaySecurityTests.java107 .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 …]
DMultiDisplayPolicyTests.java94 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 …]
DMultiDisplaySystemDecorationTests.java124 final String TARGET_ENGINE_DISPLAY_ID = ENGINE_DISPLAY_ID + newDisplay.mId; in testWallpaperGetDisplayContext()
151 (state) -> isWallpaperOnDisplay(state, decoredSystemDisplay.mId), in testWallpaperShowOnSecondaryDisplays()
155 isWallpaperOnDisplay(mAmWmState.getWmState(), decoredSystemDisplay.mId)); in testWallpaperShowOnSecondaryDisplays()
158 isWallpaperOnDisplay(mAmWmState.getWmState(), untrustedDisplay.mId)); in testWallpaperShowOnSecondaryDisplays()
214 mAmWmState.waitAndAssertNavBarShownOnDisplay(newDisplay.mId); in testNavBarShowingOnDisplayWithDecor()
267 mAmWmState.waitAndAssertNavBarShownOnDisplay(supportsSysDecorDisplay.mId); in waitAndAssertNavBarStatesAreTheSame()
316 waitAndAssertTopResumedActivity(getDefaultSecondaryHomeComponent(), newDisplay.mId, in testLaunchSingleHomeActivityOnDisplayWithDecorations()
319 mAmWmState.getAmState().getFrontStackActivityType(newDisplay.mId)); in testLaunchSingleHomeActivityOnDisplayWithDecorations()
338 waitAndAssertTopResumedActivity(getDefaultSecondaryHomeComponent(), newDisplay.mId, in testLaunchSingleSecondaryHomeActivityOnDisplayWithDecorations()
341 mAmWmState.getAmState().getFrontStackActivityType(newDisplay.mId)); in testLaunchSingleSecondaryHomeActivityOnDisplayWithDecorations()
[all …]
DMultiDisplayKeyguardTests.java65 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()
DMultiDisplayTestBase.java107 if (display.mId == displayId) { in getDisplayState()
118 if (display.mId == DEFAULT_DISPLAY) { in getDisplayState()
141 if (oldDisplays.stream().noneMatch(d -> d.mId == newDisplay.mId)) { in findNewDisplayStates()
484 .setDisplayId(display.mId)); in launchActivityOnDisplay()
531 final boolean showSystemDecors = mWm.shouldShowSystemDecors(display.mId); in configureDisplays()
532 final boolean showIme = mWm.shouldShowIme(display.mId); in configureDisplays()
534 display.mId, showSystemDecors, showIme)); in configureDisplays()
536 mWm.setShouldShowSystemDecors(display.mId, requestShowSysDecors); in configureDisplays()
540 display.mId) == requestShowSysDecors); in configureDisplays()
543 mWm.setShouldShowIme(display.mId, requestShowIme); in configureDisplays()
[all …]
DMultiDisplayClientTests.java106 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()
DMultiDisplayLockedKeyguardTests.java71 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()
DVrDisplayTests.java147 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/
DMyAutofillId.java25 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()
DDatasetTest.java41 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 …]
DUserDataTest.java76 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 …]
DSaveInfoTest.java43 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()
DCannedFillResponse.java538 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/
DMovie.java28 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/
DImeCommand.java32 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/
DUriHelper.java105 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/
DContactsContract_TestDataBuilder.java60 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/
DHidDevice.java44 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/
DTaskInput.cpp97 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()
DTaskOutput.cpp57 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()
DTaskAsync.cpp40 if (mId.length() == 0) { in run()
62 mId.append(value); in parseAttribute()
/cts/tests/contentcaptureservice/src/android/contentcaptureservice/cts/
DCtsContentCaptureService.java65 private final int mId = ++sIdCounter; field in CtsContentCaptureService
166 Log.i(TAG, "onConnected(id=" + mId + "): sServiceWatcher=" + sServiceWatcher); in onConnected()
189 Log.i(TAG, "onDisconnected(id=" + mId + "): sServiceWatcher=" + sServiceWatcher); in onDisconnected()
232 Log.i(TAG, "onCreateContentCaptureSession(id=" + mId + ", ignoreOrpahn=" in onCreateContentCaptureSession()
250 Log.i(TAG, "onDestroyContentCaptureSession(id=" + mId + ", ignoreOrpahn=" in onDestroyContentCaptureSession()
270 Log.i(TAG, "onContentCaptureEventsRequest(id=" + mId + ", ignoreOrpahn=" in onContentCaptureEvent()
285 Log.i(TAG, "onUserDataRemovalRequest(id=" + mId + ",req=" + request + ")"); in onDataRemovalRequest()
361 pw.print("mId: "); pw.println(mId); in dump()
392 + ".\nID=" + mId in throwIllegalSessionStateException()
/cts/tests/app/src/android/app/cts/
DNotificationManagerTest.java130 private String mId; field in NotificationManagerTest
138 mId = UUID.randomUUID().toString(); in setUp()
655 new NotificationChannel(mId, "name", NotificationManager.IMPORTANCE_DEFAULT); in testCreateChannelGroup()
659 new NotificationChannel(mId + "!", "name", NotificationManager.IMPORTANCE_DEFAULT); in testCreateChannelGroup()
680 new NotificationChannel(mId, "name", NotificationManager.IMPORTANCE_DEFAULT); in testGetChannelGroup()
700 new NotificationChannel(mId, "name", NotificationManager.IMPORTANCE_DEFAULT); in testGetChannelGroups()
729 new NotificationChannel(mId, "name", NotificationManager.IMPORTANCE_DEFAULT); in testDeleteChannelGroup()
742 new NotificationChannel(mId, "name", NotificationManager.IMPORTANCE_DEFAULT); in testCreateChannel()
754 mNotificationManager.getNotificationChannel(mId); in testCreateChannel()
763 new NotificationChannel(mId, "name", NotificationManager.IMPORTANCE_DEFAULT); in testCreateChannel_rename()
[all …]
/cts/tests/tests/net/src/android/net/cts/
DNetworkRequestTest.java65 private final int mId; field in NetworkRequestTest.LocalNetworkSpecifier
68 mId = id; in LocalNetworkSpecifier()
74 && mId == ((LocalNetworkSpecifier) other).mId; in canBeSatisfiedBy()

12