/frameworks/base/ravenwood/mockito/test/com/android/ravenwoodtest/mockito/ |
D | RavenwoodMockitoTest.java | 36 Process object = mock(Process.class); in testMockJdkClass() local 38 when(object.exitValue()).thenReturn(42); in testMockJdkClass() 40 assertThat(object.exitValue()).isEqualTo(42); in testMockJdkClass() 45 Intent object = mock(Intent.class); in testMockAndroidClass1() local 47 when(object.getAction()).thenReturn("ACTION_RAVENWOOD"); in testMockAndroidClass1() 49 assertThat(object.getAction()).isEqualTo("ACTION_RAVENWOOD"); in testMockAndroidClass1() 54 Context object = mock(Context.class); in testMockAndroidClass2() local 56 when(object.getPackageName()).thenReturn("android"); in testMockAndroidClass2() 58 assertThat(object.getPackageName()).isEqualTo("android"); in testMockAndroidClass2() 63 var object = mock(Parcel.class); in testMockFinalClass() local [all …]
|
/frameworks/base/media/mca/filterfw/jni/ |
D | jni_util.cpp | 35 JavaObject::JavaObject(jobject object, JNIEnv* env) 121 bool IsJavaInstanceOf(JNIEnv* env, jobject object, const std::string& class_name) { in IsJavaInstanceOf() argument 123 return clazz ? env->IsInstanceOf(object, clazz) == JNI_TRUE : false; in IsJavaInstanceOf() 133 Value ToCValue(JNIEnv* env, jobject object) { in ToCValue() argument 135 if (object != NULL) { in ToCValue() 136 if (IsJavaInstanceOf(env, object, "java/lang/Boolean")) { in ToCValue() 137 jmethodID method = env->GetMethodID(env->GetObjectClass(object), "booleanValue", "()Z"); in ToCValue() 138 result = MakeIntValue(env->CallBooleanMethod(object, method) == JNI_TRUE ? 1 : 0); in ToCValue() 139 } else if (IsJavaInstanceOf(env, object, "java/lang/Integer")) { in ToCValue() 140 jmethodID method = env->GetMethodID(env->GetObjectClass(object), "intValue", "()I"); in ToCValue() [all …]
|
/frameworks/native/vulkan/libvulkan/ |
D | debug_report.h | 30 …bugReportFlagsEXT flags, VkDebugReportObjectTypeEXT objectType, uint64_t object, size_t location, … 52 uint64_t object, 94 uint64_t object, 103 void Info(ObjectType object, const char* format, ...) const in Info() argument 107 PrintV(VK_DEBUG_REPORT_INFORMATION_BIT_EXT, GetObjectType(object), in Info() 108 GetObjectUInt64(object), format, ap); in Info() 113 void Warn(ObjectType object, const char* format, ...) const in Warn() argument 117 PrintV(VK_DEBUG_REPORT_WARNING_BIT_EXT, GetObjectType(object), in Warn() 118 GetObjectUInt64(object), format, ap); in Warn() 123 void Err(ObjectType object, const char* format, ...) const in Err() argument [all …]
|
D | debug_report.cpp | 58 uint64_t object, in Message() argument 67 node->callback(flags, object_type, object, location, message_code, in Message() 75 uint64_t object, in Message() argument 87 info->pfnCallback(flags, object_type, object, location, in Message() 97 callbacks_->Message(flags, object_type, object, location, message_code, in Message() 104 uint64_t object, in PrintV() argument 114 Message(flags, object_type, object, 0, 0, LOG_TAG, buf); in PrintV() 171 uint64_t object, in DebugReportMessageEXT() argument 178 instance, flags, object_type, object, location, message_code, in DebugReportMessageEXT() 182 flags, object_type, object, location, message_code, layer_prefix, in DebugReportMessageEXT()
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/ |
D | RangeTest.java | 140 private static <T extends Comparable<? super T>> void assertInRange(Range<T> object, T needle) { in assertInRange() argument 141 assertAction("in-range", object, needle, true, object.contains(needle)); in assertInRange() 144 private static <T extends Comparable<? super T>> void assertOutOfRange(Range<T> object, in assertOutOfRange() argument 146 assertAction("out-of-range", object, needle, false, object.contains(needle)); in assertOutOfRange() 149 private static <T extends Comparable<? super T>> void assertUpper(Range<T> object, T expected) { in assertUpper() argument 150 assertAction("upper", object, expected, object.getUpper()); in assertUpper() 153 private static <T extends Comparable<? super T>> void assertLower(Range<T> object, T expected) { in assertLower() argument 154 assertAction("lower", object, expected, object.getLower()); in assertLower() 157 private static <T, T2> void assertAction(String action, T object, T2 expected, in assertAction() argument 159 assertEquals("Expected " + object + " " + action + " to be ", in assertAction() [all …]
|
D | RationalTest.java | 392 private static void assertValueEquals(Rational object, float expected) { in assertValueEquals() argument 393 assertEquals("Checking floatValue() for " + object + ";", in assertValueEquals() 394 expected, object.floatValue()); in assertValueEquals() 397 private static void assertValueEquals(Rational object, double expected) { in assertValueEquals() argument 398 assertEquals("Checking doubleValue() for " + object + ";", in assertValueEquals() 399 expected, object.doubleValue()); in assertValueEquals() 402 private static void assertValueEquals(Rational object, long expected) { in assertValueEquals() argument 403 assertEquals("Checking longValue() for " + object + ";", in assertValueEquals() 404 expected, object.longValue()); in assertValueEquals() 407 private static void assertValueEquals(Rational object, int expected) { in assertValueEquals() argument [all …]
|
/frameworks/av/media/libaudiohal/impl/ |
D | ParameterUtils.h | 33 Return<void> getParameters(T& object, hidl_vec<ParameterValue> /*context*/, in getParameters() argument 35 return object->getParameters(keys, callback); in getParameters() 39 Return<Result> setParameters(T& object, hidl_vec<ParameterValue> /*context*/, in setParameters() argument 41 return object->setParameters(keys); in setParameters() 45 Return<void> getParameters(T& object, hidl_vec<ParameterValue> context, 47 return object->getParameters(context, keys, callback); 51 Return<Result> setParameters(T& object, hidl_vec<ParameterValue> context, 53 return object->setParameters(context, keys);
|
/frameworks/libs/systemui/iconloaderlib/src/com/android/launcher3/icons/cache/ |
D | CachingLogic.java | 32 ComponentName getComponent(@NonNull final T object); in getComponent() argument 35 UserHandle getUser(@NonNull final T object); in getUser() argument 38 CharSequence getLabel(@NonNull final T object); in getLabel() argument 41 default CharSequence getDescription(@NonNull final T object, in getDescription() argument 47 BitmapInfo loadIcon(@NonNull final Context context, @NonNull final T object); in loadIcon() argument 53 default String getKeywords(@NonNull final T object, @NonNull final LocaleList localeList) { in getKeywords() argument 60 default long getLastUpdatedTime(@Nullable final T object, @NonNull final PackageInfo info) { in getLastUpdatedTime() argument
|
/frameworks/layoutlib/common/src/com/android/layoutlib/common/util/ |
D | ReflectionUtils.java | 63 …public static Object getFieldValue(@NonNull Class<?> clazz, Object object, @NonNull String name) t… in getFieldValue() argument 67 return field.get(object); in getFieldValue() 76 public static Object invoke(@NonNull Method method, @Nullable Object object, in invoke() argument 80 return method.invoke(object, args); in invoke() 102 public static boolean isInstanceOf(Object object, String className) { in isInstanceOf() argument 103 Class superClass = object.getClass(); in isInstanceOf() 118 public static boolean isInstanceOf(Object object, String[] classNames) { in isInstanceOf() argument 119 return getParentClass(object, classNames) != null; in isInstanceOf() 127 public static Class<?> getParentClass(Object object, String[] classNames) { in getParentClass() argument 128 Class<?> superClass = object.getClass(); in getParentClass() [all …]
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | PagerAdapter.java | 123 public void destroyItem(ViewGroup container, int position, Object object) { in destroyItem() argument 124 destroyItem((View) container, position, object); in destroyItem() local 136 public void setPrimaryItem(ViewGroup container, int position, Object object) { in setPrimaryItem() argument 137 setPrimaryItem((View) container, position, object); in setPrimaryItem() local 191 public void destroyItem(View container, int position, Object object) { in destroyItem() argument 206 public void setPrimaryItem(View container, int position, Object object) { in setPrimaryItem() argument 230 public abstract boolean isViewFromObject(View view, Object object); in isViewFromObject() argument 267 public int getItemPosition(Object object) { in getItemPosition() argument
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/animation/ |
D | AnimatableScaleMatrix.java | 50 public float getValue(AnimatableScaleMatrix object) { 51 return getAnimatableValueForScaleFactor(object.mScaleX); 55 public void setValue(AnimatableScaleMatrix object, float value) { 56 object.setScaleX(value * DynamicAnimation.MIN_VISIBLE_CHANGE_SCALE); 69 public float getValue(AnimatableScaleMatrix object) { 70 return getAnimatableValueForScaleFactor(object.mScaleY); 74 public void setValue(AnimatableScaleMatrix object, float value) { 75 object.setScaleY(value * DynamicAnimation.MIN_VISIBLE_CHANGE_SCALE);
|
/frameworks/base/services/core/jni/gnss/ |
D | GnssMeasurementCallback.h | 63 JavaObject& object); 72 void translateGnssClock(JNIEnv* env, const hardware::gnss::GnssData& data, JavaObject& object); 96 void translateSingleGnssMeasurement(const T& measurement, JavaObject& object); 108 void translateGnssClock(const T& data, JavaObject& object); 170 JavaObject& object); 177 JavaObject& object); 184 JavaObject& object); 191 JavaObject& object); 194 void GnssMeasurementCallbackHidl::translateGnssClock(const T& data, JavaObject& object) { in translateGnssClock() argument 195 translateGnssClock(data.clock, object); in translateGnssClock() [all …]
|
D | GnssMeasurementCallback.cpp | 265 void setMeasurementFields_V1_0(const T_Measurement& measurement, JavaObject& object) { in setMeasurementFields_V1_0() argument 296 void setMeasurementFields_V2_1(const T_Measurement& measurement, JavaObject& object) { in setMeasurementFields_V2_1() argument 318 void setClockFields_V1_0(const T_Clock& clock, JavaObject& object) { in setClockFields_V1_0() argument 353 void setClockFields_V2_1(const T_Clock& clock, JavaObject& object) { in setClockFields_V2_1() argument 366 void setElapsedRealtimeFields(const T_ElapsedRealtime& elapsedRealtime, JavaObject& object) { in setElapsedRealtimeFields() argument 411 JavaObject& object) { in translateSingleGnssMeasurement() argument 412 setMeasurementFields_V1_0<GnssMeasurement, GnssMeasurement>(measurement, object); in translateSingleGnssMeasurement() 413 setMeasurementFields_V2_1<GnssMeasurement, GnssMeasurement>(measurement, object); in translateSingleGnssMeasurement() 490 env->CallVoidMethod(object.get(), method_gnssMeasurementsSetSatellitePvt, in translateSingleGnssMeasurement() 537 env->CallVoidMethod(object.get(), method_gnssMeasurementsSetCorrelationVectors, in translateSingleGnssMeasurement() [all …]
|
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/ |
D | Frame.java | 77 public void setObjectValue(Object object) { in setObjectValue() argument 82 if (object instanceof int[]) { in setObjectValue() 83 setInts((int[])object); in setObjectValue() 84 } else if (object instanceof float[]) { in setObjectValue() 85 setFloats((float[])object); in setObjectValue() 86 } else if (object instanceof ByteBuffer) { in setObjectValue() 87 setData((ByteBuffer)object); in setObjectValue() 88 } else if (object instanceof Bitmap) { in setObjectValue() 89 setBitmap((Bitmap)object); in setObjectValue() 91 setGenericObjectValue(object); in setObjectValue()
|
D | SimpleFrame.java | 41 static SimpleFrame wrapObject(Object object, FrameManager frameManager) { in wrapObject() argument 42 FrameFormat format = ObjectFormat.fromObject(object, FrameFormat.TARGET_SIMPLE); in wrapObject() 44 result.setObjectValue(object); in wrapObject() 138 protected void setGenericObjectValue(Object object) { in setGenericObjectValue() argument 144 setFormatObjectClass(object.getClass()); in setGenericObjectValue() 145 } else if (!format.getObjectClass().isAssignableFrom(object.getClass())) { in setGenericObjectValue() 147 "Attempting to set object value of type '" + object.getClass() + "' on " + in setGenericObjectValue() 152 mObject = object; in setGenericObjectValue()
|
/frameworks/base/services/core/java/com/android/server/policy/ |
D | SingleKeyGestureDetector.java | 238 MessageObject object = new MessageObject(mActiveRule, keyCode, /* pressCount= */ 1, in interceptKeyDown() local 240 final Message msg = mHandler.obtainMessage(MSG_KEY_LONG_PRESS, object); in interceptKeyDown() 286 MessageObject object = new MessageObject(mActiveRule, keyCode, mKeyPressCounter, in interceptKeyDown() local 288 final Message msg = mHandler.obtainMessage(MSG_KEY_LONG_PRESS, object); in interceptKeyDown() 294 MessageObject object = new MessageObject(mActiveRule, keyCode, mKeyPressCounter, in interceptKeyDown() local 296 final Message msg = mHandler.obtainMessage(MSG_KEY_VERY_LONG_PRESS, object); in interceptKeyDown() 312 MessageObject object = new MessageObject(mActiveRule, keyCode, mKeyPressCounter, in interceptKeyDown() local 314 final Message msg = mHandler.obtainMessage(MSG_KEY_DELAYED_PRESS, object); in interceptKeyDown() 353 MessageObject object = new MessageObject(mActiveRule, mActiveRule.mKeyCode, in interceptKeyUp() local 355 Message msgKeyUp = mHandler.obtainMessage(MSG_KEY_UP, object); in interceptKeyUp() [all …]
|
/frameworks/base/core/java/android/util/ |
D | MapCollections.java | 130 public V setValue(V object) { in setValue() argument 135 return colSetValue(mIndex, object); in setValue() 172 public boolean add(Map.Entry<K, V> object) { in add() argument 225 public boolean remove(Object object) { in remove() argument 255 public boolean equals(@Nullable Object object) { in equals() argument 256 return equalsSetHelper(this, object); in equals() 275 public boolean add(K object) { in add() argument 290 public boolean contains(Object object) { in contains() argument 291 return colIndexOfKey(object) >= 0; in contains() 310 public boolean remove(Object object) { in remove() argument [all …]
|
/frameworks/base/core/java/android/os/ |
D | MessageQueue.java | 699 boolean hasMessages(Handler h, int what, Object object) { in hasMessages() argument 707 if (p.target == h && p.what == what && (object == null || p.obj == object)) { in hasMessages() 716 boolean hasEqualMessages(Handler h, int what, Object object) { in hasEqualMessages() argument 724 if (p.target == h && p.what == what && (object == null || object.equals(p.obj))) { in hasEqualMessages() 734 boolean hasMessages(Handler h, Runnable r, Object object) { in hasMessages() argument 742 if (p.target == h && p.callback == r && (object == null || p.obj == object)) { in hasMessages() 768 void removeMessages(Handler h, int what, Object object) { in removeMessages() argument 778 && (object == null || p.obj == object)) { in removeMessages() 797 && (object == null || n.obj == object)) { in removeMessages() 815 void removeEqualMessages(Handler h, int what, Object object) { in removeEqualMessages() argument [all …]
|
/frameworks/native/opengl/specs/ |
D | EGL_ANDROID_native_fence_sync.txt | 40 associated with a native synchronization fence object that is referenced 44 referring to the native fence object. 47 object that behaves similarly to an EGL fence sync object. These native 48 objects must have a signal status like that of an EGLSyncKHR object that 50 native object's signal status may not change again. 90 object is created. In this case the EGL_SYNC_NATIVE_FENCE_FD_ANDROID 93 object or to the value EGL_NO_NATIVE_FENCE_FD_ANDROID. 95 The default values for the EGL native fence sync object attributes are as 108 attribute is set to reflect the signal status of the native fence object. 115 "When a fence sync object is created or when an EGL native fence sync [all …]
|
/frameworks/base/core/jni/ |
D | android_view_TextureView.cpp | 50 #define GET_INT(object, field) \ argument 51 env->GetIntField(object, field) 53 #define GET_LONG(object, field) \ argument 54 env->GetLongField(object, field) 56 #define SET_INT(object, field, value) \ argument 57 env->SetIntField(object, field, value) 59 #define SET_LONG(object, field, value) \ argument 60 env->SetLongField(object, field, value) 62 #define INVOKEV(object, method, ...) \ argument 63 env->CallVoidMethod(object, method, __VA_ARGS__)
|
/frameworks/base/graphics/java/android/graphics/ |
D | BlendModeColorFilter.java | 66 public boolean equals(Object object) { in equals() argument 67 if (this == object) { in equals() 70 if (object == null || getClass() != object.getClass()) { in equals() 73 final BlendModeColorFilter other = (BlendModeColorFilter) object; in equals()
|
D | PorterDuffColorFilter.java | 79 public boolean equals(Object object) { in equals() argument 80 if (this == object) { in equals() 83 if (object == null || getClass() != object.getClass()) { in equals() 86 final PorterDuffColorFilter other = (PorterDuffColorFilter) object; in equals()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/accessibility/ |
D | DisplayIdIndexSupplierTest.java | 56 Object object = mDisplayIdIndexSupplier.get(Display.DEFAULT_DISPLAY); in get_instanceIsNotNull() local 57 assertNotNull(object); in get_instanceIsNotNull() 62 Object object = mDisplayIdIndexSupplier.get(Display.DEFAULT_DISPLAY); in get_removeExistedObject_newObject() local 67 assertNotEquals(object, newObject); in get_removeExistedObject_newObject() 72 Object object = mDisplayIdIndexSupplier.get(Display.DEFAULT_DISPLAY); in get_clearAllObjects_newObject() local 77 assertNotEquals(object, newObject); in get_clearAllObjects_newObject()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/split/ |
D | DividerHandleView.java | 45 public Integer get(DividerHandleView object) { 46 return object.mCurrentWidth; 50 public void set(DividerHandleView object, Integer value) { 51 object.mCurrentWidth = value; 52 object.invalidate(); 59 public Integer get(DividerHandleView object) { 60 return object.mCurrentHeight; 64 public void set(DividerHandleView object, Integer value) { 65 object.mCurrentHeight = value; 66 object.invalidate();
|
/frameworks/base/packages/SystemUI/accessibility/accessibilitymenu/src/com/android/systemui/accessibility/accessibilitymenu/view/ |
D | ViewPagerAdapter.java | 48 public int getItemPosition(Object object) { in getItemPosition() argument 53 public boolean isViewFromObject(View view, Object object) { in isViewFromObject() argument 54 return view == object; in isViewFromObject() 67 public void destroyItem(ViewGroup container, int position, Object object) { in destroyItem() argument 68 container.removeView((View) object); in destroyItem()
|