Home
last modified time | relevance | path

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

123456

/cts/tests/tests/networksecurityconfig/networksecurityconfig-attributes/src/android/security/net/config/cts/
DTestAttributes.java24 NetworkSecurityPolicy instance = NetworkSecurityPolicy.getInstance(); in testCleartextTrafficPermitted() local
27 assertFalse(instance.isCleartextTrafficPermitted()); in testCleartextTrafficPermitted()
29 assertFalse(instance.isCleartextTrafficPermitted("foo.bar")); in testCleartextTrafficPermitted()
31 assertTrue(instance.isCleartextTrafficPermitted("example.foo.bar")); in testCleartextTrafficPermitted()
34 assertTrue(instance.isCleartextTrafficPermitted("android.com")); in testCleartextTrafficPermitted()
35 assertTrue(instance.isCleartextTrafficPermitted("foo.android.com")); in testCleartextTrafficPermitted()
37 assertTrue(instance.isCleartextTrafficPermitted("example.com")); in testCleartextTrafficPermitted()
38 assertTrue(instance.isCleartextTrafficPermitted("test.example.com")); in testCleartextTrafficPermitted()
40 assertTrue(instance.isCleartextTrafficPermitted("example.com")); in testCleartextTrafficPermitted()
/cts/tests/tests/networksecurityconfig/networksecurityconfig-nested-domains/src/android/security/net/config/cts/
DNestedDomainConfigTest.java27 NetworkSecurityPolicy instance = NetworkSecurityPolicy.getInstance(); in testRootDomainConfig() local
28 assertTrue(instance.isCleartextTrafficPermitted("android.com")); in testRootDomainConfig()
33 NetworkSecurityPolicy instance = NetworkSecurityPolicy.getInstance(); in testNestedDomainConfig() local
34 assertFalse(instance.isCleartextTrafficPermitted("developer.android.com")); in testNestedDomainConfig()
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/instance_of/d/
DT_instance_of_2.d63 new-instance v10, dot/junit/opcodes/instance_of/d/T_instance_of_2/SubClass
65 instance-of v15, v10, dot/junit/opcodes/instance_of/d/T_instance_of_2/SuperClass
71 instance-of v15, v10, [Ldot/junit/opcodes/instance_of/d/T_instance_of_2/SuperClass;
76 instance-of v15, v10, java/lang/Object
80 new-instance v10, dot/junit/opcodes/instance_of/d/T_instance_of_2/SubClass
82 instance-of v15, v10, dot/junit/opcodes/instance_of/d/T_instance_of_2/SuperInterface
86 new-instance v10, dot/junit/opcodes/instance_of/d/T_instance_of_2/SuperClass
88 instance-of v15, v10, dot/junit/opcodes/instance_of/d/T_instance_of_2/SubClass
92 new-instance v10, dot/junit/opcodes/instance_of/d/T_instance_of_2/SubClass
94 instance-of v15, v10, dot/junit/opcodes/instance_of/d/T_instance_of_2/SuperInterface2
[all …]
/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/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/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/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
DSensorIntegrationTests.java140 for(int instance = 0; instance < INSTANCES_TO_USE; ++instance) { in testSensorsMovingRates()
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/
DInstrumentedAccessibilityService.java159 final T instance = getInstanceForClass(clazz, TIMEOUT_SERVICE_ENABLE); in enableService() local
160 if (instance == null) { in enableService()
168 return instance; in enableService()
181 final T instance = (T) ref.get(); in getInstanceForClass() local
182 if (instance == null) { in getInstanceForClass()
185 return instance; in getInstanceForClass()
/cts/hostsidetests/gputools/apps/jni/
Dandroid_gputools_cts_RootlessGpuDebug.cpp55 VkInstance instance; in initVulkan() local
56 VkResult vkResult = vkCreateInstance(&instance_info, nullptr, &instance); in initVulkan()
/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/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/hostsidetests/gputools/layers/jni/
DnullLayer.cpp132 VKAPI_ATTR PFN_vkVoidFunction VKAPI_CALL GetInstanceProcAddr(VkInstance instance, const char* funcN… in GetInstanceProcAddr() argument
139 return (PFN_vkVoidFunction)g_VulkanDispatchTable.GetInstanceProcAddr(instance, funcName); in GetInstanceProcAddr()
171 …API_ATTR PFN_vkVoidFunction VKAPI_CALL vkGetInstanceProcAddr(VkInstance instance, const char *func… in vkGetInstanceProcAddr() argument
172 return GetInstanceProcAddr(instance, funcName); in vkGetInstanceProcAddr()
Dvk_layer_interface.h44 typedef VkResult(VKAPI_PTR* PFN_vkSetInstanceLoaderData)(VkInstance instance,
/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(GeneratedMessage instance, String methodName, Object... args) in invoke() argument
142 instance.getClass().getDeclaredMethod(methodName, inputParamTypes), in invoke()
143 instance, args); in invoke()
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/opc_throw/d/
DT_opc_throw_5.d30 new-instance v2, java/lang/Object
35 new-instance v1, java/lang/NullPointerException
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/return_object/d/
DT_return_object_13.d30 new-instance v1, dot/junit/opcodes/return_object/d/TChild
41 instance-of v2, v2, dot/junit/opcodes/return_object/d/TChild
DT_return_object_12.d29 new-instance v1, dot/junit/opcodes/return_object/d/TChild
39 instance-of v0, v2, dot/junit/opcodes/return_object/d/TChild
DT_return_object_14.d30 new-instance v0, dot/junit/opcodes/return_object/d/TSuper
43 instance-of v0, v1, dot/junit/opcodes/return_object/d/TChild
/cts/tests/tests/media/src/android/media/cts/
DMediaSession2TestBase.java113 TestControllerInterface instance = onCreateController(token, callback); in createController() local
114 if (!(instance instanceof MediaController2)) { in createController()
116 + instance); in createController()
118 MediaController2 controller = (MediaController2) instance; in createController()
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/check_cast/d/
DT_check_cast_2.d63 new-instance v10, dot/junit/opcodes/check_cast/d/T_check_cast_2/SubClass
78 new-instance v10, dot/junit/opcodes/check_cast/d/T_check_cast_2/SubClass
85 new-instance v10, dot/junit/opcodes/check_cast/d/T_check_cast_2/SuperClass
97 new-instance v10, dot/junit/opcodes/check_cast/d/T_check_cast_2/SubClass
/cts/tests/tests/rscpp/librscpptest/
DAndroid.mk36 instance.rs \
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/new_instance/d/
DT_new_instance_10.d30 new-instance v6, java/lang/String

123456