Home
last modified time | relevance | path

Searched refs:obj (Results 1 – 25 of 395) 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
118 obj.put("cell", array); in dumpDataUsage()
121 obj.put("wifi", dumpDataUsage(NetworkTemplate.buildTemplateWifiWildcard(), controller)); in dumpDataUsage()
124 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/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/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/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/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/apps/TV/tuner/src/com/android/tv/tuner/cc/
DCaptionTrackRenderer.java140 sendCuesToCurrentWindow((List<Cue>) event.obj); in processCaptionEvent()
142 sendBufferToCurrentWindow((String) event.obj); in processCaptionEvent()
146 sendControlToCurrentWindow((char) event.obj); in processCaptionEvent()
149 setCurrentWindowLayout((int) event.obj); in processCaptionEvent()
152 clearWindows((int) event.obj); in processCaptionEvent()
155 displayWindows((int) event.obj); in processCaptionEvent()
158 hideWindows((int) event.obj); in processCaptionEvent()
161 toggleWindows((int) event.obj); in processCaptionEvent()
164 deleteWindows((int) event.obj); in processCaptionEvent()
167 delay((int) event.obj); in processCaptionEvent()
[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/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/unit/
DMockedServiceManager.java43 InstanceKey(final Class c, final String instName, final Object obj) { in InstanceKey() argument
46 mObj = obj; in InstanceKey()
55 public boolean equals(Object obj) { in equals() argument
56 if (obj == null || obj.getClass() != getClass()) { in equals()
60 InstanceKey other = (InstanceKey) obj; in equals()
79 final Object obj, final Object newValue) in replaceInstance() argument
84 InstanceKey key = new InstanceKey(c, instanceName, obj); in replaceInstance()
86 mOldInstances.put(key, field.get(obj)); in replaceInstance()
89 field.set(obj, newValue); in replaceInstance()
/packages/apps/Bluetooth/src/com/android/bluetooth/hid/
DHidHostService.java160 BluetoothDevice device = (BluetoothDevice) msg.obj;
170 BluetoothDevice device = (BluetoothDevice) msg.obj;
179 BluetoothDevice device = getDevice((byte[]) msg.obj);
210 BluetoothDevice device = (BluetoothDevice) msg.obj;
218 BluetoothDevice device = getDevice((byte[]) msg.obj);
224 BluetoothDevice device = (BluetoothDevice) msg.obj;
231 BluetoothDevice device = (BluetoothDevice) msg.obj;
240 BluetoothDevice device = (BluetoothDevice) msg.obj;
252 BluetoothDevice device = getDevice((byte[]) msg.obj);
260 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
683 static bool initNative(JNIEnv* env, jobject obj, jboolean isGuest, in initNative() argument
691 sJniAdapterServiceObj = env->NewGlobalRef(obj); in initNative()
693 env->NewGlobalRef(env->GetObjectField(obj, sJniCallbacksField)); in initNative()
746 static bool cleanupNative(JNIEnv* env, jobject obj) { in cleanupNative() argument
771 static jboolean enableNative(JNIEnv* env, jobject obj) { in enableNative() argument
780 static jboolean disableNative(JNIEnv* env, jobject obj) { in disableNative() argument
793 static jboolean startDiscoveryNative(JNIEnv* env, jobject obj) { in startDiscoveryNative() argument
802 static jboolean cancelDiscoveryNative(JNIEnv* env, jobject obj) { in cancelDiscoveryNative() argument
811 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/modules/CellBroadcastService/tests/src/com/android/cellbroadcastservice/tests/
DCellBroadcastServiceTestBase.java89 InstanceKey(final Class c, final String instName, final Object obj) { in InstanceKey() argument
92 mObj = obj; in InstanceKey()
101 public boolean equals(Object obj) { in equals() argument
102 if (obj == null || obj.getClass() != getClass()) { in equals()
106 InstanceKey other = (InstanceKey) obj; in equals()
172 final Object obj, final Object newValue) in replaceInstance() argument
177 InstanceKey key = new InstanceKey(c, instanceName, obj); in replaceInstance()
179 mOldInstances.put(key, field.get(obj)); in replaceInstance()
182 field.set(obj, newValue); in replaceInstance()
/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/modules/NetworkStack/apishim/30/com/android/networkstack/apishim/api30/
DCaptivePortalDataShimImpl.java52 public static CaptivePortalDataShim fromJson(JSONObject obj) throws JSONException, in fromJson() argument
55 return com.android.networkstack.apishim.api29.CaptivePortalDataShimImpl.fromJson(obj); in fromJson()
59 final long secondsRemaining = getLongOrDefault(obj, "seconds-remaining", -1L); in fromJson()
68 .setCaptive(obj.getBoolean("captive")) in fromJson()
69 .setUserPortalUrl(getUriOrNull(obj, "user-portal-url")) in fromJson()
70 .setVenueInfoUrl(getUriOrNull(obj, "venue-info-url")) in fromJson()
71 .setBytesRemaining(getLongOrDefault(obj, "bytes-remaining", -1L)) in fromJson()
/packages/apps/Bluetooth/src/com/android/bluetooth/mapclient/
DMceStateMachine.java453 SdpMasRecord record = (SdpMasRecord) message.obj; in processMessage()
520 if (mDevice.equals(message.obj)) { in processMessage()
532 new RequestPushMessage(FOLDER_OUTBOX, (Bmessage) message.obj, null, in processMessage()
538 new RequestGetMessage((String) message.obj, MasClient.CharsetType.UTF_8, in processMessage()
559 (String) message.obj, 0, filter, 0, 50, 0)); in processMessage()
563 if (message.obj instanceof RequestSetMessageStatus) { in processMessage()
564 mMasClient.makeRequest((RequestSetMessageStatus) message.obj); in processMessage()
572 if (message.obj instanceof RequestGetMessage) { in processMessage()
573 processInboundMessage((RequestGetMessage) message.obj); in processMessage()
574 } else if (message.obj instanceof RequestPushMessage) { in processMessage()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/statemachine/
DStateMachine.java810 && (mMsg.obj == mSmHandlerObj)) { in handleMessage()
846 boolean recordLogMsg = mSm.recordLogRec(mMsg) && (msg.obj != mSmHandlerObj); in performTransitions()
1268 return (msg.what == SM_QUIT_CMD) && (msg.obj == mSmHandlerObj); in isQuit()
1640 public final Message obtainMessage(int what, Object obj) { in obtainMessage() argument
1641 return Message.obtain(mSmHandler, what, obj); in obtainMessage()
1695 public final Message obtainMessage(int what, int arg1, int arg2, Object obj) { in obtainMessage() argument
1696 return Message.obtain(mSmHandler, what, arg1, arg2, obj); in obtainMessage()
1717 public void sendMessage(int what, Object obj) { in sendMessage() argument
1722 smh.sendMessage(obtainMessage(what, obj)); in sendMessage()
1756 public void sendMessage(int what, int arg1, int arg2, Object obj) { in sendMessage() argument
[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/Bluetooth/src/com/android/bluetooth/hfp/
DHeadsetStateMachine.java463 BluetoothDevice device = (BluetoothDevice) message.obj; in processMessage()
489 HeadsetStackEvent event = (HeadsetStackEvent) message.obj; in processMessage()
581 BluetoothDevice device = (BluetoothDevice) message.obj; in processMessage()
597 HeadsetStackEvent event = (HeadsetStackEvent) message.obj; in processMessage()
739 BluetoothDevice device = (BluetoothDevice) message.obj; in processMessage()
749 HeadsetStackEvent event = (HeadsetStackEvent) message.obj; in processMessage()
824 BluetoothDevice device = (BluetoothDevice) message.obj; in processMessage()
837 BluetoothDevice device = (BluetoothDevice) message.obj; in processMessage()
850 HeadsetCallState callState = (HeadsetCallState) message.obj; in processMessage()
858 mNativeInterface.notifyDeviceStatus(mDevice, (HeadsetDeviceState) message.obj); in processMessage()
[all …]
/packages/services/Telecomm/src/com/android/server/telecom/
DCallAudioModeStateMachine.java218 java.lang.Runnable r = (java.lang.Runnable) msg.obj; in processMessage()
244 MessageArgs args = (MessageArgs) msg.obj; in processMessage()
305 MessageArgs args = (MessageArgs) msg.obj; in processMessage()
390 MessageArgs args = (MessageArgs) msg.obj; in processMessage()
459 MessageArgs args = (MessageArgs) msg.obj; in processMessage()
540 MessageArgs args = (MessageArgs) msg.obj; in processMessage()
616 MessageArgs args = (MessageArgs) msg.obj; in processMessage()
737 if (msg.obj != null && msg.obj instanceof MessageArgs) { in onPreHandleMessage()
738 Log.continueSession(((MessageArgs) msg.obj).session, "CAMSM.pM_" + msg.what); in onPreHandleMessage()
740 } else if (msg.what == RUN_RUNNABLE && msg.obj instanceof Runnable) { in onPreHandleMessage()
[all …]

12345678910>>...16