Home
last modified time | relevance | path

Searched refs:ids (Results 1 – 25 of 45) sorted by relevance

12

/packages/apps/Camera2/src/com/android/camera/
DMultiToggleImageButton.java284 TypedArray ids = null; in overrideImageIds() local
286 ids = getResources().obtainTypedArray(resId); in overrideImageIds()
287 mImageIds = new int[ids.length()]; in overrideImageIds()
288 for (int i = 0; i < ids.length(); i++) { in overrideImageIds()
289 mImageIds[i] = ids.getResourceId(i, 0); in overrideImageIds()
292 if (ids != null) { in overrideImageIds()
293 ids.recycle(); in overrideImageIds()
306 TypedArray ids = null; in overrideContentDescriptions() local
308 ids = getResources().obtainTypedArray(resId); in overrideContentDescriptions()
309 mDescIds = new int[ids.length()]; in overrideContentDescriptions()
[all …]
/packages/apps/Browser/src/com/android/browser/
DTabControl.java296 long[] ids = new long[numTabs]; in saveState() local
301 ids[i++] = tab.getId(); in saveState()
313 ids[i++] = -1; in saveState()
319 outState.putLongArray(POSITIONS, ids); in saveState()
336 final long[] ids = (inState == null) ? null : inState.getLongArray(POSITIONS); in canRestoreState() local
337 if (ids == null) { in canRestoreState()
346 for (long id : ids) { in canRestoreState()
383 long[] ids = inState.getLongArray(POSITIONS); in restoreState() local
386 for (long id : ids) { in restoreState()
432 for (long id : ids) { in restoreState()
DOpenDownloadReceiver.java48 long ids[] = intent.getLongArrayExtra( in onReceive() local
50 if (ids == null || ids.length == 0) { in onReceive()
54 final long id = ids[0]; in onReceive()
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DLocalAlbum.java163 GalleryApp application, boolean isImage, ArrayList<Integer> ids) { in getMediaItemById() argument
165 MediaItem[] result = new MediaItem[ids.size()]; in getMediaItemById()
166 if (ids.isEmpty()) return result; in getMediaItemById()
167 int idLow = ids.get(0); in getMediaItemById()
168 int idHigh = ids.get(ids.size() - 1); in getMediaItemById()
194 int n = ids.size(); in getMediaItemById()
201 if (ids.get(i) > id) { in getMediaItemById()
205 while (ids.get(i) < id) { in getMediaItemById()
DSecureAlbum.java134 ArrayList<Integer> ids = new ArrayList<Integer>(); in queryExistingIds() local
135 if (minId == Integer.MAX_VALUE || maxId == Integer.MIN_VALUE) return ids; in queryExistingIds()
140 if (cursor == null) return ids; in queryExistingIds()
143 ids.add(cursor.getInt(0)); in queryExistingIds()
148 return ids; in queryExistingIds()
DLocalSource.java221 ArrayList<Integer> ids = new ArrayList<Integer>(); in processMapMediaItems() local
223 ids.add(startId); in processMapMediaItems()
232 ids.add(curId); in processMapMediaItems()
236 mApplication, isImage, ids); in processMapMediaItems()
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DDownloadReceiver.java131 final long[] ids = intent.getLongArrayExtra( in handleNotificationBroadcast() local
133 sendNotificationClickedIntent(context, ids); in handleNotificationBroadcast()
192 private void sendNotificationClickedIntent(Context context, long[] ids) { in sendNotificationClickedIntent() argument
198 Downloads.Impl.ALL_DOWNLOADS_CONTENT_URI, ids[0]); in sendNotificationClickedIntent()
206 Log.w(TAG, "Missing details for download " + ids[0]); in sendNotificationClickedIntent()
222 appIntent.putExtra(DownloadManager.EXTRA_NOTIFICATION_CLICK_DOWNLOAD_IDS, ids); in sendNotificationClickedIntent()
232 appIntent.putExtra(DownloadManager.EXTRA_NOTIFICATION_CLICK_DOWNLOAD_IDS, ids); in sendNotificationClickedIntent()
234 if (ids.length == 1) { in sendNotificationClickedIntent()
/packages/apps/Dialer/tests/src/com/android/dialer/
DPhoneCallDetailsHelperTest.java283 private void assertCallTypeIconsEquals(int... ids) { in assertCallTypeIconsEquals() argument
284 assertEquals(ids.length, mViews.callTypeIcons.getCount()); in assertCallTypeIconsEquals()
285 for (int index = 0; index < ids.length; ++index) { in assertCallTypeIconsEquals()
286 int id = ids[index]; in assertCallTypeIconsEquals()
297 private void assertCallTypeIconsEqualsPlusOverflow(String overflowText, int... ids) { in assertCallTypeIconsEqualsPlusOverflow() argument
298 assertEquals(ids.length, mViews.callTypeIcons.getCount()); in assertCallTypeIconsEqualsPlusOverflow()
299 for (int index = 0; index < ids.length; ++index) { in assertCallTypeIconsEqualsPlusOverflow()
300 int id = ids[index]; in assertCallTypeIconsEqualsPlusOverflow()
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DMenuExecutor.java215 ArrayList<Path> ids = mSelectionManager.getSelected(true); in getSingleSelectedPath() local
216 Utils.assertTrue(ids.size() == 1); in getSingleSelectedPath()
217 return ids.get(0); in getSingleSelectedPath()
335 ArrayList<Path> ids = mSelectionManager.getSelected(false); in startAction() local
340 mDialog = createProgressDialog(activity, title, ids.size()); in startAction()
345 MediaOperation operation = new MediaOperation(action, ids, listener); in startAction()
351 ArrayList<Path> ids = new ArrayList<Path>(1); in startSingleItemAction() local
352 ids.add(targetPath); in startSingleItemAction()
354 MediaOperation operation = new MediaOperation(action, ids, null); in startSingleItemAction()
/packages/apps/Calendar/src/com/android/calendar/alerts/
DAlertService.java491 StringBuilder ids = new StringBuilder(); in logEventIdsBumped() local
494 ids.append(info.eventId); in logEventIdsBumped()
495 ids.append(","); in logEventIdsBumped()
500 ids.append(info.eventId); in logEventIdsBumped()
501 ids.append(","); in logEventIdsBumped()
504 if (ids.length() > 0 && ids.charAt(ids.length() - 1) == ',') { in logEventIdsBumped()
505 ids.setLength(ids.length() - 1); in logEventIdsBumped()
507 if (ids.length() > 0) { in logEventIdsBumped()
508 Log.d(TAG, "Reached max postings, bumping event IDs {" + ids.toString() in logEventIdsBumped()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DContactsDatabaseHelperTest.java71 final Set<Long> ids = Sets.newHashSet(); in testGetOrCreateAccountId() local
72 ids.add(a1id); in testGetOrCreateAccountId()
73 ids.add(a2id); in testGetOrCreateAccountId()
74 ids.add(a3id); in testGetOrCreateAccountId()
75 ids.add(a4id); in testGetOrCreateAccountId()
76 ids.add(a5id); in testGetOrCreateAccountId()
77 assertEquals(5, ids.size()); in testGetOrCreateAccountId()
DContactsProvider2Test.java8011 DatabaseAsserts.ContactIdPair ids = assertContactCreateDelete(); in testContactDelete_hasDeleteLog() local
8012 DatabaseAsserts.assertHasDeleteLogGreaterThan(mResolver, ids.mContactId, start); in testContactDelete_hasDeleteLog()
8015 RawContactUtil.delete(mResolver, ids.mRawContactId, true); in testContactDelete_hasDeleteLog()
8019 DatabaseAsserts.ContactIdPair ids = assertContactCreateDelete(); in testContactDelete_marksRawContactsForDeletion() local
8023 List<String[]> records = RawContactUtil.queryByContactId(mResolver, ids.mContactId, in testContactDelete_marksRawContactsForDeletion()
8031 RawContactUtil.delete(mResolver, ids.mRawContactId, true); in testContactDelete_marksRawContactsForDeletion()
8036 DatabaseAsserts.ContactIdPair ids = DatabaseAsserts.assertAndCreateContact(mResolver); in testContactUpdate_updatesContactUpdatedTimestamp() local
8038 long baseTime = ContactUtil.queryContactLastUpdatedTimestamp(mResolver, ids.mContactId); in testContactUpdate_updatesContactUpdatedTimestamp()
8044 ContactUtil.update(mResolver, ids.mContactId, values); in testContactUpdate_updatesContactUpdatedTimestamp()
8046 long newTime = ContactUtil.queryContactLastUpdatedTimestamp(mResolver, ids.mContactId); in testContactUpdate_updatesContactUpdatedTimestamp()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/
DGLES11Canvas.java747 IntArray ids = mUnboundTextures; in deleteRecycledResources() local
748 if (ids.size() > 0) { in deleteRecycledResources()
749 mGLId.glDeleteTextures(mGL, ids.size(), ids.getInternalArray(), 0); in deleteRecycledResources()
750 ids.clear(); in deleteRecycledResources()
753 ids = mDeleteBuffers; in deleteRecycledResources()
754 if (ids.size() > 0) { in deleteRecycledResources()
755 mGLId.glDeleteBuffers(mGL, ids.size(), ids.getInternalArray(), 0); in deleteRecycledResources()
756 ids.clear(); in deleteRecycledResources()
DGLES20Canvas.java806 IntArray ids = mUnboundTextures; in deleteRecycledResources() local
808 mGLId.glDeleteTextures(null, ids.size(), ids.getInternalArray(), 0); in deleteRecycledResources()
809 ids.clear(); in deleteRecycledResources()
812 ids = mDeleteBuffers; in deleteRecycledResources()
813 if (ids.size() > 0) { in deleteRecycledResources()
814 mGLId.glDeleteBuffers(null, ids.size(), ids.getInternalArray(), 0); in deleteRecycledResources()
815 ids.clear(); in deleteRecycledResources()
/packages/apps/Launcher3/WallpaperPicker/src/com/android/gallery3d/glrenderer/
DGLES20Canvas.java806 IntArray ids = mUnboundTextures; in deleteRecycledResources() local
808 mGLId.glDeleteTextures(null, ids.size(), ids.getInternalArray(), 0); in deleteRecycledResources()
809 ids.clear(); in deleteRecycledResources()
812 ids = mDeleteBuffers; in deleteRecycledResources()
813 if (ids.size() > 0) { in deleteRecycledResources()
814 mGLId.glDeleteBuffers(null, ids.size(), ids.getInternalArray(), 0); in deleteRecycledResources()
815 ids.clear(); in deleteRecycledResources()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/editors/
DEditorColorBorderTabletUI.java62 private int[] ids = { field in EditorColorBorderTabletUI
168 mColorButton = new Button[ids.length]; in setupColor()
169 for (int i = 0; i < ids.length; i++) { in setupColor()
170 mColorButton[i] = (Button) lp.findViewById(ids[i]); in setupColor()
248 for (int i = 0; i < ids.length; i++) { in resetBorders()
DEditorDrawTabletUI.java66 private int[] ids = { field in EditorDrawTabletUI
173 mColorButton = new Button[ids.length]; in EditorDrawTabletUI()
174 for (int i = 0; i < ids.length; i++) { in EditorDrawTabletUI()
175 mColorButton[i] = (Button) lp.findViewById(ids[i]); in EditorDrawTabletUI()
270 for (int i = 0; i < ids.length; i++) { in resetBorders()
/packages/apps/Browser/src/com/android/browser/widget/
DBookmarkThumbnailWidgetProvider.java53 public void onUpdate(Context context, AppWidgetManager mngr, int[] ids) { in onUpdate() argument
54 performUpdate(context, mngr, ids); in onUpdate()
77 int[] ids = wm.getAppWidgetIds(getComponentName(context)); in removeOrphanedFiles() local
78 BookmarkThumbnailWidgetService.removeOrphanedStates(context, ids); in removeOrphanedFiles()
/packages/apps/Music/src/com/android/music/
DMusicUtils.java544 private static void makeInsertItems(long[] ids, int offset, int len, int base) { in makeInsertItems() argument
546 if (offset + len > ids.length) { in makeInsertItems()
547 len = ids.length - offset; in makeInsertItems()
560 … sContentValuesCache[i].put(MediaStore.Audio.Playlists.Members.AUDIO_ID, ids[offset + i]); in makeInsertItems()
564 public static void addToPlaylist(Context context, long [] ids, long playlistid) { in addToPlaylist() argument
565 if (ids == null) { in addToPlaylist()
570 int size = ids.length; in addToPlaylist()
584 makeInsertItems(ids, i, 1000, base); in addToPlaylist()
/packages/apps/DeskClock/src/com/android/deskclock/
DSettingsActivity.java256 String[] ids = resources.getStringArray(R.array.timezone_values);
258 int minLength = ids.length;
259 if (ids.length != labels.length) {
265 timezones.add(new TimeZoneRow(ids[i], labels[i]));
DAlarmClockFragment.java1309 long[] ids = new long[mSelectedAlarms.size()]; in getSelectedAlarmsArray() local
1311 ids[index] = id; in getSelectedAlarmsArray()
1314 return ids; in getSelectedAlarmsArray()
1319 long[] ids = new long[mRepeatChecked.size()]; in getRepeatArray() local
1321 ids[index] = id; in getRepeatArray()
1324 return ids; in getRepeatArray()
1331 private void buildHashSetFromArray(long[] ids, HashSet<Long> set) { in buildHashSetFromArray() argument
1332 for (long id : ids) { in buildHashSetFromArray()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/
DDownloadManagerWrapper.java52 public void remove(final long... ids) { in remove() argument
55 mDownloadManager.remove(ids); in remove()
63 Log.e(TAG, "Can't remove files with ID " + ids + " from download manager", e); in remove()
/packages/apps/LegacyCamera/src/com/android/camera/
DIconListPreference.java79 int ids[] = new int[n]; in getIds() local
81 ids[i] = array.getResourceId(i, 0); in getIds()
84 return ids; in getIds()
/packages/apps/Camera/src/com/android/camera/
DIconListPreference.java86 int ids[] = new int[n]; in getIds() local
88 ids[i] = array.getResourceId(i, 0); in getIds()
91 return ids; in getIds()
/packages/apps/Gallery2/src/com/android/gallery3d/util/
DProfileData.java75 int[] ids = new int[stack.length]; in addSample() local
77 ids[i] = nameToId(stack[i]); in addSample()
86 int id = ids[i]; in addSample()

12