Home
last modified time | relevance | path

Searched defs:instance (Results 1 – 25 of 69) sorted by relevance

123

/cts/tests/tests/nfc/src/android/nfc/cts/
DNfcFCardEmulationTest.java55 NfcFCardEmulation instance = NfcFCardEmulation.getInstance(mAdapter); in setUp() local
71 NfcFCardEmulation instance = NfcFCardEmulation.getInstance(mAdapter); in getNonNullInstance() local
77 NfcFCardEmulation instance = createMockedInstance(); in testGetSystemCodeForService() local
87 NfcFCardEmulation instance = createMockedInstance(); in testRegisterCodeForService() local
97 NfcFCardEmulation instance = createMockedInstance(); in testUnregisterSystemCodeForService() local
106 NfcFCardEmulation instance = createMockedInstance(); in testGetNfcid2ForService() local
116 NfcFCardEmulation instance = createMockedInstance(); in testSetNfcid2ForService() local
126 NfcFCardEmulation instance = createMockedInstance(); in testEnableService() local
135 NfcFCardEmulation instance = createMockedInstance(); in testDisableService() local
153 NfcFCardEmulation instance = NfcFCardEmulation.getInstance(mAdapter); in createMockedInstance() local
DCardEmulationTest.java106 CardEmulation instance = CardEmulation.getInstance(mAdapter); in setUp() local
119 CardEmulation instance = CardEmulation.getInstance(mAdapter); in restoreOriginalService() local
125 CardEmulation instance = CardEmulation.getInstance(mAdapter); in setMockService() local
132 CardEmulation instance = CardEmulation.getInstance(mAdapter); in getNonNullInstance() local
138 CardEmulation instance = createMockedInstance(); in testIsDefaultServiceForCategory() local
148 CardEmulation instance = createMockedInstance(); in testIsDefaultServiceForAid() local
158 CardEmulation instance = CardEmulation.getInstance(mAdapter); in testCategoryAllowsForegroundPreferenceWithCategoryPayment() local
166 CardEmulation instance = CardEmulation.getInstance(mAdapter); in testCategoryAllowsForegroundPrefenceWithCategoryOther() local
175 CardEmulation instance = createMockedInstance(); in testGetSelectionModeForCategoryWithCategoryPaymentAndPaymentRegistered() local
184 CardEmulation instance = createMockedInstance(); in testGetSelectionModeForCategoryWithCategoryPaymentAndWithoutPaymentRegistered() local
[all …]
/cts/tests/devicepolicy/src/android/devicepolicy/cts/
DActivityTest.java70 try (TestAppInstance instance = sTestApp.install(sDeviceState.workProfile())) { in startActivityForResultAsUser_differentUser_startedSuccessfully()
93 try (TestAppInstance instance = sTestApp.install(sDeviceState.workProfile())) { in startActivityForResultAsUser_requestCodeAndResultPassedSuccessfully()
127 try (TestAppInstance instance = sTestApp.install(sDeviceState.workProfile())) { in startActivityForResultAsUser_noPermissions_throwsSecurityException()
150 try (TestAppInstance instance = sTestApp.install(sDeviceState.workProfile())) { in startActivityAsUser_differentUser_startedSuccessfully()
174 try (TestAppInstance instance = sTestApp.install(sDeviceState.workProfile())) { in startActivityAsUser_noPermissions_throwsSecurityException()
DUserControlDisabledPackagesTest.java165 try (TestAppInstance instance = sTestApp.install()) { in setUserControlDisabledPackages_launchActivity_verifyPackageNotStopped()
192 try (TestAppInstance instance = sTestApp.install()) { in setUserControlDisabledPackages_launchActivity_verifyPackageStopped()
287 try (TestAppInstance instance = sTestApp.install()) { in getDevicePolicyState_setUserControlDisabledPackages_returnsPolicy()
313 try (TestAppInstance instance = sTestApp.install()) { in policyUpdateReceiver_setUserControlDisabledPackages_receivedPolicySetBroadcast()
336 try (TestAppInstance instance = sTestApp.install()) { in getDevicePolicyState_setUserControlDisabledPackages_returnsCorrectResolutionMechanism()
/cts/tests/tests/networksecurityconfig/networksecurityconfig-nested-domains/src/android/security/net/config/cts/
DNestedDomainConfigTest.java35 NetworkSecurityPolicy instance = NetworkSecurityPolicy.getInstance(); in testRootDomainConfig() local
42 NetworkSecurityPolicy instance = NetworkSecurityPolicy.getInstance(); in testNestedDomainConfig() local
/cts/hostsidetests/media/app/ProxyMediaRouterWithMediaContentControlApp/src/android/media/router/cts/proxymediacontentcontrolapp/
DMediaRouter2DeviceTest.java119 MediaRouter2 instance = MediaRouter2.getInstance(mContext, mContext.getPackageName()); in requestScan_withScreenOnScanning_triggersScanning() local
154 MediaRouter2 instance = MediaRouter2.getInstance(mContext, mContext.getPackageName()); in cancelScanRequest_callTwice_throwsIllegalArgumentException() local
173 MediaRouter2 instance = MediaRouter2.getInstance(mContext, mContext.getPackageName()); in cancelScanRequest_screenOnScanning_unbindsSelfScanProvider() local
272 MediaRouter2 instance = MediaRouter2.getInstance(mContext, mContext.getPackageName()); in getAllRoutes_returnsAtLeastOneSystemRoute() local
/cts/common/device-side/bedstead/testapp/src/library/main/java/com/android/bedstead/testapp/
DTestAppActivities.java33 static TestAppActivities create(TestAppInstance instance) { in create()
39 private TestAppActivities(TestAppInstance instance) { in TestAppActivities()
DUnresolvedTestAppActivity.java27 UnresolvedTestAppActivity(TestAppInstance instance, in UnresolvedTestAppActivity()
DTestAppActivity.java33 TestAppActivity(TestAppInstance instance, ComponentReference component) { in TestAppActivity()
/cts/tests/sensor/src/android/hardware/cts/
DSensorNativeTest.java35 protected native void nativeTearDown(long instance); in nativeTearDown()
36 private native void nativeTest(long instance); in nativeTest()
/cts/tests/tests/multiuser/src/android/multiuser/cts/
DUserVisibilityTestCase.java117 try (TestAppInstance instance = testApp.install(user)) { in runTestOnDisplay()
152 try (TestAppInstance instance = testApp.install(profile)) { in runTestOnSecondaryDisplay()
163 void run(UserReference user, int displayId, TestAppInstance instance); in run()
168 TestAppInstance instance); in run()
172 void run(UserReference user, TestAppInstance instance); in run()
DUserVisibilityVisibleBackgroundUsersTestCase.java111 runTestOnSecondaryDisplay((user, profile, display, instance) -> { in testGetVisibleUsers_stoppedProfileOfBackgroundUserOnSecondaryDisplay() argument
129 runTestOnSecondaryDisplay((user, displayId, instance) -> { in testStartVisibleBgUser_onSecondaryDisplay() argument
294 runTestOnSecondaryDisplay((user, displayId, instance) -> { in testStartVisibleBgUser_onSecondaryDisplay_displayInUse() argument
/cts/hostsidetests/adpf/app/hintsession/src/cpp/
DJNIManager.h36 static JNIManager instance; in getInstance() local
74 static JNIManager& instance; variable
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/notifications/
DNeneNotificationListenerService.kt52 val instance = AtomicReference<NeneNotificationListenerService?>() constant
/cts/apps/CtsVerifier/src/com/android/cts/verifier/vr/
DMockVrListenerService.java51 public final VrListenerService instance; field in MockVrListenerService.Event
61 public static Event build(VrListenerService instance, EventType type, Object argument1) { in build()
65 public static Event build(VrListenerService instance, EventType type) { in build()
/cts/tests/tests/networksecurityconfig/networksecurityconfig-attributes/src/android/security/net/config/cts/
DTestAttributes.java34 NetworkSecurityPolicy instance = NetworkSecurityPolicy.getInstance(); in testCleartextTrafficPermitted() local
/cts/tests/sensor/jni/
Dandroid_hardware_cts_SensorNativeTest.cpp34 void tearDown(JNIEnv*, jclass, jlong instance) { in tearDown()
38 void test(JNIEnv* env, jclass, jlong instance) { in test()
/cts/common/device-side/bedstead/nene/src/test/java/com/android/bedstead/nene/packages/
DPackageTest.java212 try (TestAppInstance instance = sTestApp.install()) { in grantPermission_permissionIsGranted()
275 try (TestAppInstance instance = sTestApp.install()) { in denyPermission_permissionIsNotGranted()
286 try (TestAppInstance instance = sTestApp.install()) { in denyPermission_installPermission_throwsException()
294 try (TestAppInstance instance = sTestApp.install()) { in denyPermission_alreadyDenied_doesNothing()
/cts/tests/tests/shortcutmanager/src/android/content/pm/cts/shortcutmanager/
DShortcutManagerNegativeTest.java51 private static Object readField(Object instance, String field) in readField()
62 private static void callMethodExpectingSecurityException(Object instance, String name, in callMethodExpectingSecurityException()
/cts/tests/tests/time/src/android/app/time/cts/
DParcelableTestSupport.java50 public static <T extends Parcelable> void assertRoundTripParcelable(T instance) { in assertRoundTripParcelable()
/cts/hostsidetests/media/app/ProxyMediaRouterMediaRoutingControl/src/android/media/router/cts/proxyroutingapp/
DMediaRouter2DeviceTest.java205 MediaRouter2 instance = MediaRouter2.getInstance(mContext, mContext.getPackageName()); in requestScan_withScreenOff_triggersScanning() local
251 MediaRouter2 instance = MediaRouter2.getInstance(mContext, mContext.getPackageName()); in cancelScanRequest_screenOffScanning_unbindsSelfScanProvider() local
299 MediaRouter2 instance = MediaRouter2.getInstance(mContext, mContext.getPackageName()); in cancelScanRequest_multipleTypes_unbindsSelfScanProvider() local
/cts/tests/accessibility/common/src/android/accessibility/cts/common/
DInstrumentedAccessibilityService.java217 final T instance = getInstanceForClass(clazz, TIMEOUT_SERVICE_ENABLE); in enableService() local
238 final T instance = getInstanceForClass(clazz); in getInstanceForClass() local
257 final T instance = (T) ref.get(); in getInstanceForClass() local
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
DNotificationListener.java35 private static NotificationListener instance; field in NotificationListener
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/
DNotificationListener.java35 private static NotificationListener instance; field in NotificationListener
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DNotificationListener.java39 private static NotificationListener instance; field in NotificationListener

123