Home
last modified time | relevance | path

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

123456789

/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/UniversalMediaPlayer/java/com/android/pump/provider/
DWikidata.java216 private static void dumpJson(String name, String indent, Object object) throws JSONException { in dumpJson() argument
218 if (object == JSONObject.NULL) { in dumpJson()
220 } else if (object instanceof JSONObject) { in dumpJson()
222 JSONObject jsonObject = (JSONObject) object; in dumpJson()
229 } else if (object instanceof JSONArray) { in dumpJson()
231 JSONArray jsonArray = (JSONArray) object; in dumpJson()
236 } else if (object instanceof String) { in dumpJson()
237 String jsonString = (String) object; in dumpJson()
239 } else if (object instanceof Boolean) { in dumpJson()
240 Boolean jsonBoolean = (Boolean) object; in dumpJson()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/icons/
DLauncherActivityCachingLogic.java43 public ComponentName getComponent(LauncherActivityInfo object) { in getComponent() argument
44 return object.getComponentName(); in getComponent()
48 public UserHandle getUser(LauncherActivityInfo object) { in getUser() argument
49 return object.getUser(); in getUser()
53 public CharSequence getLabel(LauncherActivityInfo object) { in getLabel() argument
54 return object.getLabel(); in getLabel()
58 public void loadIcon(Context context, LauncherActivityInfo object, in loadIcon() argument
63 .getIcon(object, li.mFillResIconDpi, true /* flattenDrawable */), in loadIcon()
64 object.getUser(), object.getApplicationInfo().targetSdkVersion).applyTo(target); in loadIcon()
DComponentWithLabel.java45 public ComponentName getComponent(ComponentWithLabel object) { in getComponent() argument
46 return object.getComponent(); in getComponent()
50 public UserHandle getUser(ComponentWithLabel object) { in getUser() argument
51 return object.getUser(); in getUser()
55 public CharSequence getLabel(ComponentWithLabel object) { in getLabel() argument
56 return object.getLabel(mPackageManager); in getLabel()
61 ComponentWithLabel object, BitmapInfo target) { in loadIcon() argument
/packages/apps/Bluetooth/jni/
Dcom_android_bluetooth_gatt.cpp880 static void initializeNative(JNIEnv* env, jobject object) { in initializeNative() argument
915 mCallbacksObj = env->NewGlobalRef(object); in initializeNative()
918 static void cleanupNative(JNIEnv* env, jobject object) { in cleanupNative() argument
937 static int gattClientGetDeviceTypeNative(JNIEnv* env, jobject object, in gattClientGetDeviceTypeNative() argument
943 static void gattClientRegisterAppNative(JNIEnv* env, jobject object, in gattClientRegisterAppNative() argument
951 static void gattClientUnregisterAppNative(JNIEnv* env, jobject object, in gattClientUnregisterAppNative() argument
965 static void registerScannerNative(JNIEnv* env, jobject object, in registerScannerNative() argument
974 static void unregisterScannerNative(JNIEnv* env, jobject object, in unregisterScannerNative() argument
981 static void gattClientScanNative(JNIEnv* env, jobject object, jboolean start) { in gattClientScanNative() argument
986 static void gattClientConnectNative(JNIEnv* env, jobject object, jint clientif, in gattClientConnectNative() argument
[all …]
Dcom_android_bluetooth_hid_host.cpp206 static void initializeNative(JNIEnv* env, jobject object) { in initializeNative() argument
240 mCallbacksObj = env->NewGlobalRef(object); in initializeNative()
243 static void cleanupNative(JNIEnv* env, jobject object) { in cleanupNative() argument
265 static jboolean connectHidNative(JNIEnv* env, jobject object, in connectHidNative() argument
286 static jboolean disconnectHidNative(JNIEnv* env, jobject object, in disconnectHidNative() argument
308 static jboolean getProtocolModeNative(JNIEnv* env, jobject object, in getProtocolModeNative() argument
332 static jboolean virtualUnPlugNative(JNIEnv* env, jobject object, in virtualUnPlugNative() argument
353 static jboolean setProtocolModeNative(JNIEnv* env, jobject object, in setProtocolModeNative() argument
390 static jboolean getReportNative(JNIEnv* env, jobject object, jbyteArray address, in getReportNative() argument
418 static jboolean setReportNative(JNIEnv* env, jobject object, jbyteArray address, in setReportNative() argument
[all …]
Dcom_android_bluetooth_hfpclient.cpp447 static void initializeNative(JNIEnv* env, jobject object) { in initializeNative() argument
483 mCallbacksObj = env->NewGlobalRef(object); in initializeNative()
486 static void cleanupNative(JNIEnv* env, jobject object) { in cleanupNative() argument
506 static jboolean connectNative(JNIEnv* env, jobject object, jbyteArray address) { in connectNative() argument
523 static jboolean disconnectNative(JNIEnv* env, jobject object, in disconnectNative() argument
542 static jboolean connectAudioNative(JNIEnv* env, jobject object, in connectAudioNative() argument
561 static jboolean disconnectAudioNative(JNIEnv* env, jobject object, in disconnectAudioNative() argument
580 static jboolean startVoiceRecognitionNative(JNIEnv* env, jobject object, in startVoiceRecognitionNative() argument
599 static jboolean stopVoiceRecognitionNative(JNIEnv* env, jobject object, in stopVoiceRecognitionNative() argument
618 static jboolean setVolumeNative(JNIEnv* env, jobject object, jbyteArray address, in setVolumeNative() argument
[all …]
Dcom_android_bluetooth_a2dp_sink.cpp112 static void initNative(JNIEnv* env, jobject object) { in initNative() argument
146 mCallbacksObj = env->NewGlobalRef(object); in initNative()
149 static void cleanupNative(JNIEnv* env, jobject object) { in cleanupNative() argument
168 static jboolean connectA2dpNative(JNIEnv* env, jobject object, in connectA2dpNative() argument
189 static jboolean disconnectA2dpNative(JNIEnv* env, jobject object, in disconnectA2dpNative() argument
209 static void informAudioFocusStateNative(JNIEnv* env, jobject object, in informAudioFocusStateNative() argument
215 static void informAudioTrackGainNative(JNIEnv* env, jobject object, in informAudioTrackGainNative() argument
221 static jboolean setActiveDeviceNative(JNIEnv* env, jobject object, in setActiveDeviceNative() argument
Dcom_android_bluetooth_hfp.cpp438 static void initializeNative(JNIEnv* env, jobject object, jint max_hf_clients, in initializeNative() argument
481 mCallbacksObj = env->NewGlobalRef(object); in initializeNative()
484 static void cleanupNative(JNIEnv* env, jobject object) { in cleanupNative() argument
507 static jboolean connectHfpNative(JNIEnv* env, jobject object, in connectHfpNative() argument
529 static jboolean disconnectHfpNative(JNIEnv* env, jobject object, in disconnectHfpNative() argument
551 static jboolean connectAudioNative(JNIEnv* env, jobject object, in connectAudioNative() argument
573 static jboolean disconnectAudioNative(JNIEnv* env, jobject object, in disconnectAudioNative() argument
596 static jboolean startVoiceRecognitionNative(JNIEnv* env, jobject object, in startVoiceRecognitionNative() argument
618 static jboolean stopVoiceRecognitionNative(JNIEnv* env, jobject object, in stopVoiceRecognitionNative() argument
640 static jboolean setVolumeNative(JNIEnv* env, jobject object, jint volume_type, in setVolumeNative() argument
[all …]
Dcom_android_bluetooth_a2dp.cpp238 JNIEnv* env, jobject object, jobjectArray codecConfigArray) { in prepareCodecPreferences() argument
288 static void initNative(JNIEnv* env, jobject object, in initNative() argument
313 if ((mCallbacksObj = env->NewGlobalRef(object)) == nullptr) { in initNative()
335 prepareCodecPreferences(env, object, codecConfigArray); in initNative()
338 prepareCodecPreferences(env, object, codecOffloadingArray); in initNative()
351 static void cleanupNative(JNIEnv* env, jobject object) { in cleanupNative() argument
375 static jboolean connectA2dpNative(JNIEnv* env, jobject object, in connectA2dpNative() argument
400 static jboolean disconnectA2dpNative(JNIEnv* env, jobject object, in disconnectA2dpNative() argument
425 static jboolean setSilenceDeviceNative(JNIEnv* env, jobject object, in setSilenceDeviceNative() argument
452 static jboolean setActiveDeviceNative(JNIEnv* env, jobject object, in setActiveDeviceNative() argument
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/shadow/
DShadowSecureSettings.java74 final Object object = userTable.get(userHandle, name); in getIntForUser() local
75 return object instanceof Integer ? (Integer) object : def; in getIntForUser()
94 final Object object = userTable.get(userHandle, name); in getLongForUser() local
95 return object instanceof Long ? (Long) object : def; in getLongForUser()
114 final Object object = userTable.get(userHandle, name); in getFloatForUser() local
115 return object instanceof Float ? (Float) object : def; in getFloatForUser()
/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/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/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/apps/Launcher3/tests/tapl/com/android/launcher3/tapl/
DLauncherInstrumentation.java282 UiObject2 object = mDevice.findObject(By.res("android", "alertTitle")); in getAnomalyMessage() local
283 if (object != null) { in getAnomalyMessage()
284 return "System alert popup is visible: " + object.getText(); in getAnomalyMessage()
287 object = mDevice.findObject(By.res("android", "message")); in getAnomalyMessage()
288 if (object != null) { in getAnomalyMessage()
289 return "Message popup by " + object.getApplicationPackage() + " is visible: " in getAnomalyMessage()
290 + object.getText(); in getAnomalyMessage()
366 void assertNotNull(String message, Object object) { in assertNotNull() argument
367 assertTrue(message, object != null); in assertNotNull()
691 final UiObject2 object = mDevice.wait( in waitForSystemUiObject() local
[all …]
/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/iconloaderlib/src/com/android/launcher3/icons/cache/
DBaseIconCache.java252 protected synchronized <T> void addIconToDBAndMemCache(T object, CachingLogic<T> cachingLogic, in addIconToDBAndMemCache() argument
254 UserHandle user = cachingLogic.getUser(object); in addIconToDBAndMemCache()
255 ComponentName componentName = cachingLogic.getComponent(object); in addIconToDBAndMemCache()
268 cachingLogic.loadIcon(mContext, object, entry); in addIconToDBAndMemCache()
274 entry.title = cachingLogic.getLabel(object); in addIconToDBAndMemCache()
279 componentName.getPackageName(), cachingLogic.getKeywords(object, mLocaleList)); in addIconToDBAndMemCache()
325 T object = null; in cacheLocked() local
329 object = infoProvider.get(); in cacheLocked()
332 if (object != null) { in cacheLocked()
333 cachingLogic.loadIcon(mContext, object, entry); in cacheLocked()
[all …]
DCachingLogic.java29 ComponentName getComponent(T object); in getComponent() argument
31 UserHandle getUser(T object); in getUser() argument
33 CharSequence getLabel(T object); in getLabel() argument
35 void loadIcon(Context context, T object, BitmapInfo target); in loadIcon() argument
41 default String getKeywords(T object, LocaleList localeList) { in getKeywords() argument
/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/WallpaperPicker2/src/com/android/wallpaper/asset/
DResourceAsset.java78 public boolean equals(Object object) { in equals() argument
79 if (object instanceof ResourceAsset) { in equals()
80 ResourceAsset otherAsset = (ResourceAsset) object; in equals()
138 public boolean equals(Object object) { in equals() argument
139 if (object instanceof PackageResourceKey) { in equals()
140 PackageResourceKey otherKey = (PackageResourceKey) object; in equals()
DCurrentWallpaperAssetVN.java77 public boolean equals(Object object) { in equals() argument
78 if (object instanceof CurrentWallpaperAssetVN) { in equals()
79 CurrentWallpaperAssetVN otherAsset = (CurrentWallpaperAssetVN) object; in equals()
131 public boolean equals(Object object) { in equals() argument
132 if (object instanceof CurrentWallpaperVNKey) { in equals()
133 CurrentWallpaperVNKey otherKey = (CurrentWallpaperVNKey) object; in equals()
/packages/apps/PermissionController/src/com/android/packageinstaller/role/model/
DPermissionSet.java65 public boolean equals(Object object) { in equals() argument
66 if (this == object) { in equals()
69 if (object == null || getClass() != object.getClass()) { in equals()
72 PermissionSet that = (PermissionSet) object; in equals()
/packages/apps/Launcher3/src/com/android/launcher3/anim/
DSpringObjectAnimator.java58 public SpringObjectAnimator(T object, FloatProperty<T> property, float minimumVisibleChange, in SpringObjectAnimator() argument
60 mSpring = new SpringAnimation(object, createFloatPropertyCompat(property)); in SpringObjectAnimator()
67 mObjectAnimator = ObjectAnimator.ofFloat(object, mProperty, values); in SpringObjectAnimator()
292 public Float get(T object) { in get() argument
293 return mProperty.get(object); in get()
297 public void setValue(T object, float progress) { in setValue() argument
301 mProperty.setValue(object, progress); in setValue()

123456789