Home
last modified time | relevance | path

Searched refs:ensureNotNull (Results 1 – 6 of 6) sorted by relevance

/packages/services/Mtp/src/com/android/mtp/
DMtpManager.java86 ensureNotNull(rawDevice, "Not found USB device: " + deviceId); in openDevice()
97 final UsbDeviceConnection connection = ensureNotNull( in openDevice()
107 final int[] storageIds = ensureNotNull( in openDevice()
137 return ensureNotNull( in getObjectInfo()
147 return ensureNotNull( in getObjectHandles()
157 return ensureNotNull( in getObject()
182 return ensureNotNull( in getThumbnail()
248 return ensureNotNull( in getDevice()
257 ensureNotNull(device.getStorageIds(), "Failed to obtain storage IDs."); in getRoots()
342 private static <T> T ensureNotNull(@Nullable T t, String errorMessage) throws IOException { in ensureNotNull() method in MtpManager
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DBucketHelper.java210 bucketName = Utils.ensureNotNull(name); in BucketEntry()
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
DUtils.java236 public static String ensureNotNull(String value) { in ensureNotNull() method in Utils
/packages/apps/Gallery2/src/com/android/gallery3d/gadget/
DWidgetDatabaseHelper.java223 values.put(FIELD_ALBUM_PATH, Utils.ensureNotNull(albumPath)); in setWidget()
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DGalleryActivity.java88 String type = Utils.ensureNotNull(intent.getType()); in initializeByIntent()
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DAlbumSetSlidingWindow.java257 String title = (album == null) ? "" : Utils.ensureNotNull(album.getName()); in updateAlbumSetEntry()