Home
last modified time | relevance | path

Searched refs:isPresent (Results 1 – 25 of 98) sorted by relevance

1234

/packages/apps/Dialer/java/com/android/dialer/smartdial/map/
DCompositeSmartDialMap.java64 return extraMap.isPresent() && extraMap.get().isValidDialpadCharacter(ch); in isValidDialpadCharacter()
79 return extraMap.isPresent() && extraMap.get().isValidDialpadAlphabeticChar(ch); in isValidDialpadAlphabeticChar()
91 return extraMap.isPresent() && extraMap.get().isValidDialpadNumericChar(ch); in isValidDialpadNumericChar()
104 if (dialpadIndex.isPresent()) { in getDialpadIndex()
109 if (extraMap.isPresent()) { in getDialpadIndex()
113 return dialpadIndex.isPresent() ? dialpadIndex.get() : -1; in getDialpadIndex()
126 if (dialpadNumericChar.isPresent()) { in getDialpadNumericCharacter()
131 if (extraMap.isPresent()) { in getDialpadNumericCharacter()
135 return dialpadNumericChar.isPresent() ? dialpadNumericChar.get() : ch; in getDialpadNumericCharacter()
146 if (normalizedChar.isPresent()) { in normalizeCharacter()
[all …]
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DDtmfLocalTonePlayerTest.java65 when(mToneProxy.isPresent()).thenReturn(true); in testSupportedStart()
75 when(mToneProxy.isPresent()).thenReturn(true); in testUnsupportedStart()
85 when(mToneProxy.isPresent()).thenReturn(false); in testPlayToneWhenUninitialized()
96 when(mToneProxy.isPresent()).thenReturn(true); in testPlayToneWhenInitialized()
107 when(mToneProxy.isPresent()).thenReturn(false); in testStopToneWhenUninitialized()
118 when(mToneProxy.isPresent()).thenReturn(true); in testStopToneWhenInitialized()
129 when(mToneProxy.isPresent()).thenReturn(true); in testProperTeardown()
/packages/apps/Dialer/java/com/android/dialer/preferredsim/impl/
DPreferredAccountWorkerImpl.java106 if (dataId.isPresent()) { in doInBackground()
108 if (preferred.isPresent()) { in doInBackground()
125 if (suggestion.isPresent() && suggestion.get().shouldAutoSelect) { in doInBackground()
132 if (suggestion.isPresent()) { in doInBackground()
135 if (dataId.isPresent()) { in doInBackground()
220 if (hint.isPresent()) { in createDialogOptionsBuilder()
226 if (activeCallLabel.isPresent()) { in createDialogOptionsBuilder()
273 if (accountType.isPresent() && !validAccountTypes.contains(accountType.get())) { in getDataId()
294 if (!rawContactId.isPresent()) { in getAccountType()
423 if (!activeCall.phoneAccountHandle().isPresent()) { in getActiveCallLabel()
/packages/apps/Camera2/src/com/android/camera/one/
DOneCameraModule.java50 if (!manager.isPresent()) { in provideOneCameraOpener()
53 if (!manager.isPresent()) { in provideOneCameraOpener()
69 if (camera2HwManager.isPresent()) { in provideOneCameraManager()
74 if (legacyHwManager.isPresent()) { in provideOneCameraManager()
/packages/services/Car/tests/obd2_test/src/com/android/car/obd2/test/
DObd2CommandTest.java73 assertTrue("live frame contains a response", receivedResponse.isPresent()); in checkLiveFrameIntCommand()
101 assertTrue("live frame contains a response", receivedResponse.isPresent()); in checkLiveFrameFloatCommand()
129 assertTrue("freeze frame contains a response", receivedResponse.isPresent()); in checkFreezeFrameIntCommand()
157 assertTrue("freeze frame contains a response", receivedResponse.isPresent()); in checkFreezeFrameFloatCommand()
/packages/apps/Dialer/java/com/android/voicemail/impl/
DDialerVvmConfigManager.java57 if (!(matcher.gid1().isPresent() && other.matcher.gid1().isPresent())) { in compareTo()
58 if (matcher.gid1().isPresent()) { in compareTo()
60 } else if (other.matcher.gid1().isPresent()) { in compareTo()
/packages/services/Car/service/src/com/android/car/storagemonitoring/
DUfsWearInformationProvider.java104 if (!lifetimeA.isPresent() || !lifetimeB.isPresent() || !eol.isPresent()) { in load()
/packages/apps/TV/src/com/android/tv/
DTvApplication.java186 if (mOptionalBuiltInTunerManager.isPresent()) { in start()
206 if (mOptionalBuiltInTunerManager.isPresent()) { in start()
237 if (mOptionalBuiltInTunerManager.isPresent()) { in checkTunerServiceOnFirstLaunch()
494 && optionalEmbeddedTunerInputId.isPresent() in handleInputCountChanged()
523 && optionalEmbeddedTunerInputId.isPresent() in handleInputCountChanged()
/packages/services/Telecomm/src/com/android/server/telecom/
DDtmfLocalTonePlayer.java63 public boolean isPresent() { in isPresent() method in DtmfLocalTonePlayer.ToneGeneratorProxy
102 if (!mToneGeneratorProxy.isPresent()) { in handleMessage()
113 if (mToneGeneratorProxy.isPresent()) { in handleMessage()
/packages/services/Car/vehicle-hal-support-lib/src/com/android/car/vehiclehal/
DDiagnosticJson.java70 if (mValue.isPresent()) throw new IllegalStateException("WriteOnce already stored"); in write()
75 if (!mValue.isPresent()) throw new IllegalStateException("WriteOnce never stored"); in get()
80 return mValue.isPresent() ? mValue.get() : defaultValue; in get()
/packages/providers/MediaProvider/tests/src/com/android/providers/media/scan/
DModernMediaScannerTest.java158 assertFalse(parseOptionalDateTaken(exif, 0L).isPresent()); in testParseDateTaken_Gps()
161 assertFalse(parseOptionalDateTaken(exif, 0L).isPresent()); in testParseDateTaken_Gps()
189 assertFalse(parseOptionalDateTaken(exif, 1453972654000L - 86400000L).isPresent()); in testParseDateTaken_File()
190 assertFalse(parseOptionalDateTaken(exif, 1453972654000L + 86400000L).isPresent()); in testParseDateTaken_File()
200 assertFalse(parseOptionalDateTaken(exif, 0L).isPresent()); in testParseDateTaken_Hopeless()
/packages/apps/DocumentsUI/src/com/android/documentsui/
DDrawerController.java43 public abstract boolean isPresent(); in isPresent() method in DrawerController
175 public boolean isPresent() { in isPresent() method in DrawerController.RuntimeDrawerController
224 public boolean isPresent() { in isPresent() method in DrawerController.DummyDrawerController
/packages/apps/Camera2/src/com/android/camera/util/
DExifUtil.java63 if (image.isPresent()) { in populateExif()
66 if (captureResult.isPresent()) { in populateExif()
69 if (location.isPresent()) { in populateExif()
/packages/apps/Dialer/java/com/android/dialer/assisteddialing/
DAssistedDialingMediatorImpl.java71 if (!userHomeCountryCode.isPresent() || !userRoamingCountryCode.isPresent()) { in attemptAssistedDial()
/packages/apps/Camera2/src/com/android/camera/data/
DPhotoItem.java101 if (optionalDetails.isPresent()) { in getMediaDetails()
120 if (optionalView.isPresent()) { in getView()
201 if (mSessionPlaceholderBitmap.isPresent()) { in renderScreenSize()
DSessionItem.java97 if (optionalView.isPresent()) { in getView()
105 if (placeholder.isPresent()) { in getView()
/packages/apps/Settings/src/com/android/settings/dream/
DCurrentDreamPreferenceController.java62 if (!info.isPresent() || info.get().settingsComponentName == null) { in setGearClickListenerForPreference()
71 if (!info.isPresent()) return; in launchScreenSaverSettings()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/dream/
DCurrentDreamPreferenceController.java62 if (!info.isPresent() || info.get().settingsComponentName == null) { in setGearClickListenerForPreference()
71 if (!info.isPresent()) return; in launchScreenSaverSettings()
/packages/apps/Camera2/src/com/android/camera/captureintent/stateful/
DStateMachineImpl.java63 while (nextState.isPresent()) { in jumpToState()
109 if (newState.isPresent()) { in processEvent()
/packages/apps/Nfc/nci/src/com/android/nfc/dhimpl/
DNativeNfcTag.java78 private boolean isPresent = true; field in NativeNfcTag.PresenceCheckWatchdog
116 while (isPresent && !isStopped) { in run()
123 isPresent = doPresenceCheck(); in run()
255 public synchronized boolean isPresent() { in isPresent() method in NativeNfcTag
/packages/apps/Launcher3/go/quickstep/src/com/android/quickstep/
DTaskActionController.java55 if (!viewHolder.getTask().isPresent()) { in launchTaskFromView()
90 if (!viewHolder.getTask().isPresent()) { in removeTask()
/packages/services/Telephony/src/com/android/phone/
DCallNotifier.java728 boolean isPresent = signalInfoRec.isPresent; in onSignalInfo()
729 if (DBG) log("onSignalInfo: isPresent=" + isPresent); in onSignalInfo()
730 if (isPresent) {// if tone is valid in onSignalInfo()
/packages/services/Car/obd2-lib/src/com/android/car/obd2/
DObd2LiveFrameGenerator.java83 if (result.isPresent()) { in generate()
104 if (result.isPresent()) { in generate()
DObd2FreezeFrameGenerator.java135 if (result.isPresent()) { in generate()
157 if (result.isPresent()) { in generate()
/packages/apps/Dialer/java/com/android/dialer/precall/impl/
DAssistedDialAction.java67 if (transformedNumber.isPresent()) { in runWithoutUi()
101 if (!subscriptionInfo.isPresent()) { in getAssistedDialingTelephonyManager()

1234