Home
last modified time | relevance | path

Searched refs:checkArgument (Results 1 – 25 of 183) sorted by relevance

12345678

/packages/apps/Dialer/java/com/android/dialer/voicemail/listui/
DNewVoicemailMediaPlayerView.java167 Assert.checkArgument(uri.equals(viewHolder.getViewHolderVoicemailUri())); in bindValuesFromAdapterOfExpandedViewHolderMediaPlayerView()
205 Assert.checkArgument( in bindValuesFromAdapterOfExpandedViewHolderMediaPlayerView()
224 Assert.checkArgument(viewHolder.getViewHolderVoicemailUri().equals(voicemailUri)); in bindValuesFromAdapterOfExpandedViewHolderMediaPlayerView()
304 Assert.checkArgument(playButton.getVisibility() == GONE);
305 Assert.checkArgument(mediaPlayer != null);
306 Assert.checkArgument(
312 Assert.checkArgument(
405 Assert.checkArgument(mediaPlayer != null, "media player should not have been null"); in prepareMediaPlayer()
530 Assert.checkArgument(
569 Assert.checkArgument( in updateSeekBarDurationAndShowPlayButton()
[all …]
DNewVoicemailAdapter.java175 Assert.checkArgument( in updateHeaderPositions()
250 Assert.checkArgument( in onBindViewHolder()
338 Assert.checkArgument( in onBindViewHolder()
344 Assert.checkArgument( in onBindViewHolder()
388 Assert.checkArgument(position == 0, "position is not 0"); in onBindAlertViewHolder()
389 Assert.checkArgument( in onBindAlertViewHolder()
396 Assert.checkArgument(viewType == RowType.VOICEMAIL_ALERT, "Invalid row type: " + viewType); in onBindAlertViewHolder()
397 Assert.checkArgument( in onBindAlertViewHolder()
535 Assert.checkArgument( in expandViewHolderFirstTimeAndCollapseAllOtherVisibleViewHolders()
543 Assert.checkArgument(!mediaPlayer.isPlaying()); in expandViewHolderFirstTimeAndCollapseAllOtherVisibleViewHolders()
[all …]
DNewVoicemailViewHolder.java171 Assert.checkArgument( in bindViewHolderValuesFromAdapter()
180 Assert.checkArgument( in bindViewHolderValuesFromAdapter()
278 Assert.checkArgument( in expandAndBindViewHolderAndMediaPlayerViewWithAdapterValues()
280 Assert.checkArgument( in expandAndBindViewHolderAndMediaPlayerViewWithAdapterValues()
356 Assert.checkArgument(integer > 0, "marking voicemail read was not successful"); in onVoicemailMarkedAsRead()
380 Assert.checkArgument( in updateMediaPlayerViewWithPlayingState()
389 Assert.checkArgument( in updateMediaPlayerViewWithPlayingState()
394 Assert.checkArgument( in updateMediaPlayerViewWithPlayingState()
411 Assert.checkArgument(viewHolderVoicemailUri.equals(uri)); in setPausedStateOfMediaPlayerView()
412 Assert.checkArgument(mediaPlayerView.getVoicemailUri().equals(uri)); in setPausedStateOfMediaPlayerView()
[all …]
DNewVoicemailMediaPlayer.java53 Assert.checkArgument(uri != null, "Media player cannot play a null uri"); in prepareMediaPlayerAndPlayVoicemailWhenReady()
115 Assert.checkArgument( in start()
138 Assert.checkArgument( in pauseMediaPlayer()
141 Assert.checkArgument( in pauseMediaPlayer()
215 Assert.checkArgument(mediaPlayer != null); in getDuration()
/packages/services/Car/user/car-user-lib/src/android/car/userlib/
DUserHalHelper.java18 import static com.android.internal.util.Preconditions.checkArgument;
123 checkArgument(user != null, "user cannot be null"); in convertFlags()
152 Preconditions.checkArgument(um != null, "UserManager cannot be null"); in getFlags()
154 Preconditions.checkArgument(user != null, "No user with id %d", userId); in getFlags()
260 checkArgument(usersInfo.numberUsers == usersInfo.existingUsers.size(), in addUsersInfo()
336 checkArgument(prop.prop == USER_IDENTIFICATION_ASSOCIATION_PROPERTY, in toUserIdentificationResponse()
342 checkArgument(requestId > 0, "invalid request id (%d) on %s", requestId, prop); in toUserIdentificationResponse()
345 checkArgument(numberAssociations >= 1, "invalid number of items on %s", prop); in toUserIdentificationResponse()
348 checkArgument(numberItems == numberAssociations * 2, "number of items mismatch on %s", in toUserIdentificationResponse()
362 checkArgument(isValidUserIdentificationAssociationType(association.type), in toUserIdentificationResponse()
[all …]
DInitialUserSetter.java159 Preconditions.checkArgument( in Builder()
172 Preconditions.checkArgument(mType == TYPE_SWITCH, "invalid builder type: " + mType); in setSwitchUserId()
193 Preconditions.checkArgument(mType == TYPE_CREATE, "invalid builder type: " + mType); in setNewUserName()
206 Preconditions.checkArgument(mType == TYPE_CREATE, "invalid builder type: " + mType); in setNewUserFlags()
267 Preconditions.checkArgument(info != null, "info cannot be null"); in set()
399 Preconditions.checkArgument(user != null, "user cannot be null"); in replaceGuestIfNeeded()
/packages/apps/Dialer/java/com/android/dialer/phonelookup/database/
DPhoneLookupHistoryContentProvider.java134 Assert.checkArgument(values != null); in insert()
140 Assert.checkArgument( in insert()
149 Assert.checkArgument( in insert()
189 Assert.checkArgument(selection == null, "Do not specify selection when deleting by number"); in delete()
190 Assert.checkArgument( in delete()
193 Assert.checkArgument( in delete()
228 Assert.checkArgument(values != null); in update()
244 Assert.checkArgument( in update()
247 Assert.checkArgument(selection == null, "Do not specify selection when updating by ID"); in update()
248 Assert.checkArgument( in update()
[all …]
/packages/apps/Dialer/java/com/android/voicemail/impl/
DOmtpVvmCarrierConfigHelper.java203 Assert.checkArgument(isValid()); in getString()
222 Assert.checkArgument(isValid()); in getCarrierVvmPackageNames()
258 Assert.checkArgument(isValid()); in isCellularDataRequired()
263 Assert.checkArgument(isValid()); in isPrefetchEnabled()
268 Assert.checkArgument(isValid()); in getApplicationPort()
274 Assert.checkArgument(isValid()); in getDestinationNumber()
280 Assert.checkArgument(isValid()); in getSslPort()
296 Assert.checkArgument(isValid()); in getDisabledCapabilities()
328 Assert.checkArgument(isValid()); in getClientPrefix()
347 Assert.checkArgument(isValid()); in isLegacyModeEnabled()
[all …]
/packages/apps/Dialer/java/com/android/dialer/calllog/datasources/
DCallLogMutations.java37 Assert.checkArgument(!inserts.containsKey(id), "Can't insert row already scheduled for insert"); in insert()
38 Assert.checkArgument(!updates.containsKey(id), "Can't insert row scheduled for update"); in insert()
39 Assert.checkArgument(!deletes.contains(id), "Can't insert row scheduled for delete"); in insert()
55 Assert.checkArgument(!inserts.containsKey(id), "Can't update row scheduled for insert"); in update()
56 Assert.checkArgument(!deletes.contains(id), "Can't delete row scheduled for delete"); in update()
71 Assert.checkArgument(!inserts.containsKey(id), "Can't delete row scheduled for insert"); in delete()
72 Assert.checkArgument(!updates.containsKey(id), "Can't delete row scheduled for update"); in delete()
73 Assert.checkArgument(!deletes.contains(id), "Can't delete row already scheduled for delete"); in delete()
/packages/apps/DocumentsUI/src/com/android/documentsui/inspector/
DInspectorController.java18 import static androidx.core.util.Preconditions.checkArgument;
86 checkArgument(context != null); in InspectorController()
87 checkArgument(loader != null); in InspectorController()
88 checkArgument(pm != null); in InspectorController()
89 checkArgument(providers != null); in InspectorController()
90 checkArgument(header != null); in InspectorController()
91 checkArgument(details != null); in InspectorController()
92 checkArgument(media != null); in InspectorController()
93 checkArgument(showProvider != null); in InspectorController()
94 checkArgument(appDefaults != null); in InspectorController()
[all …]
DRuntimeDataSupplier.java18 import static androidx.core.util.Preconditions.checkArgument;
57 checkArgument(context != null); in RuntimeDataSupplier()
58 checkArgument(loaderMgr != null); in RuntimeDataSupplier()
69 checkArgument(uri.getScheme().equals("content")); in loadDocInfo()
94 checkArgument(directory.isDirectory()); in loadDirCount()
153 checkArgument(id <= Integer.MAX_VALUE); in getNextLoaderId()
171 checkArgument(context != null); in Callbacks()
172 checkArgument(uri != null); in Callbacks()
173 checkArgument(userId != null); in Callbacks()
174 checkArgument(callback != null); in Callbacks()
DHeaderTextSelector.java18 import static androidx.core.util.Preconditions.checkArgument;
35 checkArgument(text != null); in HeaderTextSelector()
36 checkArgument(selector != null); in HeaderTextSelector()
/packages/apps/Dialer/java/com/android/dialer/theme/base/impl/
DAospThemeImpl.java124 Assert.checkArgument(colorIcon != -1); in getColorIcon()
130 Assert.checkArgument(colorIconSecondary != -1); in getColorIconSecondary()
136 Assert.checkArgument(colorPrimary != -1); in getColorPrimary()
142 Assert.checkArgument(colorPrimaryDark != -1); in getColorPrimaryDark()
148 Assert.checkArgument(colorAccent != -1); in getColorAccent()
154 Assert.checkArgument(textColorSecondary != -1); in getTextColorSecondary()
160 Assert.checkArgument(textColorPrimary != -1); in getTextColorPrimary()
166 Assert.checkArgument(colorTextOnUnthemedDarkBackground != -1); in getColorTextOnUnthemedDarkBackground()
172 Assert.checkArgument(colorIconOnUnthemedDarkBackground != -1); in getColorIconOnUnthemedDarkBackground()
/packages/apps/Dialer/java/com/android/dialer/calllog/database/
DAnnotatedCallLogContentProvider.java118 Assert.checkArgument( in query()
147 Assert.checkArgument(values != null); in insert()
155 Assert.checkArgument( in insert()
161 Assert.checkArgument( in insert()
199 Assert.checkArgument(selection == null, "Do not specify selection when deleting by ID"); in delete()
200 Assert.checkArgument( in delete()
203 Assert.checkArgument(id != -1, "error parsing id from uri %s", uri); in delete()
229 Assert.checkArgument(values != null); in update()
247 Assert.checkArgument( in update()
249 Assert.checkArgument(selection == null, "Do not specify selection when updating by ID"); in update()
[all …]
/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/
DInputHandlers.java18 import static androidx.core.util.Preconditions.checkArgument;
50 checkArgument(actions != null); in InputHandlers()
51 checkArgument(selectionHelper != null); in InputHandlers()
52 checkArgument(selectionPredicate != null); in InputHandlers()
53 checkArgument(focusHandler != null); in InputHandlers()
54 checkArgument(recView != null); in InputHandlers()
DDocsSelectionPredicate.java18 import static androidx.core.util.Preconditions.checkArgument;
48 checkArgument(config != null); in DocsSelectionPredicate()
49 checkArgument(state != null); in DocsSelectionPredicate()
50 checkArgument(model != null); in DocsSelectionPredicate()
51 checkArgument(recView != null); in DocsSelectionPredicate()
/packages/services/Car/service/src/com/android/car/audio/
DCarAudioZonesHelper.java234 Preconditions.checkArgument(mHasPrimaryZone, "Requires one primary zone"); in parseAudioZones()
243 Preconditions.checkArgument(!mHasPrimaryZone, "Only one primary zone is allowed"); in parseAudioZone()
267 Preconditions.checkArgument(audioZoneIdString == null, in getZoneId()
283 Preconditions.checkArgument(zoneId == CarAudioManager.PRIMARY_AUDIO_ZONE, in getZoneId()
287 Preconditions.checkArgument(zoneId != CarAudioManager.PRIMARY_AUDIO_ZONE, in getZoneId()
298 Preconditions.checkArgument(occupantZoneIdString == null, in parseOccupantZoneId()
336 Preconditions.checkArgument(info != null, in parseInputAudioDevices()
349 Preconditions.checkArgument(!audioDeviceAddress.isEmpty(), in validateInputAudioDeviceAddress()
DCarAudioDeviceInfo.java213 Preconditions.checkArgument(audioGain.maxValue() >= audioGain.minValue()); in checkAudioGainConfiguration()
214 Preconditions.checkArgument((audioGain.defaultValue() >= audioGain.minValue()) in checkAudioGainConfiguration()
216 Preconditions.checkArgument( in checkAudioGainConfiguration()
218 Preconditions.checkArgument( in checkAudioGainConfiguration()
/packages/apps/Dialer/java/com/android/dialer/calldetails/
DOldCallDetailsActivity.java66 Assert.checkArgument(intent.hasExtra(EXTRA_CONTACT)); in handleIntent()
67 Assert.checkArgument(intent.hasExtra(EXTRA_CALL_DETAILS_ENTRIES)); in handleIntent()
68 Assert.checkArgument(intent.hasExtra(EXTRA_CAN_REPORT_CALLER_ID)); in handleIntent()
69 Assert.checkArgument(intent.hasExtra(EXTRA_CAN_SUPPORT_ASSISTED_DIALING)); in handleIntent()
DCallDetailsActivity.java73 Assert.checkArgument(intent.hasExtra(EXTRA_COALESCED_CALL_LOG_IDS)); in handleIntent()
74 Assert.checkArgument(intent.hasExtra(EXTRA_HEADER_INFO)); in handleIntent()
75 Assert.checkArgument(intent.hasExtra(EXTRA_CAN_REPORT_CALLER_ID)); in handleIntent()
76 Assert.checkArgument(intent.hasExtra(EXTRA_CAN_SUPPORT_ASSISTED_DIALING)); in handleIntent()
/packages/apps/Tag/src/com/android/apps/tag/record/
DTextRecord.java81 Preconditions.checkArgument(record.getTnf() == NdefRecord.TNF_WELL_KNOWN); in parse()
82 Preconditions.checkArgument(Arrays.equals(record.getType(), NdefRecord.RTD_TEXT)); in parse()
86 Preconditions.checkArgument(payload.length > 0); in parse()
104 Preconditions.checkArgument(payload.length - languageCodeLength - 1 >= 0); in parse()
/packages/apps/Dialer/java/com/android/dialer/speeddial/loader/
DSpeedDialUiItemMutator.java136 Assert.checkArgument(speedDialUiItem.isStarred()); in removeSpeedDialUiItemInternal()
148 Assert.checkArgument(speedDialUiItem.isStarred()); in removeStarredSpeedDialUiItem()
160 Assert.checkArgument(entryToDelete == null); in removeStarredSpeedDialUiItem()
209 Assert.checkArgument(cursor.moveToFirst(), "Cursor should never be empty"); in insertNewContactEntry()
255 Assert.checkArgument( in loadSpeedDialUiItemsInternal()
350 Assert.checkArgument( in speedDialUiItemsWithUpdatedIds()
458 Assert.checkArgument( in getSpeedDialUiItemsFromEntries()
655 Assert.checkArgument(item.isStarred()); in insertDuoChannelsToStarredContact()
/packages/apps/Dialer/java/com/android/dialer/common/backoff/
DExponentialBackoff.java54 Assert.checkArgument(initialDelayMillis > 0); in ExponentialBackoff()
55 Assert.checkArgument(baseMultiplier > 0); in ExponentialBackoff()
56 Assert.checkArgument(maximumBackoffs > 0); in ExponentialBackoff()
/packages/services/Car/tests/BugReportApp/src/com/android/car/bugreport/
DFileUtils.java47 Preconditions.checkArgument(context.getUser().isSystem(), in getPendingDir()
69 Preconditions.checkArgument(!context.getUser().isSystem(), in getTempDir()
98 Preconditions.checkArgument(bug.getTitle().startsWith("["), in extractLookupCode()
/packages/apps/DocumentsUI/src/com/android/documentsui/sidebar/
DUserItemsCombiner.java21 import static androidx.core.util.Preconditions.checkArgument;
72 checkArgument(mRootList != null, "RootListForCurrentUser is not set"); in createPresentableList()
73 checkArgument(mRootListOtherUser != null, "setRootListForOtherUser is not set"); in createPresentableList()

12345678