/packages/apps/Launcher3/tests/src/com/android/launcher3/model/ |
H A D | GridSizeMigrationTaskTest.java | 127 long[][][] ids = createGrid(new int[][][]{{ 139 {ids[0][0][0], ids[0][0][1], ids[0][0][3]}, 140 {ids[0][1][0], ids[0][1][1], ids[0][1][3]}, 141 {ids[0][3][0], ids[0][3][1], ids[ 322 verifyWorkspace(long[][][] ids) argument [all...] |
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/selection/ |
H A D | SelectionProbe.java | 78 public void assertSelection(int... ids) { argument 79 assertSelected(ids); 80 assertEquals(ids.length, mMgr.getSelection().size()); 82 mTestCallback.assertSelectionSize(ids.length); 85 public void assertSelected(int... ids) { argument 87 for (int id : ids) { 95 public void assertNotSelected(int... ids) { argument 97 for (int id : ids) {
|
/packages/apps/DeskClock/src/com/android/deskclock/data/ |
H A D | CustomRingtoneDAO.java | 34 /** Key to a preference that stores the set of all custom ringtone ids. */ 55 final Set<String> ids = getRingtoneIds(prefs); 56 ids.add(String.valueOf(id)); 62 .putStringSet(RINGTONE_IDS, ids) 72 final Set<String> ids = getRingtoneIds(prefs); 73 ids.remove(String.valueOf(id)); 78 if (ids.isEmpty()) { 82 editor.putStringSet(RINGTONE_IDS, ids); 91 final Set<String> ids = prefs.getStringSet(RINGTONE_IDS, Collections.<String>emptySet()); 92 final List<CustomRingtone> ringtones = new ArrayList<>(ids [all...] |
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/ |
H A D | CallExtrasTest.java | 53 IdPair ids = startAndMakeActiveIncomingCall("650-555-1212", 64 assertTrue(mInCallServiceFixtureX.getCall(ids.mCallId).getExtras().containsKey( 66 assertTrue(mInCallServiceFixtureX.getCall(ids.mCallId).getExtras().containsKey( 79 IdPair ids = startAndMakeActiveIncomingCall("650-555-1212", 85 assertTrue(mInCallServiceFixtureX.getCall(ids.mCallId).getExtras() 88 mInCallServiceFixtureX.getCall(ids.mCallId).getExtras().getBoolean(EXTRA_KEY_BOOL)); 100 IdPair ids = startAndMakeActiveIncomingCall("650-555-1212", 107 mInCallServiceFixtureX.getCall(ids.mCallId).getExtras().containsKey(EXTRA_KEY_INT)); 109 mInCallServiceFixtureX.getCall(ids.mCallId).getExtras().getInt(EXTRA_KEY_INT)); 121 IdPair ids [all...] |
H A D | BasicCallTests.java | 78 IdPair ids = startAndMakeActiveOutgoingCall("650-555-1212", 81 mInCallServiceFixtureX.mInCallAdapter.disconnectCall(ids.mCallId); 82 assertEquals(Call.STATE_ACTIVE, mInCallServiceFixtureX.getCall(ids.mCallId).getState()); 83 assertEquals(Call.STATE_ACTIVE, mInCallServiceFixtureY.getCall(ids.mCallId).getState()); 87 mConnectionServiceFixtureA.sendSetDisconnected(ids.mConnectionId, DisconnectCause.LOCAL); 89 mInCallServiceFixtureX.getCall(ids.mCallId).getState()); 91 mInCallServiceFixtureY.getCall(ids.mCallId).getState()); 93 mInCallServiceFixtureX.getCall(ids.mCallId).getConnectTimeMillis()); 95 mInCallServiceFixtureY.getCall(ids.mCallId).getConnectTimeMillis()); 97 mInCallServiceFixtureX.getCall(ids [all...] |
H A D | VideoCallTests.java | 51 IdPair ids = startAndMakeActiveIncomingCall("650-555-1212", 67 IdPair ids = startAndMakeActiveIncomingCall("650-555-1212", 81 IdPair ids = startAndMakeActiveOutgoingCall("650-555-1212", 96 IdPair ids = startAndMakeActiveOutgoingCall("650-555-1212", 111 IdPair ids = startAndMakeActiveOutgoingCall("650-555-1212", 125 IdPair ids = startAndMakeActiveIncomingCall("650-555-1212", 138 IdPair ids = startIncomingPhoneCall("650-555-1212", mPhoneAccountA0.getAccountHandle(), 143 mConnectionServiceFixtureA.sendSetDisconnected(ids.mConnectionId, DisconnectCause.MISSED); 154 IdPair ids = startIncomingPhoneCall("650-555-1212", mPhoneAccountA0.getAccountHandle(), 159 mConnectionServiceFixtureA.sendSetDisconnected(ids [all...] |
H A D | TelecomSystemTest.java | 551 IdPair ids = outgoingCallCreateConnectionComplete(startingNumConnections, startingNumCalls, 554 connectionServiceFixture.sendSetDialing(ids.mConnectionId); 555 assertEquals(Call.STATE_DIALING, mInCallServiceFixtureX.getCall(ids.mCallId).getState()); 556 assertEquals(Call.STATE_DIALING, mInCallServiceFixtureY.getCall(ids.mCallId).getState()); 558 connectionServiceFixture.sendSetVideoState(ids.mConnectionId); 560 connectionServiceFixture.sendSetActive(ids.mConnectionId); 561 assertEquals(Call.STATE_ACTIVE, mInCallServiceFixtureX.getCall(ids.mCallId).getState()); 562 assertEquals(Call.STATE_ACTIVE, mInCallServiceFixtureY.getCall(ids.mCallId).getState()); 564 return ids; 916 IdPair ids [all...] |
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/selection/ |
H A D | SelectionTest.java | 43 private String[] ids = new String[]{ field in class:SelectionTest 52 selection.add(ids[0]); 53 selection.add(ids[1]); 54 selection.add(ids[2]); 61 assertContains(ids[0]); 62 assertContains(ids[1]); 63 assertContains(ids[2]); 68 selection.remove(ids[0]); 69 selection.remove(ids[2]); 71 assertContains(ids[ [all...] |
H A D | SelectionManagerTest.java | 345 Set<String> ids = new HashSet<>(); 349 ids.add(ITEMS.get(selection.keyAt(i))); 352 return ids; 355 private static Iterable<String> getStringIds(int... ids) { argument 356 List<String> stringIds = new ArrayList<>(ids.length); 357 for (int id : ids) {
|
/packages/apps/DocumentsUI/src/com/android/documentsui/sorting/ |
H A D | SortingCursorWrapper.java | 49 String[] ids = new String[count]; 70 ids[i] = getCursorString(mCursor, Document.COLUMN_DOCUMENT_ID); 94 binarySort(stringValues, isDirs, mPosition, ids, dimension.getSortDirection()); 98 binarySort(longValues, isDirs, mPosition, ids, dimension.getSortDirection()); 188 String[] ids, 195 final String pivotId = ids[start]; 228 compare = pivotId.compareTo(ids[mid]); 269 String[] ids, 276 final String pivotId = ids[start]; 312 compare = pivotId.compareTo(ids[mi 184 binarySort( String[] sortKey, boolean[] isDirs, int[] positions, String[] ids, @SortDimension.SortDirection int direction) argument 265 binarySort( long[] sortKey, boolean[] isDirs, int[] positions, String[] ids, @SortDimension.SortDirection int direction) argument [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/ |
H A D | DownloadManagerWrapper.java | 54 public void remove(final long... ids) { argument 57 mDownloadManager.remove(ids); 65 Log.e(TAG, "Can't remove files with ID " + ids + " from download manager", e);
|
/packages/apps/Camera2/src/com/android/camera/one/v2/ |
H A D | Camera2OneCameraManagerImpl.java | 40 * Pick camera ids from a list of devices based on defined characteristics. 73 String[] ids = mCameraManager.getCameraIdList(); 74 return ids != null && ids.length > 0; 89 String[] ids = mCameraManager.getCameraIdList(); 90 if(ids != null && ids.length > 0) { 91 return CameraId.from(ids[0]);
|
/packages/apps/Camera2/src/com/android/camera/ |
H A D | MultiToggleImageButton.java | 42 * image ids (e.g. imageIds="@array/camera_flashmode_icons"). 298 * Override the image ids of this button. 301 TypedArray ids = null; 303 ids = getResources().obtainTypedArray(resId); 304 mImageIds = new int[ids.length()]; 305 for (int i = 0; i < ids.length(); i++) { 306 mImageIds[i] = ids.getResourceId(i, 0); 309 if (ids != null) { 310 ids.recycle(); 323 TypedArray ids [all...] |
/packages/providers/BlockedNumberProvider/src/com/android/providers/blockednumber/ |
H A D | BlockedNumberBackupAgent.java | 102 state.ids.add(dataInputStream.readInt()); 109 SortedSet<Integer> deletedBlockedNumbers = new TreeSet<>(state.ids); 112 if (state.ids.contains(blockedNumber.id)) { 119 state.ids.add(blockedNumber.id); 126 state.ids.remove(id); 193 for (int i : state.ids) { 249 final SortedSet<Integer> ids; field in class:BlockedNumberBackupAgent.BackupState 251 BackupState(int version, SortedSet<Integer> ids) { argument 253 this.ids = ids; [all...] |
/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.
|
/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/TV/src/com/android/tv/tuner/exoplayer/ |
H A D | FileSampleExtractor.java | 68 List<String> ids = new ArrayList<>(); 72 ids.add(trackFormat.trackId); 77 mSampleBuffer.init(ids, mTrackFormats);
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/aggregation/util/ |
H A D | ContactAggregatorHelper.java | 81 Set<Long> ids = rawContactIds.get(Iterables.getOnlyElement(s)); 82 if (ids != null && !ids.isEmpty()) { 83 mergedSet.addAll(ids); 91 * Given a set of raw contact ids {@code rawContactIdSet} and the connection among them
|
/packages/apps/Dialer/java/com/android/dialer/calllog/datasources/systemcalllog/ |
H A D | SystemCallLogDataSource.java | 125 "found %d existing annotated call log ids", 265 ArraySet<Long> ids = new ArraySet<>(); 279 return ids; 285 ids.add(cursor.getLong(idColumn)); 289 return ids; 295 ArraySet<Long> ids = new ArraySet<>(); 313 return ids; 319 ids.add(cursor.getLong(idColumn)); 322 return ids;
|
/packages/providers/DownloadProvider/src/com/android/providers/downloads/ |
H A D | DownloadReceiver.java | 169 final long[] ids = intent.getLongArrayExtra( 171 sendNotificationClickedIntent(context, ids); 230 private void sendNotificationClickedIntent(Context context, long[] ids) { argument 236 Downloads.Impl.ALL_DOWNLOADS_CONTENT_URI, ids[0]); 244 Log.w(TAG, "Missing details for download " + ids[0]); 260 appIntent.putExtra(DownloadManager.EXTRA_NOTIFICATION_CLICK_DOWNLOAD_IDS, ids); 270 appIntent.putExtra(DownloadManager.EXTRA_NOTIFICATION_CLICK_DOWNLOAD_IDS, ids); 272 if (ids.length == 1) {
|
/packages/apps/DocumentsUI/src/com/android/documentsui/selection/ |
H A D | Selection.java | 102 * @return Map of ids added or removed. Added ids have a value of true, removed are false. 194 public void intersect(Collection<String> ids) { argument 195 mSelection.retainAll(ids); 196 mProvisionalSelection.retainAll(ids);
|
H A D | SelectionManager.java | 191 public void replaceSelection(Iterable<String> ids) { argument 193 setItemsSelected(ids, true); 210 * @param ids 214 public boolean setItemsSelected(Iterable<String> ids, boolean selected) { argument 215 final boolean changed = setItemsSelectedQuietly(ids, selected); 220 private boolean setItemsSelectedQuietly(Iterable<String> ids, boolean selected) { argument 222 for (String id: ids) {
|
/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/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/task/nonrequiredapps/ |
H A D | NonRequiredAppsLogicTest.java | 191 private Set<String> getSetFromArray(int[] ids) { argument 192 Set<String> set = new HashSet<>(ids.length); 193 for (int id : ids) {
|