Home
last modified time | relevance | path

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

1234567

/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
DEntrySchema.java103 public <T extends Entry> T cursorToObject(Cursor cursor, T object) { in cursorToObject() argument
110 field.set(object, cursor.isNull(columnIndex) in cursorToObject()
115 field.setBoolean(object, cursor.getShort(columnIndex) == 1); in cursorToObject()
118 field.setShort(object, cursor.getShort(columnIndex)); in cursorToObject()
121 field.setInt(object, cursor.getInt(columnIndex)); in cursorToObject()
124 field.setLong(object, cursor.getLong(columnIndex)); in cursorToObject()
127 field.setFloat(object, cursor.getFloat(columnIndex)); in cursorToObject()
130 field.setDouble(object, cursor.getDouble(columnIndex)); in cursorToObject()
133 field.set(object, cursor.isNull(columnIndex) in cursorToObject()
139 return object; in cursorToObject()
[all …]
/packages/apps/Bluetooth/jni/
Dcom_android_bluetooth_gatt.cpp876 static void initializeNative(JNIEnv* env, jobject object) { in initializeNative() argument
911 mCallbacksObj = env->NewGlobalRef(object); in initializeNative()
914 static void cleanupNative(JNIEnv* env, jobject object) { in cleanupNative() argument
933 static int gattClientGetDeviceTypeNative(JNIEnv* env, jobject object, in gattClientGetDeviceTypeNative() argument
939 static void gattClientRegisterAppNative(JNIEnv* env, jobject object, in gattClientRegisterAppNative() argument
949 static void gattClientUnregisterAppNative(JNIEnv* env, jobject object, in gattClientUnregisterAppNative() argument
963 static void registerScannerNative(JNIEnv* env, jobject object, in registerScannerNative() argument
973 static void unregisterScannerNative(JNIEnv* env, jobject object, in unregisterScannerNative() argument
980 static void gattClientScanNative(JNIEnv* env, jobject object, jboolean start) { in gattClientScanNative() argument
985 static void gattClientConnectNative(JNIEnv* env, jobject object, jint clientif, in gattClientConnectNative() argument
[all …]
Dcom_android_bluetooth_hfpclient.cpp379 static void initializeNative(JNIEnv* env, jobject object) { in initializeNative() argument
415 mCallbacksObj = env->NewGlobalRef(object); in initializeNative()
418 static void cleanupNative(JNIEnv* env, jobject object) { in cleanupNative() argument
438 static jboolean connectNative(JNIEnv* env, jobject object, jbyteArray address) { in connectNative() argument
455 static jboolean disconnectNative(JNIEnv* env, jobject object, in disconnectNative() argument
474 static jboolean connectAudioNative(JNIEnv* env, jobject object, in connectAudioNative() argument
493 static jboolean disconnectAudioNative(JNIEnv* env, jobject object, in disconnectAudioNative() argument
512 static jboolean startVoiceRecognitionNative(JNIEnv* env, jobject object, in startVoiceRecognitionNative() argument
531 static jboolean stopVoiceRecognitionNative(JNIEnv* env, jobject object, in stopVoiceRecognitionNative() argument
550 static jboolean setVolumeNative(JNIEnv* env, jobject object, jbyteArray address, in setVolumeNative() argument
[all …]
Dcom_android_bluetooth_avrcp.cpp50 static bool copy_item_attributes(JNIEnv* env, jobject object,
563 static void initNative(JNIEnv* env, jobject object) { in initNative() argument
597 mCallbacksObj = env->NewGlobalRef(object); in initNative()
600 static void cleanupNative(JNIEnv* env, jobject object) { in cleanupNative() argument
618 static jboolean getPlayStatusRspNative(JNIEnv* env, jobject object, in getPlayStatusRspNative() argument
641 static jboolean getElementAttrRspNative(JNIEnv* env, jobject object, in getElementAttrRspNative() argument
708 static jboolean getItemAttrRspNative(JNIEnv* env, jobject object, in getItemAttrRspNative() argument
773 jobject object, in registerNotificationRspPlayStatusNative() argument
794 jobject object, in registerNotificationRspTrackChangeNative() argument
829 jobject object, jint type, in registerNotificationRspPlayPosNative() argument
[all …]
Dcom_android_bluetooth_hfp.cpp406 static void initializeNative(JNIEnv* env, jobject object, jint max_hf_clients, in initializeNative() argument
444 mCallbacksObj = env->NewGlobalRef(object); in initializeNative()
447 static void cleanupNative(JNIEnv* env, jobject object) { in cleanupNative() argument
470 static jboolean connectHfpNative(JNIEnv* env, jobject object, in connectHfpNative() argument
490 static jboolean disconnectHfpNative(JNIEnv* env, jobject object, in disconnectHfpNative() argument
509 static jboolean connectAudioNative(JNIEnv* env, jobject object, in connectAudioNative() argument
528 static jboolean disconnectAudioNative(JNIEnv* env, jobject object, in disconnectAudioNative() argument
548 static jboolean startVoiceRecognitionNative(JNIEnv* env, jobject object, in startVoiceRecognitionNative() argument
568 static jboolean stopVoiceRecognitionNative(JNIEnv* env, jobject object, in stopVoiceRecognitionNative() argument
588 static jboolean setVolumeNative(JNIEnv* env, jobject object, jint volume_type, in setVolumeNative() argument
[all …]
Dcom_android_bluetooth_hid.cpp200 static void initializeNative(JNIEnv* env, jobject object) { in initializeNative() argument
233 mCallbacksObj = env->NewGlobalRef(object); in initializeNative()
236 static void cleanupNative(JNIEnv* env, jobject object) { in cleanupNative() argument
257 static jboolean connectHidNative(JNIEnv* env, jobject object, in connectHidNative() argument
278 static jboolean disconnectHidNative(JNIEnv* env, jobject object, in disconnectHidNative() argument
300 static jboolean getProtocolModeNative(JNIEnv* env, jobject object, in getProtocolModeNative() argument
324 static jboolean virtualUnPlugNative(JNIEnv* env, jobject object, in virtualUnPlugNative() argument
345 static jboolean setProtocolModeNative(JNIEnv* env, jobject object, in setProtocolModeNative() argument
382 static jboolean getReportNative(JNIEnv* env, jobject object, jbyteArray address, in getReportNative() argument
410 static jboolean setReportNative(JNIEnv* env, jobject object, jbyteArray address, in setReportNative() argument
[all …]
Dcom_android_bluetooth_a2dp.cpp188 JNIEnv* env, jobject object, jobjectArray codecConfigArray) { in prepareCodecPreferences() argument
238 static void initNative(JNIEnv* env, jobject object, in initNative() argument
258 if ((mCallbacksObj = env->NewGlobalRef(object)) == NULL) { in initNative()
279 prepareCodecPreferences(env, object, codecConfigArray); in initNative()
290 static void cleanupNative(JNIEnv* env, jobject object) { in cleanupNative() argument
311 static jboolean connectA2dpNative(JNIEnv* env, jobject object, in connectA2dpNative() argument
330 static jboolean disconnectA2dpNative(JNIEnv* env, jobject object, in disconnectA2dpNative() argument
348 static jboolean setCodecConfigPreferenceNative(JNIEnv* env, jobject object, in setCodecConfigPreferenceNative() argument
353 prepareCodecPreferences(env, object, codecConfigArray); in setCodecConfigPreferenceNative()
Dcom_android_bluetooth_avrcp_controller.cpp661 static void initNative(JNIEnv* env, jobject object) { in initNative() argument
705 sCallbacksObj = env->NewGlobalRef(object); in initNative()
708 static void cleanupNative(JNIEnv* env, jobject object) { in cleanupNative() argument
726 static jboolean sendPassThroughCommandNative(JNIEnv* env, jobject object, in sendPassThroughCommandNative() argument
751 static jboolean sendGroupNavigationCommandNative(JNIEnv* env, jobject object, in sendGroupNavigationCommandNative() argument
777 static void setPlayerApplicationSettingValuesNative(JNIEnv* env, jobject object, in setPlayerApplicationSettingValuesNative() argument
826 static void sendAbsVolRspNative(JNIEnv* env, jobject object, jbyteArray address, in sendAbsVolRspNative() argument
845 static void sendRegisterAbsVolRspNative(JNIEnv* env, jobject object, in sendRegisterAbsVolRspNative() argument
866 static void getPlaybackStateNative(JNIEnv* env, jobject object, in getPlaybackStateNative() argument
884 static void getNowPlayingListNative(JNIEnv* env, jobject object, in getNowPlayingListNative() argument
[all …]
Dcom_android_bluetooth_a2dp_sink.cpp113 static void initNative(JNIEnv* env, jobject object) { in initNative() argument
147 mCallbacksObj = env->NewGlobalRef(object); in initNative()
150 static void cleanupNative(JNIEnv* env, jobject object) { in cleanupNative() argument
169 static jboolean connectA2dpNative(JNIEnv* env, jobject object, in connectA2dpNative() argument
188 static jboolean disconnectA2dpNative(JNIEnv* env, jobject object, in disconnectA2dpNative() argument
206 static void informAudioFocusStateNative(JNIEnv* env, jobject object, in informAudioFocusStateNative() argument
212 static void informAudioTrackGainNative(JNIEnv* env, jobject object, in informAudioTrackGainNative() argument
Dcom_android_bluetooth_hdp.cpp88 static void initializeNative(JNIEnv* env, jobject object) { in initializeNative() argument
121 mCallbacksObj = env->NewGlobalRef(object); in initializeNative()
124 static void cleanupNative(JNIEnv* env, jobject object) { in cleanupNative() argument
145 static jint registerHealthAppNative(JNIEnv* env, jobject object, jint data_type, in registerHealthAppNative() argument
183 static jboolean unregisterHealthAppNative(JNIEnv* env, jobject object, in unregisterHealthAppNative() argument
194 static jint connectChannelNative(JNIEnv* env, jobject object, in connectChannelNative() argument
216 static jboolean disconnectChannelNative(JNIEnv* env, jobject object, in disconnectChannelNative() argument
Dcom_android_bluetooth_pan.cpp115 static void initializeNative(JNIEnv* env, jobject object) { in initializeNative() argument
143 mCallbacksObj = env->NewGlobalRef(object); in initializeNative()
158 static void cleanupNative(JNIEnv* env, jobject object) { in cleanupNative() argument
175 static jboolean enablePanNative(JNIEnv* env, jobject object, jint local_role) { in enablePanNative() argument
182 static jint getPanLocalRoleNative(JNIEnv* env, jobject object) { in getPanLocalRoleNative() argument
190 static jboolean connectPanNative(JNIEnv* env, jobject object, in connectPanNative() argument
213 static jboolean disconnectPanNative(JNIEnv* env, jobject object, in disconnectPanNative() argument
/packages/services/Car/tools/hidl_parser/
Dparser.py81 class Typename(object):
99 class EnumHeader(object):
107 class StructHeader(object):
114 class EnumDecl(object):
141 class StructDecl(object):
153 class StructElement(object):
172 class EnumCase(object):
180 class PackageID(object):
188 class Package(object):
195 class Import(object):
[all …]
/packages/apps/Camera2/src/com/android/camera/util/
DCaptureDataSerializer.java132 private static String metadataValueToString(Object object) { in metadataValueToString() argument
133 if (object == null) { in metadataValueToString()
136 if (object.getClass().isArray()) { in metadataValueToString()
140 int length = Array.getLength(object); in metadataValueToString()
142 Object item = Array.get(object, i); in metadataValueToString()
155 if (object instanceof LensShadingMap) { in metadataValueToString()
156 return toString((LensShadingMap) object); in metadataValueToString()
157 } else if (object instanceof Pair) { in metadataValueToString()
158 return toString((Pair<?, ?>) object); in metadataValueToString()
160 return object.toString(); in metadataValueToString()
/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/shadow/
DShadowSecureSettings.java71 final Object object = userTable.get(userHandle, name); in getIntForUser() local
72 return object instanceof Integer ? (Integer) object : def; in getIntForUser()
91 final Object object = userTable.get(userHandle, name); in getLongForUser() local
92 return object instanceof Long ? (Long) object : def; in getLongForUser()
111 final Object object = userTable.get(userHandle, name); in getFloatForUser() local
112 return object instanceof Float ? (Float) object : def; in getFloatForUser()
/packages/apps/Camera2/src/com/android/camera/debug/
DLogUtil.java35 public static String addTags(Object object, String msg) { in addTags() argument
36 return hashCodeTag(object) + mainThreadTag() + " " + msg; in addTags()
44 public static String addTags(Object object, String msg, String tagList) { in addTags() argument
45 return hashCodeTag(object) + mainThreadTag() + formatTags(tagList) + " " + msg; in addTags()
71 private static String hashCodeTag(Object object) { in hashCodeTag() argument
73 if (object == null) { in hashCodeTag()
76 tag = Integer.toHexString(Objects.hashCode(object)); in hashCodeTag()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/emoji/
DEmojiPalettesAdapter.java92 final Object object) { in setPrimaryItem() argument
128 public boolean isViewFromObject(final View view, final Object object) { in isViewFromObject() argument
129 return view == object; in isViewFromObject()
134 final Object object) { in destroyItem() argument
136 Log.d(TAG, "destroy item: " + position + ", " + object.getClass().getSimpleName()); in destroyItem()
143 if (object instanceof View) { in destroyItem()
144 container.removeView((View)object); in destroyItem()
146 Log.w(TAG, "Warning!!! Emoji palette may be leaking. " + object); in destroyItem()
/packages/apps/DeskClock/src/com/android/deskclock/timer/
DTimerPagerAdapter.java62 public boolean isViewFromObject(View view, Object object) { in isViewFromObject() argument
63 return ((Fragment) object).getView() == view; in isViewFromObject()
67 public int getItemPosition(Object object) { in getItemPosition() argument
68 final TimerItemFragment fragment = (TimerItemFragment) object; in getItemPosition()
108 public void destroyItem(ViewGroup container, int position, Object object) { in destroyItem() argument
109 final TimerItemFragment fragment = (TimerItemFragment) object; in destroyItem()
120 public void setPrimaryItem(ViewGroup container, int position, Object object) { in setPrimaryItem() argument
121 final Fragment fragment = (Fragment) object; in setPrimaryItem()
/packages/apps/Launcher3/src/com/android/launcher3/keyboard/
DFocusIndicatorHelper.java48 public void set(FocusIndicatorHelper object, Float value) {
49 object.setAlpha(value);
53 public Float get(FocusIndicatorHelper object) {
54 return object.mAlpha;
63 public void set(FocusIndicatorHelper object, Float value) {
64 object.mShift = value;
68 public Float get(FocusIndicatorHelper object) {
69 return object.mShift;
/packages/apps/Gallery2/src/com/android/gallery3d/provider/
DGalleryProvider.java119 MediaObject object = mDataManager.getMediaObject(path); in query() local
120 if (object == null) { in query()
124 if (PicasaSource.isPicasaImage(object)) { in query()
125 return queryPicasaItem(object, in query()
181 MediaObject object = mDataManager.getMediaObject(path); in openFile() local
182 if (object == null) { in openFile()
185 if (PicasaSource.isPicasaImage(object)) { in openFile()
186 return PicasaSource.openFile(getContext(), object, mode); in openFile()
188 throw new FileNotFoundException("unspported type: " + object); in openFile()
/packages/apps/Email/provider_src/com/android/email/provider/
DContentCache.java130 /*package*/ synchronized int subtract(T object) { in subtract() argument
131 Integer refCount = mMap.get(object); in subtract()
138 mMap.put(object, newCount); in subtract()
141 mMap.remove(object); in subtract()
146 /*package*/ synchronized void add(T object) { in add() argument
147 Integer refCount = mMap.get(object); in add()
149 mMap.put(object, 1); in add()
151 mMap.put(object, refCount + 1); in add()
155 /*package*/ synchronized boolean contains(T object) { in contains() argument
156 return mMap.containsKey(object); in contains()
[all …]
/packages/apps/UnifiedEmail/src/com/android/mail/utils/
DFragmentStatePagerAdapter2.java109 public void destroyItem(ViewGroup container, int position, Object object) { in destroyItem() argument
110 Fragment fragment = (Fragment)object; in destroyItem()
115 if (DEBUG) LogUtils.v(TAG, "Removing item #" + position + ": f=" + object in destroyItem()
116 + " v=" + ((Fragment)object).getView()); in destroyItem()
129 public void setPrimaryItem(ViewGroup container, int position, Object object) { in setPrimaryItem() argument
130 Fragment fragment = (Fragment)object; in setPrimaryItem()
152 public boolean isViewFromObject(View view, Object object) { in isViewFromObject() argument
153 return ((Fragment)object).getView() == view; in isViewFromObject()
/packages/apps/DeskClock/src/com/android/deskclock/
DFragmentTabPagerAdapter.java130 public void destroyItem(ViewGroup container, int position, Object object) { in destroyItem() argument
134 final DeskClockFragment fragment = (DeskClockFragment) object; in destroyItem()
140 public void setPrimaryItem(ViewGroup container, int position, Object object) { in setPrimaryItem() argument
141 final Fragment fragment = (Fragment) object; in setPrimaryItem()
165 public boolean isViewFromObject(View view, Object object) { in isViewFromObject() argument
166 return ((Fragment) object).getView() == view; in isViewFromObject()
/packages/apps/Terminal/src/com/android/terminal/
DTerminalActivity.java107 public void destroyItem(ViewGroup container, int position, Object object) {
108 final TerminalView view = (TerminalView) object;
123 public int getItemPosition(Object object) {
124 final TerminalView view = (TerminalView) object;
135 public boolean isViewFromObject(View view, Object object) {
136 return view == object;
/packages/apps/Launcher2/src/com/android/launcher2/
DInstallShortcutReceiver.java85 .object() in addToInstallQueue()
121 JSONObject object = (JSONObject) new JSONTokener(json).nextValue(); in getAndClearInstallQueue() local
122 Intent data = Intent.parseUri(object.getString(DATA_INTENT_KEY), 0); in getAndClearInstallQueue()
123 Intent launchIntent = Intent.parseUri(object.getString(LAUNCH_INTENT_KEY), 0); in getAndClearInstallQueue()
124 String name = object.getString(NAME_KEY); in getAndClearInstallQueue()
125 String iconBase64 = object.optString(ICON_KEY); in getAndClearInstallQueue()
126 String iconResourceName = object.optString(ICON_RESOURCE_NAME_KEY); in getAndClearInstallQueue()
128 object.optString(ICON_RESOURCE_PACKAGE_NAME_KEY); in getAndClearInstallQueue()
/packages/apps/Gallery2/src/com/android/gallery3d/ingest/data/
DImportTask.java81 for (IngestObjectInfo object : mObjectsToImport) { in run()
84 if (hasSpaceForSize(object.getCompressedSize())) { in run()
85 importedPath = new File(dest, object.getName(mDevice)).getAbsolutePath(); in run()
86 if (!mDevice.importFile(object.getObjectHandle(), importedPath)) { in run()
91 objectsNotImported.add(object); in run()

1234567