Home
last modified time | relevance | path

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

12345678910>>...14

/packages/modules/Wifi/service/java/com/android/server/wifi/
DWifiBackupRestore.java566 if (line == null || line.startsWith("}")) { in readNetworkFromStream()
587 if (line.startsWith(SUPPLICANT_KEY_SSID + "=")) { in parseLine()
589 } else if (line.startsWith(SUPPLICANT_KEY_HIDDEN + "=")) { in parseLine()
591 } else if (line.startsWith(SUPPLICANT_KEY_KEY_MGMT + "=")) { in parseLine()
596 } else if (line.startsWith(SUPPLICANT_KEY_AUTH_ALG + "=")) { in parseLine()
598 } else if (line.startsWith(SUPPLICANT_KEY_CLIENT_CERT + "=")) { in parseLine()
600 } else if (line.startsWith(SUPPLICANT_KEY_CA_CERT + "=")) { in parseLine()
602 } else if (line.startsWith(SUPPLICANT_KEY_CA_PATH + "=")) { in parseLine()
604 } else if (line.startsWith(SUPPLICANT_KEY_EAP + "=")) { in parseLine()
606 } else if (line.startsWith(SUPPLICANT_KEY_PSK + "=")) { in parseLine()
[all …]
/packages/providers/MediaProvider/src/com/android/providers/media/util/
DSyntheticPathUtils.java63 && startsWith(path, redactedDir) in isRedactedPath()
64 && startsWith(fileName, REDACTED_URI_ID_PREFIX) in isRedactedPath()
72 return path != null && startsWith(path, pickerDir); in isPickerPath()
79 return path != null && startsWith(path, syntheticDir); in isSyntheticPath()
122 private static boolean startsWith(String value, String prefix) { in startsWith() method in SyntheticPathUtils
123 return value.toLowerCase(Locale.ROOT).startsWith(prefix.toLowerCase(Locale.ROOT)); in startsWith()
/packages/modules/Wifi/service/java/com/android/server/wifi/util/
DCertificateSubjectInfo.java60 if (s.startsWith(COMMON_NAME_PREFIX)) { in parse()
62 } else if (s.startsWith(ORGANIZATION_PREFIX)) { in parse()
64 } else if (s.startsWith(LOCATION_PREFIX)) { in parse()
66 } else if (s.startsWith(STATE_PREFIX)) { in parse()
68 } else if (s.startsWith(COUNTRY_PREFIX)) { in parse()
70 } else if (s.startsWith(EMAILADDRESS_OID_PREFIX)) { in parse()
/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/NetworkStack/tests/unit/src/android/net/apf/
DBpf2Apf.java40 if (!arg.startsWith("#0x")) { in parseImm()
86 if (arg.startsWith("#0x")) { in convertLine()
93 if (arg.startsWith("M[")) { in convertLine()
94 if (!opcode.startsWith("ld")) { in convertLine()
108 if (arg.startsWith("[x + ")) { in convertLine()
145 if (!arg.startsWith("M[")) { in convertLine()
202 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/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/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/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/services/Telephony/src/com/android/phone/
DSpecialCharSequenceMgr.java159 if (len > 8 && input.startsWith("*#*#") && input.endsWith("#*#*")) { in handleSecretCode()
235 if ((input.startsWith("**04") || input.startsWith("**05")) in handlePinEntry()
243 if (input.startsWith("**04")) { in handlePinEntry()
262 if (isMMIHandled && input.startsWith("**05")) { in handlePinEntry()
/packages/modules/Permission/tests/cts/safetycenter/src/android/safetycenter/cts/
DSafetyEventTest.kt90 .startsWith("Missing issue action id for resolving action safety event") in build_actionFailed_withMissingIssueActionId_throwsIllegalArgumentException()
104 .startsWith("Missing issue id for resolving action safety event") in build_actionFailed_withMissingIssueId_throwsIllegalArgumentException()
118 .startsWith("Missing issue action id for resolving action safety event") in build_actionSucceeded_withMissingIssueActionId_throwsIllegalArgumentException()
132 .startsWith("Missing issue id for resolving action safety event") in build_actionSucceeded_withMissingIssueId_throwsIllegalArgumentException()
/packages/services/Car/car-lib/src/com/android/car/internal/util/
DDebugUtils.java42 && 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/services/Car/tests/android_car_api_test/src/android/car/apitest/
DCarBugreportManagerTest.java203 if (!entry.getName().startsWith("bugreport-") || !entry.getName().endsWith( in assertContainsValidBugreport()
246 && (productName.startsWith("aosp_cf_x86") in isCuttlefish()
247 || productName.startsWith("aosp_cf_arm") in isCuttlefish()
248 || productName.startsWith("cf_x86") in isCuttlefish()
249 || productName.startsWith("cf_arm")); in isCuttlefish()
/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/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()
DWifiQrCode.java94 if (qrCode.startsWith(PREFIX_DPP)) { in WifiQrCode()
97 } else if (qrCode.startsWith(PREFIX_ZXING_WIFI_NETWORK_CONFIG)) { in WifiQrCode()
163 if (keyValue.startsWith(prefix)) { in getValueOrNull()
/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()
/packages/apps/LegacyCamera/src/com/android/camera/
DCameraSettings.java379 } else if (effectSelection.startsWith("goofy_face")) { in readEffectType()
381 } else if (effectSelection.startsWith("backdropper")) { in readEffectType()
396 if (effectSelection.startsWith("goofy_face")) { in readEffectParameter()
410 } else if (effectSelection.startsWith("backdropper")) { in readEffectParameter()
484 if (!goofyFaceSupported && effectSelection.startsWith("goofy_face")) continue; in initVideoEffect()
485 if (!backdropperSupported && effectSelection.startsWith("backdropper")) continue; in initVideoEffect()
/packages/modules/SdkExtensions/javatests/com/android/os/classpath/
DClasspathsTest.java152 assertThat(bootJars).startsWith(dex2oatJars); in testDex2oatJarsAreFirstOnBootclasspath()
161 .filter(jar -> jar.startsWith("/apex")) in getUpdatableApexes()
240 public void startsWith(ImmutableList<String> expected) { in startsWith() method in ClasspathsTest.ClasspathSubject
251 if (value.startsWith(prefixes.get(i))) { in findFirstMatchingPrefix()
/packages/modules/Virtualization/tests/hostside/helper/java/android/virt/test/
DVirtualizationTestCaseBase.java218 assertTrue("package not found", pathLine.startsWith("package:")); in getPathForPackage()
410 && (productName.startsWith("aosp_cf_x86") in isCuttlefish()
411 || productName.startsWith("aosp_cf_arm") in isCuttlefish()
412 || productName.startsWith("cf_x86") in isCuttlefish()
413 || productName.startsWith("cf_arm")); in isCuttlefish()
/packages/apps/Dialer/java/com/android/voicemail/impl/mail/internet/
DMimeUtility.java192 if (part.trim().toLowerCase().startsWith(lowerCaseName)) { in getHeaderParameter()
198 if (parameter.startsWith("\"") && parameter.endsWith("\"")) { in getHeaderParameter()
393 } else if (inline && (mimeType.startsWith("text") || (mimeType.startsWith("image")))) { in collectParts()

12345678910>>...14