Home
last modified time | relevance | path

Searched refs:instance (Results 1 – 25 of 169) sorted by relevance

1234567

/cts/tests/tests/networksecurityconfig/networksecurityconfig-attributes/src/android/security/net/config/cts/
DTestAttributes.java23 NetworkSecurityPolicy instance = NetworkSecurityPolicy.getInstance(); in testCleartextTrafficPermitted() local
26 assertFalse(instance.isCleartextTrafficPermitted()); in testCleartextTrafficPermitted()
28 assertFalse(instance.isCleartextTrafficPermitted("foo.bar")); in testCleartextTrafficPermitted()
30 assertTrue(instance.isCleartextTrafficPermitted("example.foo.bar")); in testCleartextTrafficPermitted()
33 assertTrue(instance.isCleartextTrafficPermitted("android.com")); in testCleartextTrafficPermitted()
34 assertTrue(instance.isCleartextTrafficPermitted("foo.android.com")); in testCleartextTrafficPermitted()
36 assertTrue(instance.isCleartextTrafficPermitted("example.com")); in testCleartextTrafficPermitted()
37 assertTrue(instance.isCleartextTrafficPermitted("test.example.com")); in testCleartextTrafficPermitted()
39 assertTrue(instance.isCleartextTrafficPermitted("example.com")); in testCleartextTrafficPermitted()
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/instance_of/d/T_instance_of_2.smalis/
DT_instance_of_2.smali37 new-instance v10, Ldot/junit/opcodes/instance_of/d/T_instance_of_2/SubClass;
41 instance-of v15, v10, Ldot/junit/opcodes/instance_of/d/T_instance_of_2/SuperClass;
50 instance-of v15, v10, [Ldot/junit/opcodes/instance_of/d/T_instance_of_2/SuperClass;
57 instance-of v15, v10, Ljava/lang/Object;
62 new-instance v10, Ldot/junit/opcodes/instance_of/d/T_instance_of_2/SubClass;
66 instance-of v15, v10, Ldot/junit/opcodes/instance_of/d/T_instance_of_2/SuperInterface;
71 new-instance v10, Ldot/junit/opcodes/instance_of/d/T_instance_of_2/SuperClass;
75 instance-of v15, v10, Ldot/junit/opcodes/instance_of/d/T_instance_of_2/SubClass;
80 new-instance v10, Ldot/junit/opcodes/instance_of/d/T_instance_of_2/SubClass;
84 instance-of v15, v10, Ldot/junit/opcodes/instance_of/d/T_instance_of_2/SuperInterface2;
[all …]
/cts/tests/tests/networksecurityconfig/networksecurityconfig-nested-domains/src/android/security/net/config/cts/
DNestedDomainConfigTest.java25 NetworkSecurityPolicy instance = NetworkSecurityPolicy.getInstance(); in testRootDomainConfig() local
26 assertTrue(instance.isCleartextTrafficPermitted("android.com")); in testRootDomainConfig()
31 NetworkSecurityPolicy instance = NetworkSecurityPolicy.getInstance(); in testNestedDomainConfig() local
32 assertFalse(instance.isCleartextTrafficPermitted("developer.android.com")); in testNestedDomainConfig()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/vr/
DMockVrListenerService.java51 public final VrListenerService instance; field in MockVrListenerService.Event
56 instance = i; in Event()
61 public static Event build(VrListenerService instance, EventType type, Object argument1) { in build() argument
62 return new Event(instance, type, argument1); in build()
65 public static Event build(VrListenerService instance, EventType type) { in build() argument
66 return new Event(instance, type, null); in build()
/cts/tests/sensor/jni/
Dandroid_hardware_cts_SensorNativeTest.cpp34 void tearDown(JNIEnv*, jclass, jlong instance) { in tearDown() argument
35 delete reinterpret_cast<SensorTest *>(instance); in tearDown()
38 void test(JNIEnv* env, jclass, jlong instance) { in test() argument
39 SensorTest *test = reinterpret_cast<SensorTest *>(instance); in test()
/cts/tests/tests/shortcutmanager/src/android/content/pm/cts/shortcutmanager/
DShortcutManagerNegativeTest.java50 private static Object readField(Object instance, String field) in readField() argument
52 final Field f = instance.getClass().getDeclaredField(field); in readField()
54 final Object ret = f.get(instance); in readField()
61 private static void callMethodExpectingSecurityException(Object instance, String name, in callMethodExpectingSecurityException() argument
66 for (Method method : instance.getClass().getDeclaredMethods()) { in callMethodExpectingSecurityException()
78 m.invoke(instance, args); in callMethodExpectingSecurityException()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/
DSoundGenerator.java8 private static SoundGenerator instance; field in SoundGenerator
49 if (instance == null) { in getInstance()
50 instance = new SoundGenerator(); in getInstance()
52 return instance; in getInstance()
DAudioRecordHelper.java26 private static AudioRecordHelper instance; field in AudioRecordHelper
63 if (instance == null) { in getInstance()
64 instance = new AudioRecordHelper(); in getInstance()
66 return instance; in getInstance()
/cts/tests/tests/uirendering/src/android/uirendering/cts/testinfrastructure/
DDisplayModifier.java256 paint.setShader(ResourceModifier.instance().repeatShader);
262 paint.setShader(ResourceModifier.instance().translatedShader);
268 paint.setShader(ResourceModifier.instance().scaledShader);
274 paint.setShader(ResourceModifier.instance().composeShader);
295 paint.setShader(ResourceModifier.instance().horGradient);
301 paint.setShader(ResourceModifier.instance().diagGradient);
307 paint.setShader(ResourceModifier.instance().vertGradient);
313 paint.setShader(ResourceModifier.instance().radGradient);
319 paint.setShader(ResourceModifier.instance().sweepGradient);
419 canvas.drawBitmapMesh(ResourceModifier.instance().bitmap, 3, 3,
[all …]
/cts/tests/accessibility/common/src/android/accessibility/cts/common/
DInstrumentedAccessibilityService.java192 final T instance = getInstanceForClass(clazz, TIMEOUT_SERVICE_ENABLE); in enableService() local
193 if (instance == null) { in enableService()
201 return instance; in enableService()
214 final T instance = (T) ref.get(); in getInstanceForClass() local
215 if (instance == null) { in getInstanceForClass()
218 return instance; in getInstanceForClass()
/cts/tests/sensor/src/android/hardware/cts/
DSensorNativeTest.java35 protected native void nativeTearDown(long instance); in nativeTearDown() argument
36 private native void nativeTest(long instance); in nativeTest() argument
/cts/tests/tests/content/src/android/content/cts/
DContextMoreTest.java112 private static Object readField(Object instance, String fieldName) { in readField() argument
115 f = instance.getClass().getDeclaredField(fieldName); in readField()
117 final Object ret = f.get(instance); in readField()
/cts/hostsidetests/incident/src/com/android/server/cts/
DSettingsIncidentTest.java127 private static <T> T invoke(Method method, Object instance, Object... args) { in invoke() argument
130 return (T) method.invoke(instance, args); in invoke()
136 private static <T> T invoke(Message instance, String methodName, Object... args) in invoke() argument
142 instance.getClass().getDeclaredMethod(methodName, inputParamTypes), in invoke()
143 instance, args); in invoke()
/cts/tests/tests/notificationlegacy/notificationlegacy27/src/android/app/notification/legacy/cts/
DConditionProviderServiceTest.java335 PollableConditionProviderService instance = in pollForConnection() local
338 while (tries-- > 0 && (waitForConnection ? instance == null : instance != null)) { in pollForConnection()
344 instance = (PollableConditionProviderService) service.getMethod("getInstance") in pollForConnection()
348 if (waitForConnection && instance == null) { in pollForConnection()
351 } else if (!waitForConnection && instance != null) { in pollForConnection()
/cts/hostsidetests/gputools/layers/jni/
DnullLayer.cpp176 VKAPI_ATTR PFN_vkVoidFunction VKAPI_CALL GetInstanceProcAddr(VkInstance instance, const char* funcN… in GetInstanceProcAddr() argument
183 return (PFN_vkVoidFunction)g_VulkanDispatchTable.GetInstanceProcAddr(instance, funcName); in GetInstanceProcAddr()
215 …API_ATTR PFN_vkVoidFunction VKAPI_CALL vkGetInstanceProcAddr(VkInstance instance, const char *func… in vkGetInstanceProcAddr() argument
216 return GetInstanceProcAddr(instance, funcName); in vkGetInstanceProcAddr()
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/iput_object/d/
DT_iput_object_30.smali20 # instance fields
38 new-instance v0, Ldot/junit/opcodes/iput_object/d/T_iput_object_30;
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/iget_object/d/
DT_iget_object_30.smali20 # instance fields
38 new-instance v0, Ldot/junit/opcodes/iget_object/d/T_iget_object_30;
DT_iget_object_21.smali20 # instance fields
30 new-instance v0, Ljava/lang/Object;
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/check_cast/d/T_check_cast_2.smalis/
DT_check_cast_2.smali37 new-instance v10, Ldot/junit/opcodes/check_cast/d/T_check_cast_2/SubClass;
56 new-instance v10, Ldot/junit/opcodes/check_cast/d/T_check_cast_2/SubClass;
63 new-instance v10, Ldot/junit/opcodes/check_cast/d/T_check_cast_2/SuperClass;
81 new-instance v10, Ldot/junit/opcodes/check_cast/d/T_check_cast_2/SubClass;
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/
DTestJournalProvider.java311 final TestJournalContainer instance = get(); in start() local
312 synchronized (instance) { in start()
313 instance.mContainer.clear(); in start()
315 return instance; in start()
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/new_instance/d/
DT_new_instance_2.smali20 # instance fields
36 new-instance v0, Ldot/junit/opcodes/new_instance/d/T_new_instance_2;
/cts/hostsidetests/gputools/apps/jni/
Dandroid_gputools_cts_RootlessGpuDebug.cpp61 VkInstance instance; in initVulkan() local
62 VkResult vkResult = vkCreateInstance(&instance_info, nullptr, &instance); in initVulkan()
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/opc_throw/d/
DT_opc_throw_5.smali34 new-instance v2, Ljava/lang/Object;
42 new-instance v1, Ljava/lang/NullPointerException;
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/return_object/d/
DT_return_object_14.smali32 new-instance v0, Ldot/junit/opcodes/return_object/d/TSuper;
48 instance-of v0, v1, Ldot/junit/opcodes/return_object/d/TChild;
DT_return_object_13.smali32 new-instance v1, Ldot/junit/opcodes/return_object/d/TChild;
48 instance-of v2, v2, Ldot/junit/opcodes/return_object/d/TChild;

1234567