Searched refs:suffix (Results 1 - 23 of 23) sorted by relevance

/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/dictionary/utils/
H A 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,
44 // Returns whether the filePath have the suffix.
45 static bool getFilePathWithoutSuffix(const char *const filePath, const char *const suffix,
H A Dfile_utils.cpp98 const char *const suffix) {
99 return strlen(filePath) + strlen(suffix) + 1 /* terminator */;
103 const char *const suffix, const int filePathBufSize, char *const outFilePath) {
104 snprintf(outFilePath, filePathBufSize, "%s%s", filePath, suffix);
118 const char *const suffix, const int outDirPathBufSize, char *const outDirPath) {
120 const int suffixLength = strlen(suffix);
122 AKLOGE("File path length (%s:%d) is shorter that suffix length (%s:%d).",
123 filePath, filePathLength, suffix, suffixLength);
128 AKLOGE("outDirPathBufSize is too small. filePath: %s, suffix: %s, outDirPathBufSize: %d",
129 filePath, suffix, outDirPathBufSiz
97 getFilePathWithSuffixBufSize(const char *const filePath, const char *const suffix) argument
102 getFilePathWithSuffix(const char *const filePath, const char *const suffix, const int filePathBufSize, char *const outFilePath) argument
117 getFilePathWithoutSuffix(const char *const filePath, const char *const suffix, const int outDirPathBufSize, char *const outDirPath) argument
[all...]
H A Ddict_file_writing_utils.cpp83 const char *const suffix, const BufferWithExtendableBuffer *const buffer) {
84 const int filePathBufSize = FileUtils::getFilePathWithSuffixBufSize(basePath, suffix);
86 FileUtils::getFilePathWithSuffix(basePath, suffix, filePathBufSize, filePath);
82 flushBufferToFileWithSuffix(const char *const basePath, const char *const suffix, const BufferWithExtendableBuffer *const buffer) argument
H A Ddict_file_writing_utils.h38 static bool flushBufferToFileWithSuffix(const char *const basePath, const char *const suffix,
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/util/
H A DTempPath.java35 * The prefix will be empty and the suffix will be
45 * The prefix and suffix can be set by the user.
48 * @param suffix the suffix to use. <code>null</code> gives
52 TempFile createTempFile(String prefix, String suffix) throws IOException; argument
59 * The prefix and suffix can be set by the user.
62 * @param suffix the suffix to use. <code>null</code> gives
69 TempFile createTempFile(String prefix, String suffix, argument
H A DSimpleTempStorage.java79 String suffix) throws IOException {
84 if (suffix == null) {
85 suffix = ".tmp";
94 f = new File(parent.getAbsolutePath(), prefix + n + suffix);
142 public TempFile createTempFile(String prefix, String suffix) argument
145 return SimpleTempStorage.this.createTempFile(this, prefix, suffix);
151 public TempFile createTempFile(String prefix, String suffix, argument
155 return SimpleTempStorage.this.createTempFile(this, prefix, suffix);
78 createTempFile(TempPath parent, String prefix, String suffix) argument
/packages/apps/UnifiedEmail/src/org/apache/commons/io/filefilter/
H A DSuffixFileFilter.java26 * Filters files based on the suffix (what the filename ends with).
59 * @param suffix the suffix to allow, must not be null
60 * @throws IllegalArgumentException if the suffix is null
62 public SuffixFileFilter(String suffix) { argument
63 this(suffix, IOCase.SENSITIVE);
70 * @param suffix the suffix to allow, must not be null
72 * @throws IllegalArgumentException if the suffix is null
75 public SuffixFileFilter(String suffix, IOCas argument
[all...]
H A DFileFilterUtils.java59 * @param suffix the filename suffix
60 * @return a suffix checking filter
62 public static IOFileFilter suffixFileFilter(String suffix) { argument
63 return new SuffixFileFilter(suffix);
/packages/apps/UnifiedEmail/src/org/apache/commons/io/output/
H A DDeferredFileOutputStream.java77 * The temporary file suffix.
79 private String suffix; field in class:DeferredFileOutputStream
118 * @param suffix Suffix to use for the temporary file.
123 public DeferredFileOutputStream(int threshold, String prefix, String suffix, File directory) argument
130 this.suffix = suffix;
163 outputFile = File.createTempFile(prefix, suffix, directory);
213 * If constructor specifying a temporary file prefix/suffix is used
/packages/apps/Exchange/tests/src/com/android/exchange/eas/
H A DEasSyncContactsTests.java125 final String suffix = "Jr.";
129 nameValues.put(StructuredName.SUFFIX, suffix);
131 final String generatedName = lastName + " " + suffix + ", " + firstName + " " + middleName;
140 final String suffix = "Jr.";
143 nameValues.put(StructuredName.SUFFIX, suffix);
145 final String generatedName = lastName + " " + suffix + ", " + middleName;
149 // This will generate a string that is missing both the last name and the suffix.
154 final String suffix = "Jr.";
157 nameValues.put(StructuredName.SUFFIX, suffix);
168 final String suffix
[all...]
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
H A DNameSplitter.java89 public String suffix; field in class:NameSplitter.Name
103 String suffix) {
108 this.suffix = suffix;
130 return suffix;
158 suffix = values.getAsString(StructuredName.SUFFIX);
176 putValueIfPresent(values, StructuredName.SUFFIX, suffix);
195 suffix = null;
207 && TextUtils.isEmpty(suffix)
216 + " family: " + familyName + " suffix
102 Name(String prefix, String givenNames, String middleName, String familyName, String suffix) argument
559 join(String prefix, String part1, String part2, String part3, String suffix, boolean useSpace, boolean useCommaAfterPart1, boolean useCommaAfterPart3) argument
669 normalizedSuffix(String suffix) argument
[all...]
H A DContactsDatabaseHelper.java3048 name.suffix = cursor.getString(StructName205Query.SUFFIX);
5067 // Skip the suffix match entirely if we are using strict number comparison.
5434 name.suffix = c.getString(RawContactNameQuery.SUFFIX);
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
H A DNameSplitterTest.java314 String middleName, String familyName, String suffix) {
321 assertEquals(suffix, name.getSuffix());
325 String middleName, String familyName, String suffix) {
327 familyName, suffix, true);
331 String middleName, String familyName, String suffix, boolean givenNameFirst) {
338 name.suffix = suffix;
313 assertSplitName(String fullName, String prefix, String givenNames, String middleName, String familyName, String suffix) argument
324 assertJoinedName(String expected, String prefix, String givenNames, String middleName, String familyName, String suffix) argument
330 assertJoinedName(String expected, int nameStyle, String prefix, String givenNames, String middleName, String familyName, String suffix, boolean givenNameFirst) argument
H A DTestUtils.java92 public static final String dumpToCacheDir(Context context, String prefix, String suffix, argument
95 File file = File.createTempFile(prefix, suffix, context.getCacheDir());
H A DBaseContactsProvider2Test.java655 String middleName, String familyName, String suffix) {
673 assertEquals(suffix, c.getString(4));
654 assertStructuredName(long rawContactId, String prefix, String givenName, String middleName, String familyName, String suffix) argument
H A DContactsProvider2Test.java7107 String suffix = " COLLATE LOCALIZED DESC";
7108 assertEquals(ContactsColumns.PHONEBOOK_BUCKET_ALTERNATIVE + suffix
7109 + ", " + Contacts.SORT_KEY_ALTERNATIVE + suffix,
7111 + suffix));
/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/util/
H A DNameConverterTests.java70 * @param suffix Expected suffix (null if not expected).
73 String givenName, String middleName, String familyName, String suffix) {
80 checkNameComponent(StructuredName.SUFFIX, suffix, structuredName);
72 assertStructuredName(String displayName, String prefix, String givenName, String middleName, String familyName, String suffix) argument
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
H A DHelpers.java108 final String suffix;
115 suffix = "";
118 suffix = name.substring(dotIndex);
125 suffix = chooseExtensionFromMimeType(mimeType, true);
128 suffix = chooseExtensionFromFilename(mimeType, destination, name, dotIndex);
133 name = generateAvailableFilenameLocked(parentTest, prefix, suffix);
303 File[] parents, String prefix, String suffix) throws IOException {
304 String name = prefix + suffix;
326 name = prefix + Constants.FILENAME_SEQUENCE_SEPARATOR + sequence + suffix;
302 generateAvailableFilenameLocked( File[] parents, String prefix, String suffix) argument
/packages/apps/Browser/src/com/android/browser/
H A DUploadHandler.java155 private Uri createTempFileContentUri(String suffix) { argument
162 String.valueOf(System.currentTimeMillis()), suffix, mediaPath);
/packages/apps/VoiceDialer/src/com/android/voicedialer/
H A DRecognizerLogger.java190 * Delete oldest files with a given suffix, if more than MAX_FILES.
191 * @param suffix delete oldest files with this suffix.
193 private void deleteOldest(final String suffix) { argument
197 return name.startsWith("log_") && name.endsWith(suffix);
/packages/apps/UnifiedEmail/src/com/google/android/mail/common/base/
H A DStringUtil.java624 * Give me a string and a potential suffix, and I return the string
625 * before the suffix if the suffix matches, else null.
629 * @param suffix the expected suffix
631 * does not end with the suffix
633 public static String stripSuffix(String str, String suffix) { argument
634 return str.endsWith(suffix)
635 ? str.substring(0, str.length() - suffix.length())
645 * @param suffix th
649 stripSuffixIgnoreCase( String str, String suffix) argument
2854 endsWithIgnoreCase(String str, String suffix) argument
[all...]
/packages/apps/Email/provider_src/com/android/email/service/
H A DAttachmentService.java1339 final String suffix;
1342 suffix = fileName.substring(lastDot);
1344 suffix = "[none]";
1346 pw.print(" Suffix: " + suffix);
/packages/apps/Exchange/src/com/android/exchange/adapter/
H A DContactsSyncParser.java99 String suffix = null;
133 suffix = getValue();
315 ops.addName(entity, prefix, firstName, lastName, middleName, suffix,
1084 String middleName, String suffix, String yomiFirstName, String yomiLastName) {
1093 cvCompareString(cv, StructuredName.SUFFIX, suffix)) {
1099 builder.withValue(StructuredName.SUFFIX, suffix);
1083 addName(Entity entity, String prefix, String givenName, String familyName, String middleName, String suffix, String yomiFirstName, String yomiLastName) argument

Completed in 593 milliseconds