Home
last modified time | relevance | path

Searched refs:object (Results 1 – 25 of 283) sorted by relevance

12345678910>>...12

/cts/tests/tests/util/src/android/util/cts/
DPropertyTest.java112 public void set(PropertyTest object, Point value) {
113 object.setPointProp(value);
117 public Point get(PropertyTest object) {
118 return object.getPointProp();
125 public void set(PropertyTest object, Float value) {
126 object.setFloatProp(value);
130 public Float get(PropertyTest object) {
131 return object.getFloatProp();
139 public void setValue(PropertyTest object, float value) {
140 object.setFloatProp(value);
[all …]
DRangeTest.java125 private static <T extends Comparable<? super T>> void verifyInRange(Range<T> object, T needle) { in verifyInRange() argument
126 verifyAction("in-range", object, needle, true, object.contains(needle)); in verifyInRange()
129 private static <T extends Comparable<? super T>> void verifyOutOfRange(Range<T> object, in verifyOutOfRange() argument
131 verifyAction("out-of-range", object, needle, false, object.contains(needle)); in verifyOutOfRange()
134 private static <T extends Comparable<? super T>> void verifyUpper(Range<T> object, T expected) { in verifyUpper() argument
135 verifyAction("upper", object, expected, object.getUpper()); in verifyUpper()
138 private static <T extends Comparable<? super T>> void verifyLower(Range<T> object, T expected) { in verifyLower() argument
139 verifyAction("lower", object, expected, object.getLower()); in verifyLower()
142 private static <T, T2> void verifyAction(String action, T object, T2 expected, in verifyAction() argument
144 assertEquals("Expected " + object + " " + action + " to be ", in verifyAction()
[all …]
DRationalTest.java413 private static void verifyValueEquals(Rational object, float expected) { in verifyValueEquals() argument
414 assertEquals("Checking floatValue() for " + object + ";", in verifyValueEquals()
415 expected, object.floatValue(), 0.0f); in verifyValueEquals()
418 private static void verifyValueEquals(Rational object, double expected) { in verifyValueEquals() argument
419 assertEquals("Checking doubleValue() for " + object + ";", in verifyValueEquals()
420 expected, object.doubleValue(), 0.0f); in verifyValueEquals()
423 private static void verifyValueEquals(Rational object, long expected) { in verifyValueEquals() argument
424 assertEquals("Checking longValue() for " + object + ";", in verifyValueEquals()
425 expected, object.longValue()); in verifyValueEquals()
428 private static void verifyValueEquals(Rational object, int expected) { in verifyValueEquals() argument
[all …]
/cts/tests/framework/base/windowmanager/src/android/server/wm/intent/
DPersistence.java93 public static TestCase fromJson(JSONObject object, in fromJson() argument
95 return new TestCase(Setup.fromJson(object.getJSONObject(SETUP_KEY), table), in fromJson()
96 StateDump.fromJson(object.getJSONObject(INITIAL_STATE_KEY)), in fromJson()
97 StateDump.fromJson(object.getJSONObject(END_STATE_KEY)), name); in fromJson()
152 public static Setup fromJson(JSONObject object, in fromJson() argument
155 object.getJSONArray(INITIAL_INTENT_KEY), table); in fromJson()
156 List<GenerationIntent> act = intentsFromJson(object.getJSONArray(ACT_KEY), table); in fromJson()
177 JSONObject object = (JSONObject) intentArray.get(i); in intentsFromJson() local
178 GenerationIntent intent = GenerationIntent.fromJson(object, table); in intentsFromJson()
209 static GenerationIntent fromJson(JSONObject object, Map<String, IntentFlag> table) in fromJson() argument
[all …]
/cts/tests/inputmethod/mockime/src/com/android/cts/mockime/
DImeEvent.java49 private static ReturnType getReturnTypeFromObject(@Nullable Object object) { in getReturnTypeFromObject() argument
50 if (object == null) { in getReturnTypeFromObject()
53 if (object == RETURN_VALUE_UNAVAILABLE) { in getReturnTypeFromObject()
56 if (object instanceof AbstractInputMethodService.AbstractInputMethodImpl) { in getReturnTypeFromObject()
59 if (object instanceof View) { in getReturnTypeFromObject()
62 if (object instanceof Handler) { in getReturnTypeFromObject()
65 if (object instanceof Boolean) { in getReturnTypeFromObject()
68 if (object instanceof Integer) { in getReturnTypeFromObject()
71 if (object instanceof String) { in getReturnTypeFromObject()
74 if (object instanceof CharSequence) { in getReturnTypeFromObject()
[all …]
/cts/tests/tests/animation/src/android/animation/cts/
DObjectAnimatorTest.java103 Object object = mActivity.view.newBall; in testOfFloat() local
107 ObjectAnimator objAnimator = ObjectAnimator.ofFloat(object, property, startY, endY); in testOfFloat()
132 Object object = mActivity.view.newBall; in testOfFloatBase() local
136 ObjectAnimator animator = ObjectAnimator.ofFloat(object, property, startY, endY); in testOfFloatBase()
138 objAnimator.setTarget(object); in testOfFloatBase()
146 Object object = mActivity.view.newBall; in testOfInt() local
149 final ObjectAnimator intAnimator = ObjectAnimator.ofInt(object, property, 200, 0); in testOfInt()
170 Object object = mActivity.view.newBall; in testOfObject() local
177 final ObjectAnimator colorAnimator = ObjectAnimator.ofObject(object, property, in testOfObject()
204 Object object = mActivity.view.newBall; in testOfPropertyValuesHolder() local
[all …]
/cts/tests/autofillservice/src/android/autofillservice/cts/
DUiBot.java319 public List<String> getChildrenAsText(UiObject2 object) {
321 getChildrenAsText(object, list);
325 private static void getChildrenAsText(UiObject2 object, List<String> children) {
326 final String text = object.getText();
330 for (UiObject2 child : object.getChildren()) {
363 final UiObject2 object = waitForObject(By.text(name));
364 object.click();
378 final UiObject2 object = waitForObject(By.text(text), timeout);
379 assertWithMessage("No node with text '%s'", text).that(object).isNotNull();
380 return object;
[all …]
/cts/tests/tests/binder_ndk/libbinder_ndk_test/
Dtest_parcel_jni.cpp31 jobject object = callStaticJavaMethodForObject(env, "android/binder/cts/NdkBinderTest", in TEST() local
33 ASSERT_NE(nullptr, object); in TEST()
35 ScopedAParcel parcel = ScopedAParcel(AParcel_fromJavaParcel(env, object)); in TEST()
39 env->DeleteLocalRef(object); in TEST()
Dtest_ibinder_jni.cpp45 jobject object = AIBinder_toJavaBinder(env, binder); in TEST_F() local
46 EXPECT_NE(nullptr, object); in TEST_F()
48 AIBinder* fromJavaBinder = AIBinder_fromJavaBinder(env, object); in TEST_F()
Dutilities.cpp93 jobject object = env->CallStaticObjectMethod(cl, mid); in callStaticJavaMethodForObject() local
94 if (object == nullptr) { in callStaticJavaMethodForObject()
99 return object; in callStaticJavaMethodForObject()
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/iget_object/d/
DT_iget_object_1.smali36 iput-object v0, p0, Ldot/junit/opcodes/iget_object/d/T_iget_object_1;->i1:Ljava/lang/Object;
40 iput-object v0, p0, Ldot/junit/opcodes/iget_object/d/T_iget_object_1;->p1:Ljava/lang/Object;
44 iput-object v0, p0, Ldot/junit/opcodes/iget_object/d/T_iget_object_1;->pvt1:Ljava/lang/Object;
54 iget-object v1, p0, Ldot/junit/opcodes/iget_object/d/T_iget_object_1;->i1:Ljava/lang/Object;
56 return-object v1
DT_iget_object_21.smali34 iput-object v0, p0, Ldot/junit/opcodes/iget_object/d/T_iget_object_21;->i1:Ljava/lang/Object;
44 iget-object v1, p0, Ldot/junit/opcodes/iget_object/d/T_iget_object_21;->i1:Ljava/lang/String;
46 return-object v1
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/sget_object/d/
DT_sget_object_1.smali34 sput-object v0, Ldot/junit/opcodes/sget_object/d/T_sget_object_1;->i1:Ljava/lang/Object;
38 sput-object v0, Ldot/junit/opcodes/sget_object/d/T_sget_object_1;->p1:Ljava/lang/Object;
42 sput-object v0, Ldot/junit/opcodes/sget_object/d/T_sget_object_1;->pvt1:Ljava/lang/Object;
60 sget-object v1, Ldot/junit/opcodes/sget_object/d/T_sget_object_1;->i1:Ljava/lang/Object;
62 return-object v1
DT_sget_object_5.smali32 iput-object v2, p0, Ldot/junit/opcodes/sget_object/d/T_sget_object_5;->i1:Ljava/lang/Object;
42 sget-object v1, Ldot/junit/opcodes/sget_object/d/T_sget_object_5;->i1:Ljava/lang/Object;
44 return-object v1
DT_sget_object_21.smali32 sput-object v0, Ldot/junit/opcodes/sget_object/d/T_sget_object_21;->i1:Ljava/lang/Object;
50 sget-object v1, Ldot/junit/opcodes/sget_object/d/T_sget_object_21;->i1:Ljava/lang/String;
52 return-object v1
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/aput_object/d/T_aput_object_3.smalis/
DT_aput_object_3.smali66 aput-object v4, v3, v0
69 aput-object v4, v6, v0
72 aput-object v4, v7, v0
76 aput-object v5, v2, v0
90 aput-object v5, v8, v0
104 aput-object v2, v6, v0
/cts/hostsidetests/securitybulletin/res/
DCVE-2019-2130.pac21 Object.create(object);
31 object = opt;
37 var object;
/cts/tools/vm-tests-tf/src/dot/junit/
DDxAbstractMain.java152 static public void assertNotNull(Object object) { in assertNotNull() argument
153 if (object == null) in assertNotNull()
157 static public void assertNull(Object object) { in assertNull() argument
158 if (object != null) in assertNull()
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/return_object/d/
DT_return_object_6.smali34 return-object v3
43 move-result-object v7
58 return-object v0
61 return-object v0
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/move_object_16/d/
DT_move_object_16_1.smali29 move-object/16 v4000, v4999
30 move-object/16 v1, v4000
32 return-object v1
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/move_object_from16/d/
DT_move_object_from16_1.smali29 move-object/from16 v255, v4999
30 move-object/from16 v1, v255
32 return-object v1
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/iput_object/d/
DT_iput_object_14.smali30 … iget-object v0, v1, Ldot/junit/opcodes/iput_object/d/T_iput_object_1;->st_p1:Ljava/lang/Object;
31 return-object v0
37 … iput-object v2, v2, Ldot/junit/opcodes/iput_object/d/T_iput_object_1;->st_p1:Ljava/lang/Object;
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/sput_object/d/
DT_sput_object_14.smali30 sget-object v0, Ldot/junit/opcodes/sput_object/d/T_sput_object_1;->st_p1:Ljava/lang/Object;
31 return-object v0
37 sput-object v2, Ldot/junit/opcodes/sput_object/d/T_sput_object_1;->st_p1:Ljava/lang/Object;
DT_sput_object_1.smali40 sget-object v0, Ldot/junit/opcodes/sput_object/d/T_sput_object_1;->st_pvt1:Ljava/lang/Object;
42 return-object v0
50 sput-object p0, Ldot/junit/opcodes/sput_object/d/T_sput_object_1;->st_i1:Ljava/lang/Object;
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/filled_new_array/d/
DT_filled_new_array_8.smali31 move-result-object v0
38 move-result-object v0
39 return-object v0

12345678910>>...12