/packages/apps/Email/tests/src/com/android/email/ |
H A D | UtilityLargeTest.java | 54 final ArrayList<Long> ids = new ArrayList<Long>(); // Account id array. 65 synchronized (ids) { 66 ids.add(accountId); 87 synchronized (ids) { 88 assertEquals(2, ids.size()); 89 // ids may not be sorted, so... 90 assertTrue(ids.contains(acct1.mId)); 91 assertTrue(ids.contains(acct2.mId));
|
/packages/apps/Browser/src/com/android/browser/ |
H A D | OpenDownloadReceiver.java | 48 long ids[] = intent.getLongArrayExtra( 50 if (ids == null || ids.length == 0) { 54 final long id = ids[0];
|
H A D | TabControl.java | 286 * position sorted array of tab ids 296 long[] ids = new long[numTabs]; 301 ids[i++] = tab.getId(); 309 "Error saving state, duplicate tab ids!"); 313 ids[i++] = -1; 319 outState.putLongArray(POSITIONS, ids); 336 final long[] ids = (inState == null) ? null : inState.getLongArray(POSITIONS); 337 if (ids == null) { 346 for (long id : ids) { 383 long[] ids [all...] |
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
H A D | ContactsDatabaseHelperTest.java | 64 final Set<Long> ids = Sets.newHashSet(); 65 ids.add(a1id); 66 ids.add(a2id); 67 ids.add(a3id); 68 ids.add(a4id); 69 ids.add(a5id); 70 assertEquals(5, ids.size());
|
/packages/apps/Browser/src/com/android/browser/widget/ |
H A D | BookmarkThumbnailWidgetProvider.java | 53 public void onUpdate(Context context, AppWidgetManager mngr, int[] ids) { argument 54 performUpdate(context, mngr, ids); 77 int[] ids = wm.getAppWidgetIds(getComponentName(context)); 78 BookmarkThumbnailWidgetService.removeOrphanedStates(context, ids);
|
/packages/providers/DownloadProvider/src/com/android/providers/downloads/ |
H A D | DownloadReceiver.java | 112 final long[] ids = intent.getLongArrayExtra( 114 sendNotificationClickedIntent(context, ids); 173 private void sendNotificationClickedIntent(Context context, long[] ids) { argument 179 Downloads.Impl.ALL_DOWNLOADS_CONTENT_URI, ids[0]); 187 Log.w(TAG, "Missing details for download " + ids[0]); 203 appIntent.putExtra(DownloadManager.EXTRA_NOTIFICATION_CLICK_DOWNLOAD_IDS, ids); 213 appIntent.putExtra(DownloadManager.EXTRA_NOTIFICATION_CLICK_DOWNLOAD_IDS, ids); 215 if (ids.length == 1) {
|
/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
H A D | LocalAlbum.java | 163 GalleryApp application, boolean isImage, ArrayList<Integer> ids) { 165 MediaItem[] result = new MediaItem[ids.size()]; 166 if (ids.isEmpty()) return result; 167 int idLow = ids.get(0); 168 int idHigh = ids.get(ids.size() - 1); 194 int n = ids.size(); 200 // Match id with the one on the ids list. 201 if (ids.get(i) > id) { 205 while (ids 162 getMediaItemById( GalleryApp application, boolean isImage, ArrayList<Integer> ids) argument [all...] |
H A D | SecureAlbum.java | 134 ArrayList<Integer> ids = new ArrayList<Integer>(); 135 if (minId == Integer.MAX_VALUE || maxId == Integer.MIN_VALUE) return ids; 140 if (cursor == null) return ids; 143 ids.add(cursor.getInt(0)); 148 return ids; 168 // Query existing ids.
|
H A D | LocalSource.java | 221 ArrayList<Integer> ids = new ArrayList<Integer>(); 223 ids.add(startId); 232 ids.add(curId); 236 mApplication, isImage, ids);
|
/packages/apps/Camera/src/com/android/camera/ |
H A D | IconListPreference.java | 86 int ids[] = new int[n]; 88 ids[i] = array.getResourceId(i, 0); 91 return ids;
|
/packages/apps/Camera2/src/com/android/camera/ |
H A D | IconListPreference.java | 88 int ids[] = new int[n]; 90 ids[i] = array.getResourceId(i, 0); 93 return ids;
|
/packages/apps/Dialer/src/com/android/dialer/calllog/ |
H A D | IntentProvider.java | 94 long[] ids = new long[groupSize]; 95 // Copy the ids of the rows in the group. 97 ids[index] = cursor.getLong(CallLogQuery.ID); 100 intent.putExtra(CallDetailActivity.EXTRA_CALL_LOG_IDS, ids);
|
/packages/apps/LegacyCamera/src/com/android/camera/ |
H A D | IconListPreference.java | 79 int ids[] = new int[n]; 81 ids[i] = array.getResourceId(i, 0); 84 return ids;
|
/packages/apps/Dialer/tests/src/com/android/dialer/ |
H A D | PhoneCallDetailsHelperTest.java | 262 private void assertCallTypeIconsEquals(int... ids) { argument 263 assertEquals(ids.length, mViews.callTypeIcons.getCount()); 264 for (int index = 0; index < ids.length; ++index) { 265 int id = ids[index]; 276 private void assertCallTypeIconsEqualsPlusOverflow(String overflowText, int... ids) { argument 277 assertEquals(ids.length, mViews.callTypeIcons.getCount()); 278 for (int index = 0; index < ids.length; ++index) { 279 int id = ids[index];
|
/packages/apps/Gallery2/src/com/android/gallery3d/util/ |
H A D | ProfileData.java | 75 int[] ids = new int[stack.length]; 77 ids[i] = nameToId(stack[i]); 86 int id = ids[i];
|
/packages/apps/Exchange/tests/src/com/android/exchange/adapter/ |
H A D | EmailSyncAdapterTests.java | 102 ArrayList<Long> ids = new ArrayList<Long>(); 114 ids.add(msg1.mId); 117 ids.add(msg2.mId); 120 ids.add(msg3.mId); 125 for (long id: ids) { 175 ArrayList<Long> ids = new ArrayList<Long>(); 185 ids.add(msg.mId); 190 return ids;
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
H A D | MenuExecutor.java | 215 ArrayList<Path> ids = mSelectionManager.getSelected(true); 216 Utils.assertTrue(ids.size() == 1); 217 return ids.get(0); 335 ArrayList<Path> ids = mSelectionManager.getSelected(false); 340 mDialog = createProgressDialog(activity, title, ids.size()); 345 MediaOperation operation = new MediaOperation(action, ids, listener); 351 ArrayList<Path> ids = new ArrayList<Path>(1); 352 ids.add(targetPath); 354 MediaOperation operation = new MediaOperation(action, ids, null);
|
/packages/apps/DeskClock/src/com/android/deskclock/ |
H A D | SettingsActivity.java | 274 * Returns an array of ids/time zones. This returns a double indexed array 275 * of ids and time zones for Calendar. It is an inefficient method and 279 * @return double array of tz ids and tz names 283 String[] ids = resources.getStringArray(R.array.timezone_values); 285 int minLength = ids.length; 286 if (ids.length != labels.length) { 288 Log.e("Timezone ids and labels have different length!"); 292 timezones.add(new TimeZoneRow(ids[i], labels[i]));
|
/packages/apps/Calendar/src/com/android/calendar/alerts/ |
H A D | AlertService.java | 491 StringBuilder ids = new StringBuilder(); 494 ids.append(info.eventId); 495 ids.append(","); 500 ids.append(info.eventId); 501 ids.append(","); 504 if (ids.length() > 0 && ids.charAt(ids.length() - 1) == ',') { 505 ids.setLength(ids [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/editors/ |
H A D | EditorColorBorderTabletUI.java | 62 private int[] ids = { field in class:EditorColorBorderTabletUI 168 mColorButton = new Button[ids.length]; 169 for (int i = 0; i < ids.length; i++) { 170 mColorButton[i] = (Button) lp.findViewById(ids[i]); 248 for (int i = 0; i < ids.length; i++) {
|
H A D | EditorDrawTabletUI.java | 66 private int[] ids = { field in class:EditorDrawTabletUI 173 mColorButton = new Button[ids.length]; 174 for (int i = 0; i < ids.length; i++) { 175 mColorButton[i] = (Button) lp.findViewById(ids[i]); 270 for (int i = 0; i < ids.length; i++) {
|
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/ |
H A D | GLES11Canvas.java | 747 IntArray ids = mUnboundTextures; 748 if (ids.size() > 0) { 749 mGLId.glDeleteTextures(mGL, ids.size(), ids.getInternalArray(), 0); 750 ids.clear(); 753 ids = mDeleteBuffers; 754 if (ids.size() > 0) { 755 mGLId.glDeleteBuffers(mGL, ids.size(), ids.getInternalArray(), 0); 756 ids [all...] |
H A D | GLES20Canvas.java | 806 IntArray ids = mUnboundTextures; 808 mGLId.glDeleteTextures(null, ids.size(), ids.getInternalArray(), 0); 809 ids.clear(); 812 ids = mDeleteBuffers; 813 if (ids.size() > 0) { 814 mGLId.glDeleteBuffers(null, ids.size(), ids.getInternalArray(), 0); 815 ids.clear();
|
/packages/apps/Launcher3/src/com/android/gallery3d/glrenderer/ |
H A D | GLES20Canvas.java | 806 IntArray ids = mUnboundTextures; 808 mGLId.glDeleteTextures(null, ids.size(), ids.getInternalArray(), 0); 809 ids.clear(); 812 ids = mDeleteBuffers; 813 if (ids.size() > 0) { 814 mGLId.glDeleteBuffers(null, ids.size(), ids.getInternalArray(), 0); 815 ids.clear();
|
/packages/apps/Mms/src/com/android/mms/data/ |
H A D | RecipientIdCache.java | 105 String[] ids = spaceSepIds.split(" "); 106 for (String id : ids) {
|