Home
last modified time | relevance | path

Searched refs:obj (Results 1 – 25 of 88) sorted by relevance

1234

/cts/hostsidetests/jvmti/tagging/app/src/android/jvmti/cts/
DJvmtiTaggingTest.java172 String s = "Not equal: " + p1 + "[" + System.identityHashCode(p1.obj) + in check()
173 "] vs " + p2 + "[" + System.identityHashCode(p2.obj); in check()
189 Object obj; field in JvmtiTaggingTest.Pair
193 obj = o; in Pair()
198 public boolean equals(Object obj) { in equals() argument
199 if (obj instanceof Pair) { in equals()
200 Pair p = (Pair)obj; in equals()
201 return tag == p.tag && (p.obj == null ? this.obj == null : p.obj.equals(this.obj)); in equals()
213 if ((obj instanceof Comparable) && (p.obj instanceof Comparable)) { in compareTo()
215 int result = ((Comparable<Object>) obj).compareTo(p.obj); in compareTo()
[all …]
/cts/tools/vm-tests-tf/build/src/util/build/
DBuildStep.java55 public boolean equals(Object obj) { in equals() argument
56 if (obj == null) return false; in equals()
57 if (this == obj) return true; in equals()
58 if (getClass() == obj.getClass()) { in equals()
59 BuildFile other = (BuildFile) obj; in equals()
95 public boolean equals(Object obj) { in equals() argument
96 if (obj == null) return false; in equals()
97 if (obj == this) return true; in equals()
98 return this.getClass() == obj.getClass(); in equals()
DSmaliBuildStep.java58 public boolean equals(Object obj) { in equals() argument
59 if (super.equals(obj)) { in equals()
60 SmaliBuildStep other = (SmaliBuildStep) obj; in equals()
DD8BuildStep.java80 public boolean equals(Object obj) { in equals() argument
81 if (super.equals(obj)) { in equals()
82 D8BuildStep other = (D8BuildStep) obj; in equals()
DJavacBuildStep.java100 public boolean equals(Object obj) { in equals() argument
101 if (super.equals(obj)) in equals()
103 JavacBuildStep other = (JavacBuildStep) obj; in equals()
DJarBuildStep.java125 public boolean equals(Object obj) { in equals() argument
126 if (super.equals(obj)) { in equals()
127 JarBuildStep other = (JarBuildStep) obj; in equals()
/cts/hostsidetests/harmfulappwarning/testapp/src/android/harmfulappwarning/testapp/
DHarmfulAppWarningDeviceTest.java76 UiObject2 obj = getUiDevice().findObject(By.res("android:id/message")); in verifyWarningShown() local
77 Assert.assertEquals(obj.getText(), "This is a warning message."); in verifyWarningShown()
78 Assert.assertNotNull(obj); in verifyWarningShown()
92 UiObject2 obj = getUiDevice().findObject(By.res("android:id/button2")); in clickLaunchAnyway() local
93 Assert.assertNotNull(obj); in clickLaunchAnyway()
94 obj.click(); in clickLaunchAnyway()
98 UiObject2 obj = getUiDevice().findObject(By.res("android:id/button1")); in clickUninstall() local
99 Assert.assertNotNull(obj); in clickUninstall()
100 obj.click(); in clickUninstall()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/its/
DItsSerializer.java145 JSONObject obj = new JSONObject(); in serializeStreamConfigurationMap() local
146 obj.put("format", fmts[fi]); in serializeStreamConfigurationMap()
147 obj.put("width",sizes[si].getWidth()); in serializeStreamConfigurationMap()
148 obj.put("height", sizes[si].getHeight()); in serializeStreamConfigurationMap()
149 obj.put("input", false); in serializeStreamConfigurationMap()
150 obj.put("minFrameDuration", in serializeStreamConfigurationMap()
152 cfgArray.put(obj); in serializeStreamConfigurationMap()
158 JSONObject obj = new JSONObject(); in serializeStreamConfigurationMap() local
159 obj.put("format", fmts[fi]); in serializeStreamConfigurationMap()
160 obj.put("width",sizes[si].getWidth()); in serializeStreamConfigurationMap()
[all …]
DItsService.java435 Object obj = objs[i]; in run() local
436 if (obj instanceof String) { in run()
440 tag = (String)obj; in run()
441 } else if (obj instanceof CameraCharacteristics) { in run()
443 (CameraCharacteristics)obj)); in run()
444 } else if (obj instanceof CaptureRequest) { in run()
446 (CaptureRequest)obj)); in run()
447 } else if (obj instanceof CaptureResult) { in run()
449 (CaptureResult)obj)); in run()
450 } else if (obj instanceof JSONArray) { in run()
[all …]
/cts/tests/autofillservice/src/android/autofillservice/cts/
DMyAutofillId.java40 public boolean equals(Object obj) { in equals() argument
41 if (this == obj) return true; in equals()
42 if (obj == null) return false; in equals()
43 if (getClass() != obj.getClass()) return false; in equals()
44 MyAutofillId other = (MyAutofillId) obj; in equals()
/cts/tests/tests/os/src/android/os/cts/
DHandlerTest.java117 msg.obj = new Object(); in testHasMessagesWithObject()
118 assertFalse(mHandler.hasMessages(msg.what, msg.obj)); in testHasMessagesWithObject()
120 assertTrue(mHandler.hasMessages(msg.what, msg.obj)); in testHasMessagesWithObject()
122 assertFalse(mHandler.hasMessages(msg.what, msg.obj)); in testHasMessagesWithObject()
137 msg.obj = new Object(); in testRemoveCallbacksAndMessages()
142 mHandler1.removeCallbacksAndMessages(msg.obj); in testRemoveCallbacksAndMessages()
148 final Object obj = new Object(); in testRemoveCallbacksAndMessages() local
150 mHandler1.postAtTime(mr1, obj, SystemClock.uptimeMillis() + RUNTIME); in testRemoveCallbacksAndMessages()
152 mHandler1.removeCallbacksAndMessages(obj); in testRemoveCallbacksAndMessages()
158 mHandler1.postAtTime(mr1, obj, SystemClock.uptimeMillis() + RUNTIME); in testRemoveCallbacksAndMessages()
[all …]
DMessageTest.java86 assertNull(message.obj); in testObtain()
101 assertEquals(message.obj, expected.obj); in testObtain2()
125 assertEquals(OBJ, expected.obj); in testObtain6()
142 assertEquals(OBJ, expected.obj); in testObtain8()
167 assertEquals(OBJ, mMessage.obj); in testCopyFrom()
178 assertNull(message.obj); in testRecycle()
/cts/hostsidetests/sustainedperf/shadertoy_android/jni/
Dhooks_android.cpp24 …JNIEXPORT void JNICALL Java_com_android_gputest_GLtestLib_init(JNIEnv * env, jobject obj, jint wi…
25 JNIEXPORT void JNICALL Java_com_android_gputest_GLtestLib_step(JNIEnv * env, jobject obj);
28 …_init(__attribute__((unused)) JNIEnv * env,__attribute__((unused)) jobject obj, jint width, jint … in Java_com_android_gputest_GLtestLib_init() argument
33 …id_gputest_GLtestLib_step(__attribute__((unused)) JNIEnv * env,__attribute__((unused)) jobject obj) in Java_com_android_gputest_GLtestLib_step() argument
/cts/apps/CtsVerifier/src/com/android/cts/verifier/p2p/testcase/
DActionListenerTest.java78 public boolean equals(Object obj) { in equals() argument
79 if (obj == null || !(obj instanceof Argument)) { in equals()
82 Argument arg = (Argument)obj; in equals()
DUPnPServiceResponseListenerTest.java100 public boolean equals(Object obj) { in equals() argument
101 if (obj == null || !(obj instanceof Argument)) { in equals()
104 Argument arg = (Argument)obj; in equals()
DDnsSdResponseListenerTest.java107 public boolean equals(Object obj) { in equals() argument
108 if (obj == null || !(obj instanceof Argument)) { in equals()
111 Argument arg = (Argument)obj; in equals()
DDnsSdTxtRecordListenerTest.java111 public boolean equals(Object obj) { in equals() argument
112 if (obj == null || !(obj instanceof Argument)) { in equals()
115 Argument arg = (Argument)obj; in equals()
/cts/tools/release-parser/tests/resources/
Dboot-framework.oat.pb.txt66obj/JAVA_LIBRARIES/core-oj_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARI…
/cts/tests/tests/opengl/libopengltest/
Dgl2_jni_libone.cpp113 …tern "C" JNIEXPORT void JNICALL Java_android_opengl_cts_GL2JniLibOne_step(JNIEnv * env, jclass obj) in Java_android_opengl_cts_GL2JniLibOne_step() argument
118 …T jint JNICALL Java_android_opengl_cts_GL2JniLibOne_getAttachShaderError(JNIEnv * env, jclass obj){ in Java_android_opengl_cts_GL2JniLibOne_getAttachShaderError() argument
122 …ORT jint JNICALL Java_android_opengl_cts_GL2JniLibOne_getLoadShaderError(JNIEnv * env, jclass obj){ in Java_android_opengl_cts_GL2JniLibOne_getLoadShaderError() argument
126 …EXPORT jint JNICALL Java_android_opengl_cts_GL2JniLibOne_getProgramError(JNIEnv * env, jclass obj){ in Java_android_opengl_cts_GL2JniLibOne_getProgramError() argument
130 …jint JNICALL Java_android_opengl_cts_GL2JniLibOne_getAttachedShaderCount(JNIEnv * env, jclass obj){ in Java_android_opengl_cts_GL2JniLibOne_getAttachedShaderCount() argument
135 jclass obj, jint pCategory, jint pSubCategory, jfloatArray color) in Java_android_opengl_cts_GL2JniLibOne_draw() argument
/cts/apps/CtsVerifier/jni/audio_loopback/
Djni_sles.c25 (JNIEnv *env __unused, jobject obj __unused, jint samplingRate, jint frameCount, in Java_com_android_cts_verifier_audio_NativeAudioThread_slesInit()
40 (JNIEnv *env __unused, jobject obj __unused, jlong sles, jdoubleArray samplesArray, in Java_com_android_cts_verifier_audio_NativeAudioThread_slesProcessNext()
59 (JNIEnv *env __unused, jobject obj __unused, jlong sles) { in Java_com_android_cts_verifier_audio_NativeAudioThread_slesDestroy()
/cts/tests/tests/location/src/android/location/cts/asn1/base/
DAsn1Sequence.java76 Asn1Object obj = component.getComponentValue(); in encodeBerValue() local
79 obj.encodeBer(buf); in encodeBerValue()
82 componentTag.writeTagAndLength(buf, obj.isConstructed(), obj.getBerValueLength()); in encodeBerValue()
83 obj.encodeBerValue(buf); in encodeBerValue()
85 componentTag.writeTagAndLength(buf, true, obj.getBerLength()); in encodeBerValue()
86 obj.encodeBer(buf); in encodeBerValue()
/cts/tests/tests/rscpp/librscpptest/
Drs_jni_object.cpp37 … jclass obj, in Java_android_cts_rscpp_RSObjectTest_testClearObjectElement() argument
65 jclass obj, in Java_android_cts_rscpp_RSObjectTest_testClearObjectType() argument
93 jclass obj, in Java_android_cts_rscpp_RSObjectTest_testClearObjectAllocation() argument
122 jclass obj, in Java_android_cts_rscpp_RSObjectTest_testClearObjectSampler() argument
152 jclass obj, in Java_android_cts_rscpp_RSObjectTest_testClearObjectScript() argument
/cts/hostsidetests/jvmti/base/jni/
Dtagging.cpp31 JNIEnv* env, jclass klass ATTRIBUTE_UNUSED, jobject obj, jlong tag) { in Java_android_jvmti_cts_JniBindings_setTag() argument
32 jvmtiError ret = jvmti_env->SetTag(obj, tag); in Java_android_jvmti_cts_JniBindings_setTag()
37 JNIEnv* env, jclass klass ATTRIBUTE_UNUSED, jobject obj) { in Java_android_jvmti_cts_JniBindings_getTag() argument
39 jvmtiError ret = jvmti_env->GetTag(obj, &tag); in Java_android_jvmti_cts_JniBindings_getTag()
/cts/tests/tests/util/src/android/util/cts/
DRationalTest.java482 private static <T extends Serializable> byte[] serialize(T obj) throws IOException { in serialize() argument
485 objectStream.writeObject(obj); in serialize()
494 Object obj = ois.readObject(); in deserialize() local
495 return klass.cast(obj); in deserialize()
499 private static <T extends Serializable> T serializeRoundTrip(T obj) in serializeRoundTrip() argument
501 Class<T> klass = (Class<T>) obj.getClass(); in serializeRoundTrip()
502 byte[] arr = serialize(obj); in serializeRoundTrip()
507 private static <T extends Serializable> void verifyEqualsAfterSerializing(T obj) in verifyEqualsAfterSerializing() argument
509 T serialized = serializeRoundTrip(obj); in verifyEqualsAfterSerializing()
510 assertEquals("Expected values to be equal after serialization round-trip", obj, serialized); in verifyEqualsAfterSerializing()
/cts/tests/camera/libctscamera2jni/
Dnative-camera-jni.cpp58 static void onAvailable(void* obj, const char* cameraId) { in onAvailable() argument
60 if (obj == nullptr) { in onAvailable()
63 CameraServiceListener* thiz = reinterpret_cast<CameraServiceListener*>(obj); in onAvailable()
70 static void onUnavailable(void* obj, const char* cameraId) { in onUnavailable() argument
72 if (obj == nullptr) { in onUnavailable()
75 CameraServiceListener* thiz = reinterpret_cast<CameraServiceListener*>(obj); in onUnavailable()
83 static void onCameraAccessPrioritiesChanged(void* obj) { in onCameraAccessPrioritiesChanged() argument
85 if (obj == nullptr) { in onCameraAccessPrioritiesChanged()
88 CameraServiceListener* thiz = reinterpret_cast<CameraServiceListener*>(obj); in onCameraAccessPrioritiesChanged()
135 static void onDisconnected(void* obj, ACameraDevice* device) { in onDisconnected() argument
[all …]

1234