Home
last modified time | relevance | path

Searched refs:suffix (Results 1 – 25 of 32) sorted by relevance

12

/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DNameSplitter.java89 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 …]
DContactsDatabaseHelper.java4611 final String suffix = c.getString(RawContactNameQuery.SUFFIX); in updateRawContactDisplayName() local
4614 && TextUtils.isEmpty(family) && TextUtils.isEmpty(suffix) in updateRawContactDisplayName()
4643 name.suffix = c.getString(RawContactNameQuery.SUFFIX); in updateRawContactDisplayName()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/utils/
Dfile_utils.cpp98 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()
Dfile_utils.h34 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,
Ddict_file_writing_utils.cpp83 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()
Ddict_file_writing_utils.h38 static bool flushBufferToFileWithSuffix(const char *const basePath, const char *const suffix,
/packages/apps/Bluetooth/src/com/android/bluetooth/pbapclient/
DPhonebookEntry.java33 public String suffix; field in PhonebookEntry.Name
49 Objects.equals(suffix, n.suffix) || suffix != null && suffix.equals(n.suffix)); in equals()
58 result = 23 * result + (suffix == null ? 0 : suffix.hashCode()); in hashCode()
74 sb.append(suffix); in toString()
133 name.suffix = n.getSuffix(); in PhonebookEntry()
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/archives/
DArchiveFileTestRule.java102 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()
DArchiveHandleTest.java52 private ArchiveHandle prepareArchiveHandle(String archivePath, String suffix, in prepareArchiveHandle() argument
55 .openAssetFile(archivePath, suffix); in prepareArchiveHandle()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DNameSplitterTest.java250 name.suffix = "\u540E"; in testGuessFullNameStyleChineseMixed()
333 String middleName, String familyName, String suffix) { in assertSplitName() argument
340 assertEquals(suffix, name.getSuffix()); in assertSplitName()
344 String middleName, String familyName, String suffix) { in assertJoinedName() argument
346 familyName, suffix, true); in assertJoinedName()
350 String middleName, String familyName, String suffix, boolean givenNameFirst) { in assertJoinedName() argument
357 name.suffix = suffix; in assertJoinedName()
DTestUtils.java93 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()
DBaseContactsProvider2Test.java673 String middleName, String familyName, String suffix) { in assertStructuredName() argument
691 assertEquals(suffix, c.getString(4)); in assertStructuredName()
/packages/apps/Car/Settings/src/com/android/car/settings/storage/
DFileSizeFormatter.java57 @NonNull Context context, long sizeBytes, int suffix, long mult) { in formatFileSize() argument
59 formatBytes(context.getResources(), sizeBytes, suffix, mult); in formatFileSize()
80 Resources res, long sizeBytes, int suffix, long mult) { in formatBytes() argument
112 String units = res.getString(suffix); in formatBytes()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/utils/
DFileSizeFormatter.java54 @Nullable Context context, long sizeBytes, int suffix, long mult) { in formatFileSize() argument
59 formatBytes(context.getResources(), sizeBytes, suffix, mult); in formatFileSize()
80 Resources res, long sizeBytes, int suffix, long mult) { in formatBytes() argument
112 final String units = res.getString(suffix); in formatBytes()
/packages/apps/Settings/src/com/android/settings/utils/
DFileSizeFormatter.java54 @Nullable Context context, long sizeBytes, int suffix, long mult) { in formatFileSize() argument
59 formatBytes(context.getResources(), sizeBytes, suffix, mult); in formatFileSize()
80 Resources res, long sizeBytes, int suffix, long mult) { in formatBytes() argument
112 final String units = res.getString(suffix); in formatBytes()
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DHelpers.java268 final String suffix; in generateSaveFile() local
275 suffix = ""; in generateSaveFile()
278 suffix = name.substring(dotIndex); in generateSaveFile()
285 suffix = chooseExtensionFromMimeType(mimeType, true); in generateSaveFile()
288 suffix = chooseExtensionFromFilename(mimeType, destination, name, dotIndex); in generateSaveFile()
293 name = generateAvailableFilenameLocked(parentTest, prefix, suffix); in generateSaveFile()
463 File[] parents, String prefix, String suffix) throws IOException { in generateAvailableFilenameLocked() argument
464 String name = prefix + suffix; in generateAvailableFilenameLocked()
486 name = prefix + Constants.FILENAME_SEQUENCE_SEPARATOR + sequence + suffix; in generateAvailableFilenameLocked()
/packages/services/Car/tools/
Dupdate-obd2-sensors.py71 def suffix(self, theSensors): member in SensorPolicy
100 s += self.suffix(theSensors) + "\n"
178 def suffix(self, theSensors): member in IntDefSensorPolicy
/packages/services/Car/tests/BugReportApp/src/com/google/android/car/bugreport/
DFileUtils.java112 static File getFileWithSuffix(Context context, String timestamp, String suffix) { in getFileWithSuffix() argument
113 return new File(createTempDir(context, timestamp), timestamp + suffix); in getFileWithSuffix()
/packages/modules/DnsResolver/tests/
DAndroid.bp187 suffix: "32",
190 suffix: "64",
/packages/modules/DnsResolver/
DAndroid.bp78 suffix: "32",
81 suffix: "64",
DDnsStatsTest.cpp117 *dumpString = sm.suffix(); in verifyDumpOutput()
126 *dumpString = sm.suffix(); in verifyDumpOutput()
DDnsQueryLogTest.cpp52 str = sm.suffix(); in verifyDumpOutput()
/packages/services/Car/tests/BugReportApp/utils/
Dbugreport_app_tester.py272 tmpdir = tempfile.mkdtemp(prefix='aae-bugreport-', suffix='db')
514 tmpdir = tempfile.mkdtemp(prefix='aae-bugreport-', suffix='zip', dir=".")
/packages/apps/TV/tuner/src/com/android/tv/tuner/tvinput/
DTunerRecordingSessionWorker.java408 int suffix = mRandom.nextInt(); in getStorageKey() local
409 return String.format(Locale.ENGLISH, "%016x_%016x", prefix, suffix); in getStorageKey()
DTunerRecordingSessionWorkerExoV2.java411 int suffix = mRandom.nextInt(); in getStorageKey() local
412 return String.format(Locale.ENGLISH, "%016x_%016x", prefix, suffix); in getStorageKey()

12