/packages/apps/Dialer/java/com/android/dialer/smartdial/map/ |
D | CompositeSmartDialMap.java | 64 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/modules/Uwb/service/java/com/android/server/uwb/secure/csml/ |
D | ConfigurationParams.java | 237 if (mResultReportConfig.isPresent()) { in toBytes() 306 private static boolean isPresent(TlvDecoderBuffer tlvDecoderBuffer, int tagType) { in isPresent() method in ConfigurationParams 331 if (isPresent(configParamsTlv, FIRA_PHY_VERSION)) { in fromBytes() 339 if (isPresent(configParamsTlv, FIRA_MAC_VERSION)) { in fromBytes() 347 if (isPresent(configParamsTlv, DEVICE_ROLES)) { in fromBytes() 350 if (isPresent(configParamsTlv, RANGING_METHOD)) { in fromBytes() 354 if (isPresent(configParamsTlv, STS_CONFIG)) { in fromBytes() 357 if (isPresent(configParamsTlv, MULTI_NODE_MODE)) { in fromBytes() 361 if (isPresent(configParamsTlv, RANGING_TIME_STRUCT)) { in fromBytes() 364 if (isPresent(configParamsTlv, SCHEDULED_MODE)) { in fromBytes() [all …]
|
D | UwbCapability.java | 193 if (mDeviceRoles.isPresent()) { in toBytes() 209 if (mRangingMethod.isPresent()) { in toBytes() 212 if (mStsConfig.isPresent()) { in toBytes() 227 if (mMultiNodeMode.isPresent()) { in toBytes() 257 if (mChannels.isPresent()) { in toBytes() 285 if (mRframeConfig.isPresent()) { in toBytes() 301 if (mCcConstraintLength.isPresent()) { in toBytes() 304 if (mBprfParameterSet.isPresent()) { in toBytes() 308 if (mHprfParameterSet.isPresent()) { in toBytes() 312 if (mAoaSupport.isPresent()) { in toBytes() [all …]
|
D | SessionData.java | 92 private static boolean isPresent(TlvDecoderBuffer tlvDecoderBuffer, int tagType) { in isPresent() method in SessionData 111 if (isPresent(tlvs, UWB_SESSION_DATA_VERSION_HEADER)) { in fromBytes() 115 if (isPresent(tlvs, UWB_SESSION_ID)) { in fromBytes() 119 if (isPresent(tlvs, UWB_SUB_SESSION_ID)) { in fromBytes() 123 if (isPresent(tlvs, CONFIGURATION_PARAMS)) { in fromBytes() 128 if (isPresent(tlvs, SECURE_RANGING_INFO_TAG)) { in fromBytes()
|
D | ControleeInfo.java | 68 private static boolean isPresent(TlvDecoderBuffer tlvDecoderBuffer, int tagType) { in isPresent() method in ControleeInfo 92 if (isPresent(tlvs, UWB_CONTROLEE_INFO_VERSION_HEADER)) { in fromBytes() 96 if (isPresent(tlvs, UWB_CAPABILITY)) { in fromBytes()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/common/ |
D | WebAddressesTest.java | 235 assertFalse(output.isPresent()); in testTopPrivateDomainAndPath_forInvalidUri_returnsEmptyOptional() 241 assertFalse(output.isPresent()); in testOriginAndScheme_forInvalidUri_returnsEmptyOptional() 248 assertFalse(output.isPresent()); in testTopPrivateDomainAndScheme_invalidTldAndHttpScheme_returnsEmptyOptional() 255 assertFalse(output.isPresent()); in testTopPrivateDomainAndScheme_invalidLocalhostScheme_returnsEmptyOptional() 261 Uri.parse(String.format("%s://%s", HTTPS_SCHEME, "localyhost"))).isPresent()); in testTopPrivateDomainAndScheme_invalidLocalhost_returnsEmptyOptional() 263 Uri.parse(String.format("%s://%s", HTTPS_SCHEME, "localhosts/path"))).isPresent()); in testTopPrivateDomainAndScheme_invalidLocalhost_returnsEmptyOptional() 265 Uri.parse(String.format("%s://%s", HTTPS_SCHEME, "localhosts:8000"))).isPresent()); in testTopPrivateDomainAndScheme_invalidLocalhost_returnsEmptyOptional() 267 Uri.parse(String.format("%s://%s", HTTPS_SCHEME, "128.0.0.1"))).isPresent()); in testTopPrivateDomainAndScheme_invalidLocalhost_returnsEmptyOptional() 269 Uri.parse(String.format("%s://%s", HTTPS_SCHEME, "127.1.0.1/path"))).isPresent()); in testTopPrivateDomainAndScheme_invalidLocalhost_returnsEmptyOptional() 271 Uri.parse(String.format("%s://%s", HTTPS_SCHEME, "127.0.0.2:7654"))).isPresent()); in testTopPrivateDomainAndScheme_invalidLocalhost_returnsEmptyOptional() [all …]
|
/packages/services/Car/car-lib/src/android/car/occupantawareness/ |
D | OccupantAwarenessDetection.java | 158 public final boolean isPresent; field in OccupantAwarenessDetection 174 boolean isPresent, in OccupantAwarenessDetection() argument 179 this.isPresent = isPresent; in OccupantAwarenessDetection() 194 dest.writeBoolean(isPresent); in writeToParcel() 204 + ", isPresent=" + isPresent in toString() 227 isPresent = in.readBoolean(); in OccupantAwarenessDetection()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/registration/ |
D | AsyncTriggerFetcherTest.java | 319 assertTrue(fetch.isPresent()); in testBasicTriggerRequest() 400 assertTrue(fetch.isPresent()); in testBasicTriggerRequest_withAggregateDeduplicationKey() 463 assertFalse(fetch.isPresent()); in triggerRequest_aggregateDeduplicationKey_dedupKeyNotAString_fails() 511 assertFalse(fetch.isPresent()); in triggerRequest_aggregateDeduplicationKey_dedupKeyNegative_fails() 559 assertFalse(fetch.isPresent()); in triggerRequest_aggregateDeduplicationKey_dedupKeyTooLarge_fails() 607 assertFalse(fetch.isPresent()); in triggerRequest_aggregateDeduplicationKey_dedupKeyNotAnInt_fails() 653 assertTrue(fetch.isPresent()); in triggerRequest_aggregateDeduplicationKey_dedupKeyMissing_succeeds() 682 assertTrue(fetch.isPresent()); in testRedirectType_bothRedirectHeaderTypes_choosesListType() 725 assertTrue(fetch.isPresent()); in testRedirectType_locationRedirectHeaderType_choosesLocationType() 758 assertTrue(fetch.isPresent()); in testRedirectType_locationRedirectType_acceptsListType() [all …]
|
D | AsyncSourceFetcherTest.java | 299 assertTrue(fetch.isPresent()); in testBasicSourceRequest() 397 assertFalse(fetch.isPresent()); in testBasicSourceRequest_skipSourceWhenNotEnrolled() 431 assertTrue(fetch.isPresent()); in fetchSource_multipleWebDestinations_success() 470 assertTrue(fetch.isPresent()); in fetchSource_emptyWebDestinations_success() 517 assertTrue(fetch.isPresent()); in fetchSource_duplicateWebDestinationsInList_removesDuplicates() 562 assertFalse(fetch.isPresent()); in fetchSource_invalidWebDestinationInList_fails() 606 assertFalse(fetch.isPresent()); in fetchSource_tooManyWebDestinationInList_fails() 635 assertFalse(fetch.isPresent()); in fetchSource_noDestinations_fail() 665 assertFalse(fetch.isPresent()); in fetchSource_noAppDestination_emptyWebDestination_fail() 698 assertTrue(fetch.isPresent()); in testSourceRequestWithPostInstallAttributes() [all …]
|
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/ |
D | DtmfLocalTonePlayerTest.java | 66 when(mToneProxy.isPresent()).thenReturn(true); in testSupportedStart() 76 when(mToneProxy.isPresent()).thenReturn(true); in testUnsupportedStart() 86 when(mToneProxy.isPresent()).thenReturn(false); in testPlayToneWhenUninitialized() 97 when(mToneProxy.isPresent()).thenReturn(true); in testPlayToneWhenInitialized() 108 when(mToneProxy.isPresent()).thenReturn(false); in testStopToneWhenUninitialized() 119 when(mToneProxy.isPresent()).thenReturn(true); in testStopToneWhenInitialized() 130 when(mToneProxy.isPresent()).thenReturn(true); in testProperTeardown()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/download/ |
D | EncryptionKeyConverterUtilTest.java | 71 expect.that(keyOptional.isPresent()).isTrue(); in createEncryptionKeyFromJson_signing_successVersion3() 93 expect.that(keyOptional.isPresent()).isTrue(); in createEncryptionKeyFromJson_encryption_successVersion3() 115 expect.that(keyOptional.isPresent()).isFalse(); in createEncryptionKeyFromJson_incorrectVersion() 128 expect.that(keyOptional.isPresent()).isFalse(); in createEncryptionKeyFromJson_incorrectKeyType() 141 expect.that(keyOptional.isPresent()).isFalse(); in createEncryptionKeyFromJson_incorrectProtocolType() 154 expect.that(keyOptional.isPresent()).isFalse(); in createEncryptionKeyFromJson_incorrectKeyIdFormat() 167 expect.that(keyOptional.isPresent()).isFalse(); in createEncryptionKeyFromJson_incorrectExpirationFormat() 180 expect.that(keyOptional.isPresent()).isFalse(); in createEncryptionKeyFromJson_missingFields()
|
/packages/apps/ImsServiceEntitlement/tests/unittests/src/com/android/imsserviceentitlement/utils/ |
D | XmlDocTest.java | 243 assertThat(xmlDoc.getFromVowifi("ServiceFlow_URL").isPresent()).isFalse(); in parseAuthenticateResponse4() 244 assertThat(xmlDoc.getFromVowifi("ServiceFlow_UserData").isPresent()).isFalse(); in parseAuthenticateResponse4() 251 assertThat(xmlDoc.getFromVowifi("ServiceFlow_URL").isPresent()).isFalse(); in parseAuthenticateResponse5() 252 assertThat(xmlDoc.getFromVowifi("ServiceFlow_UserData").isPresent()).isTrue(); in parseAuthenticateResponse5() 271 assertThat(xmlDoc.getFromVonrRoaming("NetworkVoiceIRATCapablity").isPresent()).isFalse(); in parseAuthenticateResponse7() 299 assertThat(xmlDoc.getFromVonrRoaming("EntitlementStatus").isPresent()).isFalse(); in parseAuthenticateResponse10()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/topics/ |
D | EncryptionManagerTest.java | 149 assertThat(optionalEncryptedTopic.isPresent()).isTrue(); in testEncryption_success() 184 assertThat(optionalEncryptedTopic.isPresent()).isTrue(); in testEncryption_verifyLatestKeys() 201 assertThat(optionalEncryptedTopic.isPresent()).isTrue(); in testEncryption_useTestingKeys() 221 assertThat(optionalEncryptedTopic.isPresent()).isFalse(); in testEncryption_missingKeys() 240 assertThat(optionalEncryptedTopic.isPresent()).isFalse(); in testEncryption_incompatibleKeys() 256 assertThat(optionalEncryptedTopic.isPresent()).isFalse(); in testEncryption_missingEnrollmentData() 273 assertThat(optionalEncryptedTopic.isPresent()).isFalse(); in testEncryption_missingEnrollmentId() 288 assertThat(optionalEncryptedTopic.isPresent()).isFalse(); in testEncryption_missingSdkName() 303 assertThat(optionalEncryptedTopic.isPresent()).isFalse(); in testEncryption_nullSdkName() 348 assertThat(optionalEncryptedTopic.isPresent()).isFalse(); in testEncryption_keyDecodingFailure() [all …]
|
/packages/modules/AdServices/adservices/libraries/cobalt/tests/src/com/android/cobalt/testing/crypto/ |
D | NoOpEncrypterTest.java | 50 assertTrue(encryptionResult.isPresent()); in encryptEnvelope() 70 assertTrue(encryptionResult.isPresent()); in encryptObservation() 84 assertFalse(encryptionResult.isPresent()); in encryptEmptyEnvelope() 98 assertFalse(encryptionResult.isPresent()); in encryptEmptyObservation() 106 assertFalse(encryptionResult.isPresent()); in encryptEmptyObservation()
|
/packages/apps/Camera2/src/com/android/camera/one/ |
D | OneCameraModule.java | 50 if (!manager.isPresent()) { in provideOneCameraOpener() 53 if (!manager.isPresent()) { in provideOneCameraOpener() 69 if (camera2HwManager.isPresent()) { in provideOneCameraManager() 74 if (legacyHwManager.isPresent()) { in provideOneCameraManager()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/hotspot2/ |
D | NetworkDetail.java | 395 if (heOperation.isPresent()) { in NetworkDetail() 411 if (vhtOperation.isPresent()) { in NetworkDetail() 424 if (htOperation.isPresent()) { in NetworkDetail() 464 ehtOperation.isPresent(), heOperation.isPresent(), vhtOperation.isPresent(), in NetworkDetail() 465 htOperation.isPresent(), in NetworkDetail() 472 if (multiLink.isPresent()) { in NetworkDetail() 475 if (rnr.isPresent()) { in NetworkDetail() 506 + ", EHT: " + String.valueOf(ehtOperation.isPresent()) in NetworkDetail() 507 + ", HE: " + String.valueOf(heOperation.isPresent()) in NetworkDetail() 508 + ", VHT: " + String.valueOf(vhtOperation.isPresent()) in NetworkDetail() [all …]
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/aggregation/ |
D | AggregatePayloadGenerator.java | 62 if (!aggregateAttributionSource.isPresent() || !aggregateAttributionTrigger.isPresent()) { in generateAttributionReport() 77 if (filterSet.isPresent() in generateAttributionReport() 82 if (notFilterSet.isPresent() in generateAttributionReport() 92 if (source.getParentId() != null && keyMappingForAdtech.isPresent()) { in generateAttributionReport()
|
/packages/apps/Dialer/java/com/android/dialer/preferredsim/impl/ |
D | PreferredAccountWorkerImpl.java | 106 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/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/aggregation/ |
D | AggregateTriggerDataTest.java | 53 assertTrue(attributionTriggerData.getFilterSet().isPresent()); in testCreation() 58 assertTrue(attributionTriggerData.getXNetworkData().isPresent()); in testCreation() 68 assertFalse(attributionTriggerData.getFilterSet().isPresent()); in testDefaults() 69 assertFalse(attributionTriggerData.getNotFilterSet().isPresent()); in testDefaults() 70 assertFalse(attributionTriggerData.getXNetworkData().isPresent()); in testDefaults()
|
D | AggregateEncryptionKeyFetcherTest.java | 118 assertFalse(resultOptional.isPresent()); in testBadSourceUrl() 129 assertFalse(resultOptional.isPresent()); in testMalformedUrl() 149 assertFalse(resultOptional.isPresent()); in testBadConnection() 173 assertFalse(resultOptional.isPresent()); in testServerTimeout() 199 assertFalse(resultOptional.isPresent()); in testInvalidResponseBodyJson() 224 assertFalse(resultOptional.isPresent()); in testMissingCacheControlHeader() 308 assertFalse(resultOptional.isPresent()); in testCachedAgeGreaterThanMaxAge() 318 assertFalse(resultOptional.isPresent()); in testNotOverHttps()
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/util/ |
D | InformationElementUtilTest.java | 452 assertTrue(multiLink.isPresent()); in parseInformationElementWithTwoLevelFragmentation() 1645 assertTrue(htOperation.isPresent()); in getHtOperationElement() 1675 assertTrue(vhtOperation.isPresent()); in getVhtOperationElement20_40Mhz() 1706 assertTrue(vhtOperation.isPresent()); in getVhtOperationElement80Mhz() 1737 assertTrue(vhtOperation.isPresent()); in getVhtOperationElement160Mhz() 1768 assertTrue(vhtOperation.isPresent()); in getVhtOperationElement80PlusMhz() 1811 assertTrue(heOperation.isPresent()); in getHeOperationElement80Mhz() 1856 assertTrue(heOperation.isPresent()); in getHeOperationElement160Mhz() 1894 assertTrue(heOperation.isPresent()); in getHeOperationElementNo6GHzNoVht() 1935 assertTrue(heOperation.isPresent()); in getHeOperationElementNo6GHzWithVht() [all …]
|
/packages/modules/Uwb/service/tests/src/com/android/server/uwb/secure/csml/ |
D | InitiateTransactionResponseTest.java | 55 assertThat(initiateTransactionResponse.outboundDataToRemoteApplet.isPresent()).isFalse(); in wrongStatusWord() 71 assertThat(initiateTransactionResponse.outboundDataToRemoteApplet.isPresent()).isFalse(); in wrongTopTag() 87 assertThat(initiateTransactionResponse.outboundDataToRemoteApplet.isPresent()).isFalse(); in wrongStatusValue() 101 assertThat(initiateTransactionResponse.outboundDataToRemoteApplet.isPresent()).isFalse(); in emptyOutboundData()
|
/packages/providers/MediaProvider/tests/src/com/android/providers/media/scan/ |
D | ModernMediaScannerTest.java | 144 assertFalse(parseOptionalMimeType("image/png", null).isPresent()); in testOverrideMimeType() 145 assertFalse(parseOptionalMimeType("image/png", "image").isPresent()); in testOverrideMimeType() 146 assertFalse(parseOptionalMimeType("image/png", "im/im").isPresent()); in testOverrideMimeType() 147 assertFalse(parseOptionalMimeType("image/png", "audio/x-shiny").isPresent()); in testOverrideMimeType() 149 assertTrue(parseOptionalMimeType("image/png", "image/x-shiny").isPresent()); in testOverrideMimeType() 160 assertFalse(parseOptional(null).isPresent()); in testParseOptional() 161 assertFalse(parseOptional("").isPresent()); in testParseOptional() 162 assertFalse(parseOptional(" ").isPresent()); in testParseOptional() 163 assertFalse(parseOptional("-1").isPresent()); in testParseOptional() 165 assertFalse(parseOptional(-1).isPresent()); in testParseOptional() [all …]
|
/packages/modules/Uwb/service/java/com/android/server/uwb/ |
D | UciLogModeStore.java | 80 if (logModeOption.isPresent()) { in initialize() 92 return Mode.fromName(logMode).isPresent(); in isValid() 103 if (logModeOption.isPresent()) { in storeMode()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/adselection/debug/ |
D | ConsentedDebugConfigurationGeneratorFactoryTest.java | 77 Truth.assertThat(actual.isPresent()).isTrue(); in test_setConsentedDebugConfiguration_success() 97 Truth.assertThat(actual.isPresent()).isFalse(); in testSetConsentedDebugConfiguration_doesNotPopulateWhenNoEntryInDatabase() 116 Truth.assertThat(actual.isPresent()).isFalse(); in testSetConsentedDebugConfiguration_doesNotPopulateWhenListIsNull() 129 Truth.assertThat(actual.isPresent()).isFalse(); in testSetConsentedDebugConfiguration_doesNotPopulateWhenDisabled()
|