Home
last modified time | relevance | path

Searched refs:startsWith (Results 1 – 25 of 488) sorted by relevance

12345678910>>...20

/packages/providers/MediaProvider/src/com/android/providers/media/util/
DSyntheticPathUtils.java69 && startsWith(path, redactedDir) in isRedactedPath()
70 && startsWith(fileName, REDACTED_URI_ID_PREFIX) in isRedactedPath()
80 return path != null && (startsWith(path, pickerDir) || startsWith(path, in isPickerPath()
88 return path != null && startsWith(path, syntheticDir); in isSyntheticPath()
131 private static boolean startsWith(String value, String prefix) { in startsWith() method in SyntheticPathUtils
132 return value.toLowerCase(Locale.ROOT).startsWith(prefix.toLowerCase(Locale.ROOT)); in startsWith()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DWifiBackupRestore.java568 if (line == null || line.startsWith("}")) { in readNetworkFromStream()
589 if (line.startsWith(SUPPLICANT_KEY_SSID + "=")) { in parseLine()
591 } else if (line.startsWith(SUPPLICANT_KEY_HIDDEN + "=")) { in parseLine()
593 } else if (line.startsWith(SUPPLICANT_KEY_KEY_MGMT + "=")) { in parseLine()
598 } else if (line.startsWith(SUPPLICANT_KEY_AUTH_ALG + "=")) { in parseLine()
600 } else if (line.startsWith(SUPPLICANT_KEY_CLIENT_CERT + "=")) { in parseLine()
602 } else if (line.startsWith(SUPPLICANT_KEY_CA_CERT + "=")) { in parseLine()
604 } else if (line.startsWith(SUPPLICANT_KEY_CA_PATH + "=")) { in parseLine()
606 } else if (line.startsWith(SUPPLICANT_KEY_EAP + "=")) { in parseLine()
608 } else if (line.startsWith(SUPPLICANT_KEY_PSK + "=")) { in parseLine()
[all …]
/packages/apps/Messaging/src/com/android/messaging/util/
DYouTubeUtil.java44 if (!urlString.startsWith("http")) { in getYoutubePreviewImageLink()
72 if (urlPath.startsWith(YOUTUBE_PATH_1)) { in getYouTubeVideoId()
76 if (urlPath.startsWith(YOUTUBE_PATH_2)) { in getYouTubeVideoId()
80 if (urlPath.startsWith(YOUTUBE_PATH_3)) { in getYouTubeVideoId()
84 if (urlPath.startsWith(YOUTUBE_PATH_4)) { in getYouTubeVideoId()
DContentType.java118 return (null != contentType) && contentType.startsWith(IMAGE_PREFIX); in isImageType()
123 (contentType.startsWith("audio/") || contentType.equalsIgnoreCase(AUDIO_OGG)); in isAudioType()
127 return (null != contentType) && contentType.startsWith("video/"); in isVideoType()
/packages/modules/Wifi/service/java/com/android/server/wifi/util/
DCertificateSubjectInfo.java67 if (s.startsWith(COMMON_NAME_PREFIX) && TextUtils.isEmpty(info.commonName)) { in parse()
69 } else if (s.startsWith(ORGANIZATION_PREFIX) && TextUtils.isEmpty(info.organization)) { in parse()
71 } else if (s.startsWith(LOCATION_PREFIX) && TextUtils.isEmpty(info.location)) { in parse()
73 } else if (s.startsWith(STATE_PREFIX) && TextUtils.isEmpty(info.state)) { in parse()
75 } else if (s.startsWith(COUNTRY_PREFIX) && TextUtils.isEmpty(info.country)) { in parse()
77 } else if (s.startsWith(EMAILADDRESS_OID_PREFIX) && TextUtils.isEmpty(info.email)) { in parse()
/packages/modules/Wifi/framework/java/android/net/wifi/
DWifiUriParser.java95 if (uri.startsWith(PREFIX_DPP)) { in parseUri()
97 } else if (uri.startsWith(PREFIX_ZXING_WIFI_NETWORK_CONFIG)) { in parseUri()
171 if (strippedKeyValue.startsWith(prefix)) { in getValueOrNull()
211 if (input.length() >= 2 && input.startsWith("\"") && input.endsWith("\"")) { in addQuotationIfNeeded()
257 if (security.startsWith(SECURITY_WEP)) { in generatetWifiConfiguration()
268 } else if (security.startsWith(SECURITY_WPA_PSK)) { in generatetWifiConfiguration()
286 } else if (security.startsWith(SECURITY_SAE)) { in generatetWifiConfiguration()
291 } else if (security.startsWith(SECURITY_ADB)) { in generatetWifiConfiguration()
/packages/modules/NetworkStack/tests/unit/src/android/net/apf/
DBpf2Apf.java43 if (!arg.startsWith("#0x")) { in parseImm()
108 if (arg.startsWith("#0x")) { in convertLine()
115 if (arg.startsWith("M[")) { in convertLine()
116 if (!opcode.startsWith("ld")) { in convertLine()
123 if (arg.startsWith("[x + ")) { in convertLine()
160 if (!arg.startsWith("M[")) { in convertLine()
211 if (arg.startsWith("x")) { in convertLine()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DPhoneLookupWithStarPrefix.java62 if (!queryPhoneNumberNormalized.startsWith("*") in removeNonStarMatchesFromCursor()
80 if (!matchingNumberNormalized.startsWith("*") in removeNonStarMatchesFromCursor()
81 && !queryPhoneNumberNormalized.startsWith("*") in removeNonStarMatchesFromCursor()
109 if (phoneNumber.startsWith("*")) { in normalizeNumberWithStar()
128 if (phoneNumber != null && phoneNumber.startsWith("*")) { in matchingNumberStartsWithStar()
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DMailToTest.java64 assertTrue(stringUrl.startsWith("mailto:?")); in testParseMailToURI()
77 assertTrue(stringUrl.startsWith("mailto:?")); in testParseMailToURI()
90 assertTrue(stringUrl.startsWith("mailto:?")); in testParseMailToURI()
105 assertTrue(stringUrl.startsWith("mailto:?")); in testParseMailToURI()
120 assertTrue(stringUrl.startsWith("mailto:?")); in testParseMailToURI()
/packages/modules/NetworkStack/tests/unit/src/android/net/util/
DConnectivityPacketSummaryTest.java277 assertTrue(getSummary(packet).startsWith(expectedPrefix)); in testParseDHCPv4Discover()
323 assertTrue(getSummary(packet).startsWith(expectedPrefix)); in testParseDHCPv4Offer()
371 assertTrue(getSummary(packet).startsWith(expectedPrefix)); in testParseDHCPv4Request()
417 assertTrue(getSummary(packet).startsWith(expectedPrefix)); in testParseDHCPv4Ack()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/ecm/
DEnhancedConfirmationStatsLogUtils.kt71 settingIdentifier.startsWith("android:") -> Appop in fromIdentifier()
72 settingIdentifier.startsWith("android.permission.") -> Permission in fromIdentifier()
73 settingIdentifier.startsWith("android.permission-group.") -> Permission in fromIdentifier()
74 settingIdentifier.startsWith("android.app.role.") -> Role in fromIdentifier()
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DMediaStoreDownloadsHelper.java32 return docId != null && (docId.startsWith(MEDIASTORE_DOWNLOAD_FILE_PREFIX) in isMediaStoreDownload()
33 || docId.startsWith(MEDIASTORE_DOWNLOAD_DIR_PREFIX)); in isMediaStoreDownload()
47 return docId != null && docId.startsWith(MEDIASTORE_DOWNLOAD_DIR_PREFIX); in isMediaStoreDownloadDir()
/packages/apps/Dialer/java/com/android/dialer/commandline/
DArguments.java106 if (!iterator.peek().startsWith("--")) { in parseFlags()
116 if (peek.startsWith("--")) { in parseFlags()
119 if (iterator.hasNext() && !iterator.peek().startsWith("--")) { in parseFlags()
125 } else if (key.startsWith("no")) { in parseFlags()
/packages/apps/ManagedProvisioning/studio-dev/ManagedProvisioningGradleProject/buildSrc/src/main/java/
DStatsGenerator.java171 while (!(line = reader.getEntry()).startsWith("}")) { in parseExtension()
209 while (!(line = reader.getEntry()).startsWith("}")) { in parseGroup()
435 if (line.startsWith("message") || line.equals("}") in parseHeaders()
436 || line.startsWith("enum") || line.startsWith("extend")) { in parseHeaders()
439 if (line.startsWith("import")) { in parseHeaders()
444 } else if (line.startsWith("option")) { in parseHeaders()
453 } else if (line.startsWith("package")) { in parseHeaders()
489 if (line.startsWith("/*")) { in getEntry()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DRenamingDelegatingContext.java94 return diskName.startsWith(mFilePrefix); in shouldDiskNameBeVisible()
142 if (name.startsWith("/")) { in openOrCreateDatabase()
156 if (name.startsWith("/")) { in openOrCreateDatabase()
169 if (name.startsWith("/")) { in deleteDatabase()
182 if (name.startsWith("/")) { in getDatabasePath()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
DKeySpecParser.java60 return keySpec.startsWith(KeyboardIconsSet.PREFIX_ICON); in hasIcon()
67 if (keySpec.startsWith(KeyboardCodesSet.PREFIX_CODE, labelEnd + 1)) { in hasCode()
72 if (keySpec.startsWith(PREFIX_HEX, labelEnd + 1)) { in hasCode()
227 if (text.startsWith(KeyboardCodesSet.PREFIX_CODE)) { in parseCode()
232 if (text.startsWith(PREFIX_HEX)) { in parseCode()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/
DFlagsConstantsTest.java116 .that(value.startsWith(ACONFIG_PREFIX)) in testNoFlagHasTheAConfigPrefix()
159 Objects.requireNonNull(flag).startsWith(ACONFIG_PREFIX), in aconfigToDeviceConfig()
184 if (name.startsWith("KEY_") || name.startsWith("FLAG_")) { in getAllFlagNameConstants()
/packages/services/Telephony/src/com/android/phone/
DSpecialCharSequenceMgr.java160 if (len > 8 && input.startsWith("*#*#") && input.endsWith("#*#*")) { in handleSecretCode()
239 if ((input.startsWith("**04") || input.startsWith("**05")) in handlePinEntry()
247 if (input.startsWith("**04")) { in handlePinEntry()
266 if (isMMIHandled && input.startsWith("**05")) { in handlePinEntry()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/permissions/data/
DHealthPermission.kt57 return if (permission.startsWith(READ_PERMISSION_PREFIX)) { in fromPermissionString()
61 } else if (permission.startsWith(WRITE_PERMISSION_PREFIX)) { in fromPermissionString()
124 } else if (permission.startsWith(READ_MEDICAL_DATA_PREFIX)) { in isExerciseRoutesPermission()
/packages/services/Car/car-lib/src/com/android/car/internal/util/
DDebugUtils.java41 && field.getType().equals(int.class) && field.getName().startsWith(prefix)) { in valueToString()
67 && field.getType().equals(int.class) && field.getName().startsWith(prefix)) { in flagsToString()
110 && field.getType().equals(int.class) && field.getName().startsWith(prefix) in constantToString()
/packages/apps/Messaging/src/android/support/v7/mms/pdu/
DContentType.java186 return (null != contentType) && contentType.startsWith("text/"); in isTextType()
190 return (null != contentType) && contentType.startsWith("image/"); in isImageType()
194 return (null != contentType) && contentType.startsWith("audio/"); in isAudioType()
198 return (null != contentType) && contentType.startsWith("video/"); in isVideoType()
/packages/modules/Permission/tests/cts/permission/permissionTestUtilLib/src/android/permission/cts/
DTestUtils.java176 + " yet, current state: " + jobState, jobState.startsWith(requestedState)); in awaitJobUntilRequestedState()
195 boolean jobInEitherRequestedState = jobState.startsWith(requestedState1) in awaitJobUntilRequestedState()
196 || jobState.startsWith(requestedState2); in awaitJobUntilRequestedState()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/utils/
DDebugUtils.kt41 .dropWhile { !it.className.startsWith(pkgPrefix) } in stackTraceWithin()
42 .takeWhile { it.className.startsWith(pkgPrefix) } in <lambda>()
/packages/apps/Settings/src/com/android/settings/wifi/dpp/
DWifiNetworkConfig.java261 if (mSecurity.startsWith(SECURITY_WEP)) { in getWifiConfigurations()
272 } else if (mSecurity.startsWith(SECURITY_WPA_PSK)) { in getWifiConfigurations()
280 } else if (mSecurity.startsWith(SECURITY_SAE)) { in getWifiConfigurations()
308 if (input.length() >= 2 && input.startsWith("\"") && input.endsWith("\"")) { in addQuotationIfNeeded()
/packages/services/Car/service/src/com/android/car/watchdog/
DPackageInfoHandler.java102 if (!genericPackageName.startsWith(SHARED_PACKAGE_PREFIX)) { in getNamesForUids()
189 if (genericPackageName.startsWith(SHARED_PACKAGE_PREFIX)) { in getComponentType()
232 if (genericPackageName.startsWith(SHARED_PACKAGE_PREFIX)) { in getPackageInfo()
262 if (genericPackageName.startsWith(mVendorPackagePrefixes.get(i))) { in getSharedComponentType()
315 if (applicationInfo.packageName.startsWith(mVendorPackagePrefixes.get(i))) { in getComponentType()

12345678910>>...20