/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/ |
D | DomainUtilsTest.java | 70 String suffix = "06676F6F676C6503636F6D00"; in testEncodeValidDomainNamesWithoutCompression() local 73 assertEquals(suffix, HexEncoding.encodeToString(buffer)); in testEncodeValidDomainNamesWithoutCompression() 76 suffix = "0C676F6F676C652D677565737403636F6D00"; in testEncodeValidDomainNamesWithoutCompression() 79 assertEquals(suffix, HexEncoding.encodeToString(buffer)); in testEncodeValidDomainNamesWithoutCompression() 82 suffix = "076578616D706C6504636F727006676F6F676C6503636F6D00" // example.corp.google.com in testEncodeValidDomainNamesWithoutCompression() 89 assertEquals(suffix, HexEncoding.encodeToString(buffer)); in testEncodeValidDomainNamesWithoutCompression() 94 suffix = "076578616D706C6504636F727006676F6F676C6503636F6D00" // example.corp.google.com in testEncodeValidDomainNamesWithoutCompression() 100 assertEquals(suffix, HexEncoding.encodeToString(buffer)); in testEncodeValidDomainNamesWithoutCompression() 111 String suffix = in testEncodeValidDomainNamesWithCompression() local 118 assertEquals(suffix, HexEncoding.encodeToString(buffer)); in testEncodeValidDomainNamesWithCompression() [all …]
|
/packages/services/Telephony/utils/satellite/s2storage/src/testutils/java/com/android/telephony/sats2range/testutils/ |
D | TestUtils.java | 109 for (int suffix = 1000; suffix < 2000; suffix++) { in createValidTestS2CellFile() 110 printer.println(fileFormat.createCellId(0b100_11111111, suffix)); in createValidTestS2CellFile() 114 for (int suffix = 2001; suffix < 3000; suffix++) { in createValidTestS2CellFile() 115 printer.println(fileFormat.createCellId(0b100_11111111, suffix)); in createValidTestS2CellFile() 119 for (int suffix = 1000; suffix < 2000; suffix++) { in createValidTestS2CellFile() 120 printer.println(fileFormat.createCellId(0b101_11111111, suffix)); in createValidTestS2CellFile()
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/utils/ |
D | file_utils.cpp | 98 const char *const suffix) { in getFilePathWithSuffixBufSize() argument 99 return strlen(filePath) + strlen(suffix) + 1 /* terminator */; in getFilePathWithSuffixBufSize() 103 const char *const suffix, const int filePathBufSize, char *const outFilePath) { in getFilePathWithSuffix() argument 104 snprintf(outFilePath, filePathBufSize, "%s%s", filePath, suffix); in getFilePathWithSuffix() 118 const char *const suffix, const int outDirPathBufSize, char *const outDirPath) { in getFilePathWithoutSuffix() argument 120 const int suffixLength = strlen(suffix); in getFilePathWithoutSuffix() 123 filePath, filePathLength, suffix, suffixLength); in getFilePathWithoutSuffix() 129 filePath, suffix, outDirPathBufSize); in getFilePathWithoutSuffix() 132 if (strncmp(filePath + resultFilePathLength, suffix, suffixLength) != 0) { in getFilePathWithoutSuffix() 133 AKLOGE("File Path %s does not have %s as a suffix", filePath, suffix); in getFilePathWithoutSuffix()
|
D | file_utils.h | 34 static int getFilePathWithSuffixBufSize(const char *const filePath, const char *const suffix); 36 static void getFilePathWithSuffix(const char *const filePath, const char *const suffix, 45 static bool getFilePathWithoutSuffix(const char *const filePath, const char *const suffix,
|
D | dict_file_writing_utils.cpp | 83 const char *const suffix, const BufferWithExtendableBuffer *const buffer) { in flushBufferToFileWithSuffix() argument 84 const int filePathBufSize = FileUtils::getFilePathWithSuffixBufSize(basePath, suffix); in flushBufferToFileWithSuffix() 86 FileUtils::getFilePathWithSuffix(basePath, suffix, filePathBufSize, filePath); in flushBufferToFileWithSuffix()
|
/packages/services/Telephony/tests/src/com/android/phone/satellite/accesscontrol/ |
D | S2RangeSatelliteOnDeviceAccessControllerTest.java | 95 for (int suffix = 1000; suffix < 2000; suffix++) { in testSatelliteAccessControl() 96 s2CellId = new S2CellId(TestUtils.createCellId(fileFormat, 1, 1000, suffix)); in testSatelliteAccessControl() 115 for (int suffix = 2001; suffix < 3000; suffix++) { in testSatelliteAccessControl() 116 s2CellId = new S2CellId(TestUtils.createCellId(fileFormat, 1, 1000, suffix)); in testSatelliteAccessControl() 141 for (int suffix = 1000; suffix < 2000; suffix++) { in testSatelliteAccessControl() 142 s2CellId = new S2CellId(TestUtils.createCellId(fileFormat, 1, 1001, suffix)); in testSatelliteAccessControl()
|
/packages/modules/StatsD/statsd/benchmark/ |
D | string_transform_benchmark.cpp | 46 const string suffix(state.range(1), '0' + rand() % 10); in BM_RemoveTrailingCharacters() local 47 const string input = prefix + suffix; in BM_RemoveTrailingCharacters() 59 const string suffix(state.range(1), '0' + rand() % 10); in BM_RemoveTrailingNumbers() local 60 const string input = prefix + suffix; in BM_RemoveTrailingNumbers() 72 const string suffix(state.range(1), '0' + rand() % 10); in BM_RemoveTrailingNumbersCppRegex() local 73 const string input = prefix + suffix; in BM_RemoveTrailingNumbersCppRegex() 84 const string suffix(state.range(1), '0' + rand() % 10); in BM_RemoveTrailingNumbersCRegex() local 85 const string input = prefix + suffix; in BM_RemoveTrailingNumbersCRegex()
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
D | NameSplitter.java | 89 public String suffix; field in NameSplitter.Name 103 String suffix) { in Name() argument 108 this.suffix = suffix; in Name() 130 return suffix; in getSuffix() 158 suffix = values.getAsString(StructuredName.SUFFIX); in fromValues() 176 putValueIfPresent(values, StructuredName.SUFFIX, suffix); in toValues() 195 suffix = null; in clear() 207 && TextUtils.isEmpty(suffix) in isEmpty() 216 + " family: " + familyName + " suffix: " + suffix + " ph/given: " in toString() 294 for (String suffix : mSuffixesSet) { in NameSplitter() [all …]
|
/packages/modules/OnDevicePersonalization/federatedcompute/src/com/android/federatedcompute/services/http/ |
D | ProtocolRequestCreator.java | 86 private String joinBaseUriWithSuffix(String baseUri, String suffix) { in joinBaseUriWithSuffix() argument 87 if (suffix.isEmpty() || !suffix.startsWith("/")) { in joinBaseUriWithSuffix() 94 suffix = suffix.substring(1); in joinBaseUriWithSuffix() 95 return String.join("/", baseUri, suffix); in joinBaseUriWithSuffix()
|
/packages/modules/GeoTZ/tzs2storage/ |
D | README.md | 78 the "same prefix" property. All ranges with a common prefix can be stored in one "suffix table". 87 applying a fixed offset. The block info and block data for the cell's suffix table can be accessed 93 used to obtain the `{block ID}` of the block used to store the suffix table. The `{block ID}` is 100 (described above) which stores the suffix table's entries. 102 The `{suffix}`, the final `{Y}` bits of the search S2 cell ID, is used to seek for a record 103 containing the s2 range holding that cell ID, if any. The `{suffix}` will match either no records or 106 For more information on suffix table storage, see the Suffix Table Blocks section below. 114 The header contains format information needed to address the suffix table blocks 130 It is important to keep the number of bits used in each suffix table entry to a 166 only a numeric bank ID and a numeric set ID. The bank ID is the same for all entries in suffix [all …]
|
/packages/apps/DocumentsUI/tests/functional/com/android/documentsui/archives/ |
D | ArchiveFileTestRule.java | 102 public Path generateFile(String suffix) throws IOException { in generateFile() argument 105 Path filePath = Files.createTempFile(mTemporaryPath, mMethodName, suffix, attr); in generateFile() 119 public Path dumpAssetFile(String assetPath, String suffix) throws IOException { in dumpAssetFile() argument 120 Path destinationPath = generateFile(suffix); in dumpAssetFile() 139 public ParcelFileDescriptor openAssetFile(String assetPath, String suffix) throws IOException { in openAssetFile() argument 140 Path destinationPath = dumpAssetFile(assetPath, suffix); in openAssetFile()
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
D | NameSplitterTest.java | 251 name.suffix = "\u540E"; in testGuessFullNameStyleChineseMixed() 334 String middleName, String familyName, String suffix) { in assertSplitName() argument 341 assertEquals(suffix, name.getSuffix()); in assertSplitName() 345 String middleName, String familyName, String suffix) { in assertJoinedName() argument 347 familyName, suffix, true); in assertJoinedName() 351 String middleName, String familyName, String suffix, boolean givenNameFirst) { in assertJoinedName() argument 358 name.suffix = suffix; in assertJoinedName()
|
D | TestUtils.java | 93 public static String getContactsDatabaseFilename(Context context, String suffix) { in getContactsDatabaseFilename() argument 94 return getDatabaseFile(context, "contacts2" + suffix + ".db"); in getContactsDatabaseFilename() 101 public static String getProfileDatabaseFilename(Context context, String suffix) { in getProfileDatabaseFilename() argument 102 return getDatabaseFile(context, "profile.db" + suffix + ".db"); in getProfileDatabaseFilename() 213 public static final String dumpToCacheDir(Context context, String prefix, String suffix, in dumpToCacheDir() argument 216 File file = File.createTempFile(prefix, suffix, context.getCacheDir()); in dumpToCacheDir()
|
/packages/providers/MediaProvider/jni/ |
D | Android.bp | 149 suffix: "32", 152 suffix: "64", 196 suffix: "32", 199 suffix: "64", 238 suffix: "32", 241 suffix: "64",
|
/packages/services/Telephony/utils/satellite/ |
D | README.md | 51 - [(prefix=0b100_11111111, suffix=1000), (prefix=0b100_11111111, suffix=2000)) 52 - [(prefix=0b100_11111111, suffix=2000), (prefix=0b100_11111111, suffix=3000)) 53 - [(prefix=0b101_11111111, suffix=1000), (prefix=0b101_11111111, suffix=2000))
|
/packages/modules/Connectivity/staticlibs/device/com/android/net/module/util/ |
D | DomainUtils.java | 87 final String suffix = getSubstring(domains[i], labels, j); in encode() local 88 if (offsetMap.containsKey(suffix)) { in encode() 89 int offsetOfSuffix = offsetMap.get(suffix); in encode() 94 offsetMap.put(suffix, buffer.position()); in encode()
|
/packages/modules/Uwb/service/uci/jni/ |
D | Android.bp | 58 // Support multilib variants (using different suffix per sub-architecture), which is needed on 64 suffix: "32", 67 suffix: "64",
|
/packages/modules/Connectivity/remoteauth/service/jni/ |
D | Android.bp | 70 // Support multilib variants (using different suffix per sub-architecture), which is needed on 76 suffix: "32", 79 suffix: "64",
|
/packages/apps/ManagedProvisioning/studio-dev/ManagedProvisioningGradleProject/buildSrc/src/main/java/ |
D | RepoDependencyMapper.java | 57 for (String suffix : PLATFORM_TYPE_SUFFIX) { in checkEndPoint() 58 if (moduleName.endsWith(suffix)) { in checkEndPoint() 60 moduleName = moduleName.substring(0, moduleName.length() - suffix.length()); in checkEndPoint()
|
/packages/modules/AdServices/adservices/tests/cts/hosttests/src/com/android/adservices/cts/ |
D | TopicsApiLoggingHostTest.java | 94 String suffix = in setUp() local 96 mTargetPackage = findPackageName(suffix); in setUp() 146 private String findPackageName(String suffix) throws DeviceNotAvailableException { in findPackageName() argument 148 .filter(s -> s.endsWith(suffix)) in findPackageName()
|
D | UiApiLoggingHostTest.java | 103 String suffix = in setUp() local 105 mTargetPackage = findPackageName(suffix); in setUp() 181 private String findPackageName(String suffix) throws DeviceNotAvailableException { in findPackageName() argument 183 .filter(s -> s.endsWith(suffix)) in findPackageName()
|
/packages/modules/Bluetooth/floss/android-base/include/android-base/ |
D | parseint.h | 62 const char* suffix; variable 64 (suffix = strchr(suffixes, tolower(*end))) == nullptr) || 65 __builtin_mul_overflow(result, 1ULL << (10 * (suffix - suffixes)),
|
/packages/modules/StatsD/statsd/src/storage/ |
D | StorageManager.cpp | 484 void StorageManager::deleteSuffixedFiles(const char* path, const char* suffix) { in deleteSuffixedFiles() argument 498 size_t suffixLen = strlen(suffix); in deleteSuffixedFiles() 499 if (suffixLen <= nameLen && strncmp(name + nameLen - suffixLen, suffix, suffixLen) == 0) { in deleteSuffixedFiles() 533 string suffix = StringPrintf("%d_%lld", key.GetUid(), (long long)key.GetId()); in hasConfigMetricsReport() local 541 size_t suffixLen = suffix.length(); in hasConfigMetricsReport() 543 strncmp(name + nameLen - suffixLen, suffix.c_str(), suffixLen) == 0) { in hasConfigMetricsReport() 663 string suffix = StringPrintf("%d_%lld", key.GetUid(), (long long)key.GetId()); in readConfigFromDisk() local 671 size_t suffixLen = suffix.length(); in readConfigFromDisk() 674 strncmp(name + nameLen - suffixLen, suffix.c_str(), suffixLen) == 0) { in readConfigFromDisk()
|
/packages/providers/DownloadProvider/src/com/android/providers/downloads/ |
D | Helpers.java | 288 final String suffix; in generateSaveFile() local 295 suffix = ""; in generateSaveFile() 298 suffix = name.substring(dotIndex); in generateSaveFile() 305 suffix = chooseExtensionFromMimeType(mimeType, true); in generateSaveFile() 308 suffix = chooseExtensionFromFilename(mimeType, destination, name, dotIndex); in generateSaveFile() 313 name = generateAvailableFilenameLocked(parentTest, prefix, suffix); in generateSaveFile() 483 File[] parents, String prefix, String suffix) throws IOException { in generateAvailableFilenameLocked() argument 484 String name = prefix + suffix; in generateAvailableFilenameLocked() 507 name = prefix + Constants.FILENAME_SEQUENCE_SEPARATOR + sequence + suffix; in generateAvailableFilenameLocked()
|
/packages/modules/Permission/tests/cts/permission/nativeTests/ |
D | Android.bp | 25 suffix: "32", 28 suffix: "64",
|