Home
last modified time | relevance | path

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

12345678910>>...16

/packages/apps/Settings/src/com/android/settings/
DSettingsDumpService.java88 JSONObject obj = new JSONObject(); in dumpMemory() local
93 obj.put("used", String.valueOf(memInfo.realUsedRam)); in dumpMemory()
94 obj.put("free", String.valueOf(memInfo.realFreeRam)); in dumpMemory()
95 obj.put("total", String.valueOf(memInfo.realTotalRam)); in dumpMemory()
96 obj.put("state", statsManager.getMemState()); in dumpMemory()
98 return obj; in dumpMemory()
102 JSONObject obj = new JSONObject(); in dumpDataUsage() local
116 obj.put("cell", array); in dumpDataUsage()
119 obj.put("wifi", dumpDataUsage(NetworkTemplate.buildTemplateWifiWildcard(), controller)); in dumpDataUsage()
122 obj.put("ethernet", dumpDataUsage(NetworkTemplate.buildTemplateEthernet(), controller)); in dumpDataUsage()
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/
DSettingsDumpService.java88 JSONObject obj = new JSONObject(); in dumpMemory() local
93 obj.put("used", String.valueOf(memInfo.realUsedRam)); in dumpMemory()
94 obj.put("free", String.valueOf(memInfo.realFreeRam)); in dumpMemory()
95 obj.put("total", String.valueOf(memInfo.realTotalRam)); in dumpMemory()
96 obj.put("state", statsManager.getMemState()); in dumpMemory()
98 return obj; in dumpMemory()
102 JSONObject obj = new JSONObject(); in dumpDataUsage() local
116 obj.put("cell", array); in dumpDataUsage()
119 obj.put("wifi", dumpDataUsage(NetworkTemplate.buildTemplateWifiWildcard(), controller)); in dumpDataUsage()
122 obj.put("ethernet", dumpDataUsage(NetworkTemplate.buildTemplateEthernet(), controller)); in dumpDataUsage()
[all …]
/packages/apps/Camera2/src/com/android/camera/exif/
DExifTag.java457 public boolean setValue(Object obj) { in setValue() argument
458 if (obj == null) { in setValue()
460 } else if (obj instanceof Short) { in setValue()
461 return setValue(((Short) obj).shortValue() & 0x0ffff); in setValue()
462 } else if (obj instanceof String) { in setValue()
463 return setValue((String) obj); in setValue()
464 } else if (obj instanceof int[]) { in setValue()
465 return setValue((int[]) obj); in setValue()
466 } else if (obj instanceof long[]) { in setValue()
467 return setValue((long[]) obj); in setValue()
[all …]
/packages/apps/Messaging/src/com/android/messaging/util/exif/
DExifTag.java457 public boolean setValue(Object obj) { in setValue() argument
458 if (obj == null) { in setValue()
460 } else if (obj instanceof Short) { in setValue()
461 return setValue(((Short) obj).shortValue() & 0x0ffff); in setValue()
462 } else if (obj instanceof String) { in setValue()
463 return setValue((String) obj); in setValue()
464 } else if (obj instanceof int[]) { in setValue()
465 return setValue((int[]) obj); in setValue()
466 } else if (obj instanceof long[]) { in setValue()
467 return setValue((long[]) obj); in setValue()
[all …]
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/exif/
DExifTag.java457 public boolean setValue(Object obj) { in setValue() argument
458 if (obj == null) { in setValue()
460 } else if (obj instanceof Short) { in setValue()
461 return setValue(((Short) obj).shortValue() & 0x0ffff); in setValue()
462 } else if (obj instanceof String) { in setValue()
463 return setValue((String) obj); in setValue()
464 } else if (obj instanceof int[]) { in setValue()
465 return setValue((int[]) obj); in setValue()
466 } else if (obj instanceof long[]) { in setValue()
467 return setValue((long[]) obj); in setValue()
[all …]
/packages/apps/Dialer/java/com/android/incallui/
DLog.java33 public static void d(Object obj, String msg) { in d() argument
34 LogUtil.d(getPrefix(obj), msg); in d()
37 public static void d(Object obj, String str1, Object str2) { in d() argument
38 LogUtil.d(getPrefix(obj), str1 + str2); in d()
41 public static void v(Object obj, String msg) { in v() argument
42 LogUtil.v(getPrefix(obj), msg); in v()
45 public static void v(Object obj, String str1, Object str2) { in v() argument
46 LogUtil.v(getPrefix(obj), str1 + str2); in v()
57 public static void e(Object obj, String msg, Exception e) { in e() argument
58 LogUtil.e(getPrefix(obj), msg, e); in e()
[all …]
/packages/services/BuiltInPrintService/jni/plugins/
Dpdf_render.c40 jobject obj; member
48 static int openDocument(pdf_render_ifc_t *obj, const char *fileName) { in openDocument() argument
49 LOGD("getPageCount %p %s", obj, fileName); in openDocument()
52 pdf_render_st_t *self = (pdf_render_st_t *) obj; in openDocument()
54 int count = (*self->env)->CallIntMethod(self->env, self->obj, gPdfRenderOpenDocument, in openDocument()
56 LOGD("getPageCount %p %s returning %d", obj, fileName, count); in openDocument()
60 static int getPageAttributes(pdf_render_ifc_t *obj, int page, double *width, double *height) { in getPageAttributes() argument
61 LOGD("getPageAttributes %p %d", obj, page); in getPageAttributes()
64 pdf_render_st_t *self = (pdf_render_st_t *) obj; in getPageAttributes()
66 jobject size = (*self->env)->CallObjectMethod(self->env, self->obj, gPdfRenderGetPageSize, in getPageAttributes()
[all …]
/packages/apps/Email/
DCleanSpec.mk50 $(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/JAVA_LIBRARIES/com.android.email*)
51 $(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/APPS/Email*)
52 $(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/JAVA_LIBRARIES/com.android.email*)
53 $(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/APPS/Email*)
54 $(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/JAVA_LIBRARIES/com.android.email*)
55 $(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/APPS/Email*)
56 $(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/JAVA_LIBRARIES/com.android.email*)
57 $(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/APPS/Email*)
58 $(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/JAVA_LIBRARIES/com.android.email*)
59 $(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/APPS/Email*)
[all …]
/packages/apps/Contacts/tests/src/com/android/contacts/database/
DNoNullCursorAsyncQueryHandlerTest.java73 cursorHolder.obj = cursor; in testCursorIsNotNull()
74 ranHolder.obj = true; in testCursorIsNotNull()
83 assertFalse(cursorHolder.obj == null); in testCursorIsNotNull()
84 assertTrue(ranHolder.obj); in testCursorIsNotNull()
100 ranHolder.obj = true; in testCursorContainsCorrectCookies()
101 cookieHolder.obj = cookie; in testCursorContainsCorrectCookies()
110 assertSame(cookie, cookieHolder.obj); in testCursorContainsCorrectCookies()
111 assertTrue(ranHolder.obj); in testCursorContainsCorrectCookies()
127 ranHolder.obj = true; in testCursorContainsCorrectColumns()
128 cursorHolder.obj = cursor; in testCursorContainsCorrectColumns()
[all …]
/packages/services/Car/
DCleanSpec.mk48 $(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/JAVA_LIBRARIES/android.car*)
49 $(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/PACKAGING/android.car*)
50 $(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/JAVA_LIBRARIES/android.support.car*)
51 $(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/PACKAGING/android.support.car*)
52 $(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/JAVA_LIBRARIES/android.car7_intermediate…
53 $(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/JAVA_LIBRARIES/android.car_intermediates…
54 $(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/JAVA_LIBRARIES/android.car7_intermediate…
55 $(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/JAVA_LIBRARIES/android.car_intermediates…
57 $(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/JAVA_LIBRARIES/android.car_intermediates…
58 $(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/JAVA_LIBRARIES/android.car7_intermediate…
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/pageindicators/
DWorkspacePageIndicator.java67 public Integer get(WorkspacePageIndicator obj) {
68 return obj.mLinePaint.getAlpha();
72 public void set(WorkspacePageIndicator obj, Integer alpha) {
73 obj.mLinePaint.setAlpha(alpha);
74 obj.invalidate();
81 public Float get(WorkspacePageIndicator obj) {
82 return obj.mNumPagesFloat;
86 public void set(WorkspacePageIndicator obj, Float numPages) {
87 obj.mNumPagesFloat = numPages;
88 obj.invalidate();
[all …]
/packages/providers/TvProvider/tests/src/com/android/providers/tv/
DUtils.java62 public boolean equals(Object obj) { in equals() argument
63 if (!(obj instanceof BaseProgram)) { in equals()
66 BaseProgram that = (BaseProgram) obj; in equals()
92 public boolean equals(Object obj) { in equals() argument
93 if (!(obj instanceof Program)) { in equals()
96 Program that = (Program) obj; in equals()
112 public boolean equals(Object obj) { in equals() argument
113 if (!(obj instanceof PreviewProgram)) { in equals()
116 PreviewProgram that = (PreviewProgram) obj; in equals()
134 public boolean equals(Object obj) { in equals() argument
[all …]
/packages/apps/TV/tuner/src/com/android/tv/tuner/cc/
DCaptionTrackRenderer.java114 sendBufferToCurrentWindow((String) event.obj); in processCaptionEvent()
117 sendControlToCurrentWindow((char) event.obj); in processCaptionEvent()
120 setCurrentWindowLayout((int) event.obj); in processCaptionEvent()
123 clearWindows((int) event.obj); in processCaptionEvent()
126 displayWindows((int) event.obj); in processCaptionEvent()
129 hideWindows((int) event.obj); in processCaptionEvent()
132 toggleWindows((int) event.obj); in processCaptionEvent()
135 deleteWindows((int) event.obj); in processCaptionEvent()
138 delay((int) event.obj); in processCaptionEvent()
147 setPenAttr((CaptionPenAttr) event.obj); in processCaptionEvent()
[all …]
/packages/apps/Settings/tests/unit/src/com/android/settings/utils/
DMockedServiceManager.java44 InstanceKey(final Class c, final String instName, final Object obj) { in InstanceKey() argument
47 mObj = obj; in InstanceKey()
56 public boolean equals(Object obj) { in equals() argument
57 if (obj == null || obj.getClass() != getClass()) { in equals()
61 InstanceKey other = (InstanceKey) obj; in equals()
80 final Object obj, final Object newValue) in replaceInstance() argument
85 InstanceKey key = new InstanceKey(c, instanceName, obj); in replaceInstance()
87 mOldInstances.put(key, field.get(obj)); in replaceInstance()
90 field.set(obj, newValue); in replaceInstance()
/packages/apps/CellBroadcastReceiver/tests/unit/src/com/android/cellbroadcastreceiver/
DMockedServiceManager.java44 InstanceKey(final Class c, final String instName, final Object obj) { in InstanceKey() argument
47 mObj = obj; in InstanceKey()
56 public boolean equals(Object obj) { in equals() argument
57 if (obj == null || obj.getClass() != getClass()) { in equals()
61 InstanceKey other = (InstanceKey) obj; in equals()
80 final Object obj, final Object newValue) in replaceInstance() argument
85 InstanceKey key = new InstanceKey(c, instanceName, obj); in replaceInstance()
87 mOldInstances.put(key, field.get(obj)); in replaceInstance()
90 field.set(obj, newValue); in replaceInstance()
/packages/apps/Bluetooth/src/com/android/bluetooth/hid/
DHidHostService.java149 BluetoothDevice device = (BluetoothDevice) msg.obj;
159 BluetoothDevice device = (BluetoothDevice) msg.obj;
168 BluetoothDevice device = getDevice((byte[]) msg.obj);
199 BluetoothDevice device = (BluetoothDevice) msg.obj;
207 BluetoothDevice device = getDevice((byte[]) msg.obj);
213 BluetoothDevice device = (BluetoothDevice) msg.obj;
220 BluetoothDevice device = (BluetoothDevice) msg.obj;
229 BluetoothDevice device = (BluetoothDevice) msg.obj;
241 BluetoothDevice device = getDevice((byte[]) msg.obj);
249 BluetoothDevice device = getDevice((byte[]) msg.obj);
[all …]
/packages/apps/Bluetooth/jni/
Dcom_android_bluetooth_btservice_AdapterService.cpp588 static void alarmFiredNative(JNIEnv* env, jobject obj) { in alarmFiredNative() argument
686 static bool initNative(JNIEnv* env, jobject obj, jboolean isGuest, in initNative() argument
693 sJniAdapterServiceObj = env->NewGlobalRef(obj); in initNative()
695 env->NewGlobalRef(env->GetObjectField(obj, sJniCallbacksField)); in initNative()
727 static bool cleanupNative(JNIEnv* env, jobject obj) { in cleanupNative() argument
756 static jboolean enableNative(JNIEnv* env, jobject obj) { in enableNative() argument
765 static jboolean disableNative(JNIEnv* env, jobject obj) { in disableNative() argument
778 static jboolean startDiscoveryNative(JNIEnv* env, jobject obj) { in startDiscoveryNative() argument
787 static jboolean cancelDiscoveryNative(JNIEnv* env, jobject obj) { in cancelDiscoveryNative() argument
796 static jboolean createBondNative(JNIEnv* env, jobject obj, jbyteArray address, in createBondNative() argument
[all …]
/packages/apps/Gallery2/
DCleanSpec.mk46 $(call add-clean-step, rm -rf $(PRODUCT_OUT)/obj/APPS/Camera*)
47 $(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/APPS/Camera*)
48 $(call add-clean-step, rm -rf $(PRODUCT_OUT)/obj/APPS/Gallery*)
49 $(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/APPS/Gallery*)
50 $(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/APPS/Gallery*)
51 $(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/APPS/Gallery*)
52 $(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/APPS/Gallery*)
/packages/services/Telecomm/src/com/android/server/telecom/
DCallAudioModeStateMachine.java149 java.lang.Runnable r = (java.lang.Runnable) msg.obj; in processMessage()
176 MessageArgs args = (MessageArgs) msg.obj; in processMessage()
243 MessageArgs args = (MessageArgs) msg.obj; in processMessage()
309 MessageArgs args = (MessageArgs) msg.obj; in processMessage()
371 MessageArgs args = (MessageArgs) msg.obj; in processMessage()
428 MessageArgs args = (MessageArgs) msg.obj; in processMessage()
518 if (msg.obj != null && msg.obj instanceof MessageArgs) { in onPreHandleMessage()
519 Log.continueSession(((MessageArgs) msg.obj).session, "CAMSM.pM_" + msg.what); in onPreHandleMessage()
521 } else if (msg.what == RUN_RUNNABLE && msg.obj instanceof Runnable) { in onPreHandleMessage()
525 (msg.obj == null ? "null" : msg.obj.getClass().getSimpleName())); in onPreHandleMessage()
/packages/apps/LegacyCamera/jni/
Dmosaic_renderer_jni.cpp463 JNIEnv * env, jobject obj);
465 JNIEnv * env, jobject obj, jint width, jint height,
468 JNIEnv * env, jobject obj, jfloatArray stMatrix);
470 JNIEnv * env, jobject obj);
472 JNIEnv * env, jobject obj);
474 JNIEnv * env, jobject obj);
476 JNIEnv * env, jobject obj, jboolean flag);
480 JNIEnv * env, jobject obj) in Java_com_android_camera_panorama_MosaicRenderer_init() argument
544 JNIEnv * env, jobject obj, jint width, jint height, jboolean isLandscapeOrientation) in Java_com_android_camera_panorama_MosaicRenderer_reset() argument
626 JNIEnv * env, jobject obj, jfloatArray stMatrix) in Java_com_android_camera_panorama_MosaicRenderer_preprocess() argument
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/
DHeadsetStateMachine.java458 BluetoothDevice device = (BluetoothDevice) message.obj; in processMessage()
484 HeadsetStackEvent event = (HeadsetStackEvent) message.obj; in processMessage()
575 BluetoothDevice device = (BluetoothDevice) message.obj; in processMessage()
591 HeadsetStackEvent event = (HeadsetStackEvent) message.obj; in processMessage()
733 BluetoothDevice device = (BluetoothDevice) message.obj; in processMessage()
743 HeadsetStackEvent event = (HeadsetStackEvent) message.obj; in processMessage()
818 BluetoothDevice device = (BluetoothDevice) message.obj; in processMessage()
831 BluetoothDevice device = (BluetoothDevice) message.obj; in processMessage()
846 HeadsetCallState callState = (HeadsetCallState) message.obj; in processMessage()
854 mNativeInterface.notifyDeviceStatus(mDevice, (HeadsetDeviceState) message.obj); in processMessage()
[all …]
/packages/inputmethods/LatinIME/
DCleanSpec.mk47 $(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/APPS/LatinIME*)
50 $(call add-clean-step, rm -rf $(PRODUCT_OUT)/obj/SHARED_LIBRARIES/libjni_latinime_intermediates)
51 $(call add-clean-step, rm -rf $(PRODUCT_OUT)/obj/SHARED_LIBRARIES/libjni_latinime_intermediates)
52 $(call add-clean-step, rm -rf $(PRODUCT_OUT)/obj/SHARED_LIBRARIES/libjni_latinime_intermediates)
53 $(call add-clean-step, rm -rf $(PRODUCT_OUT)/obj/SHARED_LIBRARIES/libjni_latinime_intermediates)
54 $(call add-clean-step, rm -rf $(PRODUCT_OUT)/obj/SHARED_LIBRARIES/libjni_latinime_intermediates)
/packages/apps/Launcher3/
DCleanSpec.mk47 $(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/APPS/Launcher2_intermediates)
48 $(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/APPS/Launcher2_intermediates)
49 $(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/APPS/Launcher2_intermediates)
50 $(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/APPS/Launcher2_intermediates)
51 $(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/APPS/Launcher2_intermediates)
53 $(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/APPS/Launcher2_intermediates)
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DMediaSource.java80 MediaObject obj; in mapMediaItems() local
82 obj = pid.path.getObject(); in mapMediaItems()
83 if (obj == null) { in mapMediaItems()
85 obj = createMediaObject(pid.path); in mapMediaItems()
91 if (obj != null) { in mapMediaItems()
92 consumer.consume(pid.id, (MediaItem) obj); in mapMediaItems()
/packages/apps/Bluetooth/src/com/android/bluetooth/mapclient/
DMceStateMachine.java405 SdpMasRecord record = (SdpMasRecord) message.obj; in processMessage()
471 if (mDevice.equals(message.obj)) { in processMessage()
478 new RequestPushMessage(FOLDER_OUTBOX, (Bmessage) message.obj, null, in processMessage()
484 new RequestGetMessage((String) message.obj, MasClient.CharsetType.UTF_8, in processMessage()
505 (String) message.obj, 0, filter, 0, 50, 0)); in processMessage()
512 if (message.obj instanceof RequestGetMessage) { in processMessage()
513 processInboundMessage((RequestGetMessage) message.obj); in processMessage()
514 } else if (message.obj instanceof RequestPushMessage) { in processMessage()
515 String messageHandle = ((RequestPushMessage) message.obj).getMsgHandle(); in processMessage()
524 ((RequestPushMessage) message.obj).getBMsg()); in processMessage()
[all …]

12345678910>>...16