Home
last modified time | relevance | path

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

12345

/packages/apps/Launcher3/robolectric_tests/src/com/android/launcher3/model/
DGridSizeMigrationTaskTest.java123 int[][][] ids = mModelHelper.createGrid(new int[][][]{{ in testWorkspace_empty_row_column_removed() local
135 {ids[0][0][0], ids[0][0][1], ids[0][0][3]}, in testWorkspace_empty_row_column_removed()
136 {ids[0][1][0], ids[0][1][1], ids[0][1][3]}, in testWorkspace_empty_row_column_removed()
137 {ids[0][3][0], ids[0][3][1], ids[0][3][3]}, in testWorkspace_empty_row_column_removed()
143 int[][][] ids = mModelHelper.createGrid(new int[][][]{{ in testWorkspace_new_screen_created() local
155 {ids[0][0][0], ids[0][0][1], ids[0][0][3]}, in testWorkspace_new_screen_created()
156 {ids[0][1][0], ids[0][1][1], ids[0][1][3]}, in testWorkspace_new_screen_created()
157 {ids[0][3][0], ids[0][3][1], ids[0][3][3]}, in testWorkspace_new_screen_created()
159 {ids[0][0][2], ids[0][1][2], -1}, in testWorkspace_new_screen_created()
165 int[][][] ids = mModelHelper.createGrid(new int[][][]{{ in testWorkspace_items_merged_in_next_screen() local
[all …]
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DBasicCallTests.java102 IdPair ids = startAndMakeActiveOutgoingCall("650-555-1212", in testSingleOutgoingCallLocalDisconnect() local
105 mInCallServiceFixtureX.mInCallAdapter.disconnectCall(ids.mCallId); in testSingleOutgoingCallLocalDisconnect()
107 mInCallServiceFixtureX.getCall(ids.mCallId).getState()); in testSingleOutgoingCallLocalDisconnect()
109 mInCallServiceFixtureY.getCall(ids.mCallId).getState()); in testSingleOutgoingCallLocalDisconnect()
113 mConnectionServiceFixtureA.sendSetDisconnected(ids.mConnectionId, DisconnectCause.LOCAL); in testSingleOutgoingCallLocalDisconnect()
115 mInCallServiceFixtureX.getCall(ids.mCallId).getState()); in testSingleOutgoingCallLocalDisconnect()
117 mInCallServiceFixtureY.getCall(ids.mCallId).getState()); in testSingleOutgoingCallLocalDisconnect()
119 mInCallServiceFixtureX.getCall(ids.mCallId).getConnectTimeMillis()); in testSingleOutgoingCallLocalDisconnect()
121 mInCallServiceFixtureY.getCall(ids.mCallId).getConnectTimeMillis()); in testSingleOutgoingCallLocalDisconnect()
123 mInCallServiceFixtureX.getCall(ids.mCallId).getCreationTimeMillis()); in testSingleOutgoingCallLocalDisconnect()
[all …]
DCallExtrasTest.java80 IdPair ids = startAndMakeActiveIncomingCall("650-555-1212", in testCsPutExtras() local
91 assertTrue(mInCallServiceFixtureX.getCall(ids.mCallId).getExtras().containsKey( in testCsPutExtras()
93 assertTrue(mInCallServiceFixtureX.getCall(ids.mCallId).getExtras().containsKey( in testCsPutExtras()
107 IdPair ids = startAndMakeActiveIncomingCall("650-555-1212", in testCsPutBooleanExtra() local
116 assertTrue(mInCallServiceFixtureX.getCall(ids.mCallId).getExtras() in testCsPutBooleanExtra()
119 mInCallServiceFixtureX.getCall(ids.mCallId).getExtras().getBoolean(EXTRA_KEY_BOOL)); in testCsPutBooleanExtra()
132 IdPair ids = startAndMakeActiveIncomingCall("650-555-1212", in testCsPutIntExtra() local
141 mInCallServiceFixtureX.getCall(ids.mCallId).getExtras().containsKey(EXTRA_KEY_INT)); in testCsPutIntExtra()
143 mInCallServiceFixtureX.getCall(ids.mCallId).getExtras().getInt(EXTRA_KEY_INT)); in testCsPutIntExtra()
156 IdPair ids = startAndMakeActiveIncomingCall("650-555-1212", in testCsPutStringExtra() local
[all …]
DVideoCallTests.java74 IdPair ids = startAndMakeActiveIncomingCall("650-555-1212", in testAutoSpeakerphoneIncomingBidirectional() local
91 IdPair ids = startAndMakeActiveIncomingCall("650-555-1212", in testAutoSpeakerphoneIncomingReceiveOnly() local
106 IdPair ids = startAndMakeActiveOutgoingCall("650-555-1212", in testAutoSpeakerphoneOutgoingBidirectional() local
122 IdPair ids = startAndMakeActiveOutgoingCall("650-555-1212", in testAutoSpeakerphoneOutgoingTransmitOnly() local
138 IdPair ids = startAndMakeActiveOutgoingCall("650-555-1212", in testNoAutoSpeakerphoneOnOutgoing() local
153 IdPair ids = startAndMakeActiveIncomingCall("650-555-1212", in testNoAutoSpeakerphoneOnIncoming() local
167 IdPair ids = startIncomingPhoneCall("650-555-1212", mPhoneAccountA0.getAccountHandle(), in testIncomingVideoCallMissedCheckVideoHistory() local
172 mConnectionServiceFixtureA.sendSetDisconnected(ids.mConnectionId, DisconnectCause.MISSED); in testIncomingVideoCallMissedCheckVideoHistory()
184 IdPair ids = startIncomingPhoneCall("650-555-1212", mPhoneAccountA0.getAccountHandle(), in testIncomingVideoCallRejectedCheckVideoHistory() local
189 mConnectionServiceFixtureA.sendSetDisconnected(ids.mConnectionId, DisconnectCause.REJECTED); in testIncomingVideoCallRejectedCheckVideoHistory()
[all …]
DTelecomSystemTest.java642 IdPair ids = outgoingCallCreateConnectionComplete(startingNumConnections, startingNumCalls, in outgoingCallPhoneAccountSelected() local
645 connectionServiceFixture.sendSetDialing(ids.mConnectionId); in outgoingCallPhoneAccountSelected()
646 assertEquals(Call.STATE_DIALING, mInCallServiceFixtureX.getCall(ids.mCallId).getState()); in outgoingCallPhoneAccountSelected()
647 assertEquals(Call.STATE_DIALING, mInCallServiceFixtureY.getCall(ids.mCallId).getState()); in outgoingCallPhoneAccountSelected()
649 connectionServiceFixture.sendSetVideoState(ids.mConnectionId); in outgoingCallPhoneAccountSelected()
651 connectionServiceFixture.sendSetActive(ids.mConnectionId); in outgoingCallPhoneAccountSelected()
652 assertEquals(Call.STATE_ACTIVE, mInCallServiceFixtureX.getCall(ids.mCallId).getState()); in outgoingCallPhoneAccountSelected()
653 assertEquals(Call.STATE_ACTIVE, mInCallServiceFixtureY.getCall(ids.mCallId).getState()); in outgoingCallPhoneAccountSelected()
655 return ids; in outgoingCallPhoneAccountSelected()
1009 IdPair ids = startOutgoingPhoneCall(number, phoneAccountHandle, connectionServiceFixture, in startAndMakeActiveOutgoingCall() local
[all …]
/packages/apps/DocumentsUI/src/com/android/documentsui/sorting/
DSortingCursorWrapper.java50 String[] ids = new String[count]; in SortingCursorWrapper() local
71 ids[i] = getCursorString(mCursor, Document.COLUMN_DOCUMENT_ID); in SortingCursorWrapper()
95 binarySort(stringValues, isDirs, mPosition, ids, dimension.getSortDirection()); in SortingCursorWrapper()
99 binarySort(longValues, isDirs, mPosition, ids, dimension.getSortDirection()); in SortingCursorWrapper()
199 String[] ids, in binarySort() argument
206 final String pivotId = ids[start]; in binarySort()
239 compare = pivotId.compareTo(ids[mid]); in binarySort()
280 String[] ids, in binarySort() argument
287 final String pivotId = ids[start]; in binarySort()
323 compare = pivotId.compareTo(ids[mid]); in binarySort()
[all …]
/packages/apps/DeskClock/src/com/android/deskclock/data/
DCustomRingtoneDAO.java55 final Set<String> ids = getRingtoneIds(prefs); in addCustomRingtone() local
56 ids.add(String.valueOf(id)); in addCustomRingtone()
62 .putStringSet(RINGTONE_IDS, ids) in addCustomRingtone()
72 final Set<String> ids = getRingtoneIds(prefs); in removeCustomRingtone() local
73 ids.remove(String.valueOf(id)); in removeCustomRingtone()
78 if (ids.isEmpty()) { in removeCustomRingtone()
82 editor.putStringSet(RINGTONE_IDS, ids); in removeCustomRingtone()
91 final Set<String> ids = prefs.getStringSet(RINGTONE_IDS, Collections.<String>emptySet()); in getCustomRingtones() local
92 final List<CustomRingtone> ringtones = new ArrayList<>(ids.size()); in getCustomRingtones()
94 for (String id : ids) { in getCustomRingtones()
/packages/services/Mtp/src/com/android/mtp/
DMtpDocumentsService.java61 final int[] ids = intent.hasExtra(EXTRA_DEVICE_IDS) ? in onStartCommand() local
66 return updateForegroundState(ids, notifications) ? START_STICKY : START_NOT_STICKY; in onStartCommand()
76 @Nullable int[] ids, @Nullable Notification[] notifications) { in updateForegroundState()
78 final int size = ids != null ? ids.length : 0; in updateForegroundState()
80 Preconditions.checkArgument(ids != null); in updateForegroundState()
82 Preconditions.checkArgument(ids.length == notifications.length); in updateForegroundState()
89 startForeground(ids[i], notifications[i]); in updateForegroundState()
93 mNotificationManager.notify(ids[i], notifications[i]); in updateForegroundState()
95 openedNotification.add(ids[i]); in updateForegroundState()
/packages/apps/Camera2/src/com/android/camera/
DMultiToggleImageButton.java301 TypedArray ids = null; in overrideImageIds() local
303 ids = getResources().obtainTypedArray(resId); in overrideImageIds()
304 mImageIds = new int[ids.length()]; in overrideImageIds()
305 for (int i = 0; i < ids.length(); i++) { in overrideImageIds()
306 mImageIds[i] = ids.getResourceId(i, 0); in overrideImageIds()
309 if (ids != null) { in overrideImageIds()
310 ids.recycle(); in overrideImageIds()
323 TypedArray ids = null; in overrideContentDescriptions() local
325 ids = getResources().obtainTypedArray(resId); in overrideContentDescriptions()
326 mDescIds = new int[ids.length()]; in overrideContentDescriptions()
[all …]
/packages/apps/UniversalMediaPlayer/java/com/android/pump/provider/
DWikidata.java83 List<String> ids = new ArrayList<>(resultArray.length()); in getSearchResults() local
85 ids.add(resultArray.getJSONObject(i).getString("title")); in getSearchResults()
87 return ids; in getSearchResults()
94 private static void getContentForResults(List<String> ids) throws IOException { in getContentForResults() argument
109 getSparqlForResults(ids); in getContentForResults()
112 private static void getSparqlForResults(List<String> ids) throws IOException { in getSparqlForResults() argument
113 String uri = getSparqlUri(ids); in getSparqlForResults()
173 private static String getContentUri(List<String> ids) { in getContentUri() argument
185 ub.appendQueryParameter("ids", TextUtils.join("|", ids)); in getContentUri()
189 private static String getSparqlUri(List<String> ids) { in getSparqlUri() argument
[all …]
/packages/providers/BlockedNumberProvider/src/com/android/providers/blockednumber/
DBlockedNumberBackupAgent.java102 state.ids.add(dataInputStream.readInt()); in readState()
109 SortedSet<Integer> deletedBlockedNumbers = new TreeSet<>(state.ids); in runBackup()
112 if (state.ids.contains(blockedNumber.id)) { in runBackup()
119 state.ids.add(blockedNumber.id); in runBackup()
126 state.ids.remove(id); in runBackup()
193 for (int i : state.ids) { in writeNewState()
249 final SortedSet<Integer> ids; field in BlockedNumberBackupAgent.BackupState
251 BackupState(int version, SortedSet<Integer> ids) { in BackupState() argument
253 this.ids = ids; in BackupState()
/packages/apps/Camera2/src/com/android/camera/one/v2/
DCamera2OneCameraManagerImpl.java85 String[] ids = mCameraManager.getCameraIdList(); in hasCamera() local
86 return ids != null && ids.length > 0; in hasCamera()
101 String[] ids = mCameraManager.getCameraIdList(); in findFirstCamera() local
102 if(ids != null && ids.length > 0) { in findFirstCamera()
103 return CameraId.from(ids[0]); in findFirstCamera()
/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()
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/
DDocsSelectionHelperTest.java86 List<String> ids = new ArrayList<>(); in testReplaceSelection() local
87 ids.add("poodles"); in testReplaceSelection()
88 ids.add("hammy"); in testReplaceSelection()
89 mSelectionMgr.replaceSelection(ids); in testReplaceSelection()
148 public boolean setItemsSelected(Iterable<String> ids, boolean selected) { in setItemsSelected() argument
149 for (String id : ids) { in setItemsSelected()
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DDownloadReceiver.java163 final long[] ids = intent.getLongArrayExtra( in handleNotificationBroadcast() local
165 sendNotificationClickedIntent(context, ids); in handleNotificationBroadcast()
224 private void sendNotificationClickedIntent(Context context, long[] ids) { in sendNotificationClickedIntent() argument
230 Downloads.Impl.ALL_DOWNLOADS_CONTENT_URI, ids[0]); in sendNotificationClickedIntent()
238 Log.w(TAG, "Missing details for download " + ids[0]); in sendNotificationClickedIntent()
254 appIntent.putExtra(DownloadManager.EXTRA_NOTIFICATION_CLICK_DOWNLOAD_IDS, ids); in sendNotificationClickedIntent()
264 appIntent.putExtra(DownloadManager.EXTRA_NOTIFICATION_CLICK_DOWNLOAD_IDS, ids); in sendNotificationClickedIntent()
266 if (ids.length == 1) { in sendNotificationClickedIntent()
/packages/apps/Dialer/java/com/android/dialer/calllog/
DClearMissedCalls.java93 public ListenableFuture<Void> clearBySystemCallLogId(Collection<Long> ids) { in clearBySystemCallLogId() argument
94 ListenableFuture<Void> markReadFuture = markRead(ids); in clearBySystemCallLogId()
98 for (long id : ids) { in clearBySystemCallLogId()
124 private ListenableFuture<Void> markRead(Collection<Long> ids) {
148 if (!ids.isEmpty()) {
149 selectionBuilder.and(Selection.column(Calls._ID).in(toStrings(ids)));
/packages/apps/Dialer/java/com/android/dialer/calllog/datasources/phonelookup/
DPhoneLookupDataSource.java373 Set<Long> ids = idsByNumber.get(dialerPhoneNumber); in collectIdAndNumberFromAnnotatedCallLogAndPendingInserts() local
374 if (ids == null) { in collectIdAndNumberFromAnnotatedCallLogAndPendingInserts()
375 ids = new ArraySet<>(); in collectIdAndNumberFromAnnotatedCallLogAndPendingInserts()
376 idsByNumber.put(dialerPhoneNumber, ids); in collectIdAndNumberFromAnnotatedCallLogAndPendingInserts()
378 ids.add(id); in collectIdAndNumberFromAnnotatedCallLogAndPendingInserts()
414 Set<Long> ids = idsByNumber.get(dialerPhoneNumber); in collectIdAndNumberFromAnnotatedCallLogAndPendingInserts() local
415 if (ids == null) { in collectIdAndNumberFromAnnotatedCallLogAndPendingInserts()
416 ids = new ArraySet<>(); in collectIdAndNumberFromAnnotatedCallLogAndPendingInserts()
417 idsByNumber.put(dialerPhoneNumber, ids); in collectIdAndNumberFromAnnotatedCallLogAndPendingInserts()
419 ids.add(id); in collectIdAndNumberFromAnnotatedCallLogAndPendingInserts()
/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/Car/Settings/tests/robotests/src/com/android/car/settings/testutils/
DShadowInputMethodManager.java110 private static String createInputMethodIdString(String... ids) { in createInputMethodIdString() argument
111 int size = ids == null ? 0 : ids.length; in createInputMethodIdString()
114 return ids[0]; in createInputMethodIdString()
119 builder.append(ids[i]); in createInputMethodIdString()
/packages/apps/Messaging/src/com/android/messaging/datamodel/action/
DSyncMessageBatch.java117 final String[] ids = new String[messagesToDelete.size()]; in messageListToIds() local
118 for (int i = 0; i < ids.length; i++) { in messageListToIds()
119 ids[i] = Long.toString(messagesToDelete.get(i).getLocalId()); in messageListToIds()
121 return ids; in messageListToIds()
363 final String column, final String[] ids) { in batchDelete() argument
365 final int totalIds = ids.length; in batchDelete()
374 final String[] batchSelectionArgs = Arrays.copyOfRange(ids, start, end); in batchDelete()
/packages/apps/Contacts/src/com/android/contacts/group/
DGroupMembersFragment.java363 private void sendToGroup(long[] ids, String sendScheme, String title) { in sendToGroup() argument
364 if (ids == null || ids.length == 0) return; in sendToGroup()
371 final String sIds = GroupUtil.convertArrayToString(ids); in sendToGroup()
423 startSendToSelectionPickerActivity(ids, defaultSelectionArray, sendScheme, title); in sendToGroup()
428 if (itemList.size() == 0 || contactMap.size() < ids.length) { in sendToGroup()
443 private void startSendToSelectionPickerActivity(long[] ids, long[] defaultSelection, in startSendToSelectionPickerActivity() argument
445 startActivity(GroupUtil.createSendToSelectionPickerIntent(getContext(), ids, in startSendToSelectionPickerActivity() local
462 final long[] ids = mActionBarAdapter.isSelectionMode() in onOptionsItemSelected() local
465 sendToGroup(ids, ContactsUtils.SCHEME_MAILTO, in onOptionsItemSelected()
468 final long[] ids = mActionBarAdapter.isSelectionMode() in onOptionsItemSelected() local
[all …]
/packages/apps/Dialer/java/com/android/dialer/speeddial/database/
DSpeedDialEntryDatabaseHelper.java259 public void delete(ImmutableList<Long> ids) { in delete() argument
260 if (ids.isEmpty()) { in delete()
265 delete(db, ids); in delete()
269 private void delete(SQLiteDatabase writeableDatabase, ImmutableList<Long> ids) { in delete() argument
271 for (Long id : ids) { in delete()
279 if (count != ids.size()) { in delete()
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/
DTestEnv.java213 List<String> ids = new ArrayList<>(1); in selectDocument() local
214 ids.add(ModelId.build(info.userId, info.authority, info.documentId)); in selectDocument()
215 selectionMgr.setItemsSelected(ids, true); in selectDocument()
219 List<String> ids = new ArrayList<>(count); in selectMultipleFiles() local
222 ids.add(ModelId.build(info.userId, info.authority, info.documentId)); in selectMultipleFiles()
224 selectionMgr.setItemsSelected(ids, true); in selectMultipleFiles()
/packages/apps/Dialer/java/com/android/dialer/calllog/datasources/systemcalllog/
DSystemCallLogDataSource.java454 ArraySet<Long> ids = new ArraySet<>(); in getAnnotatedCallLogIds() local
468 return ids; in getAnnotatedCallLogIds()
474 ids.add(cursor.getLong(idColumn)); in getAnnotatedCallLogIds()
478 return ids; in getAnnotatedCallLogIds()
483 ArraySet<Long> ids = new ArraySet<>(); in getIdsFromSystemCallLogThatMatch() local
510 return ids; in getIdsFromSystemCallLogThatMatch()
516 ids.add(cursor.getLong(idColumn)); in getIdsFromSystemCallLogThatMatch()
521 return ids; in getIdsFromSystemCallLogThatMatch()

12345