/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
D | NameSplitter.java | 184 private void putValueIfPresent(ContentValues values, String name, String value) { in putValueIfPresent() argument 186 values.put(name, value); in putValueIfPresent() 345 public void split(Name name, String fullName) { in split() argument 355 split(name, fullName, fullNameStyle); in split() 362 public void split(Name name, String fullName, int fullNameStyle) { in split() argument 367 name.fullNameStyle = fullNameStyle; in split() 371 splitChineseName(name, fullName); in split() 375 splitJapaneseName(name, fullName); in split() 379 splitKoreanName(name, fullName); in split() 383 splitWesternName(name, fullName); in split() [all …]
|
D | ContactLocaleUtils.java | 100 public String getSortKey(String name) { in getSortKey() argument 101 return name; in getSortKey() 113 public int getBucketIndex(String name) { in getBucketIndex() argument 115 final int length = name.length(); in getBucketIndex() 118 int codePoint = Character.codePointAt(name, offset); in getBucketIndex() 136 final int bucket = mAlphabeticIndex.getBucketIndex(name); in getBucketIndex() 171 public Iterator<String> getNameLookupKeys(String name, int nameStyle) { in getNameLookupKeys() argument 247 public int getBucketIndex(String name) { in getBucketIndex() argument 248 final int bucketIndex = super.getBucketIndex(name); in getBucketIndex() 250 !isChineseOrJapanese(Character.codePointAt(name, 0))) || in getBucketIndex() [all …]
|
D | DataRowHandlerForStructuredName.java | 53 String name = values.getAsString(StructuredName.DISPLAY_NAME); in insert() local 55 mNameLookupBuilder.insertNameLookup(rawContactId, dataId, name, in insert() 84 String name = augmented.getAsString(StructuredName.DISPLAY_NAME); in update() local 87 mNameLookupBuilder.insertNameLookup(rawContactId, dataId, name, in update() 132 NameSplitter.Name name = new NameSplitter.Name(); in fixStructuredNameComponents() local 133 mSplitter.split(name, unstruct); in fixStructuredNameComponents() 134 name.toValues(update); in fixStructuredNameComponents() 141 NameSplitter.Name name = new NameSplitter.Name(); in fixStructuredNameComponents() local 142 name.fromValues(augmented); in fixStructuredNameComponents() 144 name.fullNameStyle = FullNameStyle.UNDEFINED; in fixStructuredNameComponents() [all …]
|
D | NameLookupBuilder.java | 99 public void insertNameLookup(long rawContactId, long dataId, String name, int fullNameStyle) { in insertNameLookup() argument 100 int tokenCount = mSplitter.tokenize(mNames, name); in insertNameLookup() 142 public void appendToSearchIndex(IndexBuilder builder, String name, int fullNameStyle) { in appendToSearchIndex() argument 143 int tokenCount = mSplitter.tokenize(mNames, name); in appendToSearchIndex() 152 appendNameShorthandLookup(builder, name, fullNameStyle); in appendToSearchIndex() 153 appendNameLookupForLocaleBasedName(builder, name, fullNameStyle); in appendToSearchIndex() 162 NameSplitter.Name name = new NameSplitter.Name(); in appendNameLookupForLocaleBasedName() local 163 mSplitter.split(name, fullName, fullNameStyle); in appendNameLookupForLocaleBasedName() 164 if (name.givenNames != null) { in appendNameLookupForLocaleBasedName() 165 builder.appendName(name.givenNames); in appendNameLookupForLocaleBasedName() [all …]
|
/packages/apps/Email/tests/src/com/android/email/provider/ |
D | ProviderTestUtils.java | 50 public static Account setupAccount(String name, boolean saveIt, Context context) { in setupAccount() argument 53 account.mDisplayName = name; in setupAccount() 54 account.mEmailAddress = name + "@android.com"; in setupAccount() 55 account.mSyncKey = "sync-key-" + name; in setupAccount() 61 account.mCompatibilityUuid = "test-uid-" + name; in setupAccount() 62 account.mSenderName = name; in setupAccount() 63 account.mProtocolVersion = "2.5" + name; in setupAccount() 64 account.mNewMessageCount = 5 + name.length(); in setupAccount() 66 account.mSecuritySyncKey = "sec-sync-key-" + name; in setupAccount() 67 account.mSignature = "signature-" + name; in setupAccount() [all …]
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
D | NameSplitterTest.java | 315 final Name name = new Name(); in assertSplitName() local 316 mNameSplitter.split(name, fullName); in assertSplitName() 317 assertEquals(prefix, name.getPrefix()); in assertSplitName() 318 assertEquals(givenNames, name.getGivenNames()); in assertSplitName() 319 assertEquals(middleName, name.getMiddleName()); in assertSplitName() 320 assertEquals(familyName, name.getFamilyName()); in assertSplitName() 321 assertEquals(suffix, name.getSuffix()); in assertSplitName() 332 Name name = new Name(); in assertJoinedName() local 333 name.fullNameStyle = nameStyle; in assertJoinedName() 334 name.prefix = prefix; in assertJoinedName() [all …]
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/research/ |
D | JsonUtils.java | 52 jsonWriter.name(entry.getKey()); in writeJson() 78 jsonWriter.name("code").value(key.getCode()); in writeJson() 79 jsonWriter.name("altCode").value(key.getAltCode()); in writeJson() 80 jsonWriter.name("x").value(key.getX()); in writeJson() 81 jsonWriter.name("y").value(key.getY()); in writeJson() 82 jsonWriter.name("w").value(key.getWidth()); in writeJson() 83 jsonWriter.name("h").value(key.getHeight()); in writeJson() 90 jsonWriter.name("typedWordValid").value(words.mTypedWordValid); in writeJson() 91 jsonWriter.name("willAutoCorrect") in writeJson() 93 jsonWriter.name("isPunctuationSuggestions") in writeJson() [all …]
|
/packages/apps/UnifiedEmail/src/com/google/android/mail/common/html/parser/ |
D | HTML.java | 52 private final String name; field in HTML.Element 68 public Element(String name, int type, boolean empty, in Element() argument 70 Preconditions.checkNotNull(name, "Element name can not be null"); in Element() 72 this.name = name; in Element() 83 public Element(String name, int type, boolean empty, in Element() argument 85 this(name, type, empty, optionalEndTag, breaksFlow, Flow.NONE); in Element() 90 return name; in getName() 126 return name; in toString() 136 return this.name.equals(that.name); in equals() 143 return this.name.hashCode(); in hashCode() [all …]
|
D | HtmlParser.java | 435 private String name; field in HtmlParser.AttributeScanner 460 name = null; in reset() 575 if (name == null && startNamePos != -1 && endNamePos != -1) { in getName() 576 name = html.substring(startNamePos, endNamePos); in getName() 578 return name; in getName() 606 private HTML.Element lookupUnknownElement(String name) { in lookupUnknownElement() argument 607 name = name.toLowerCase(); in lookupUnknownElement() 608 HTML.Element result = unknownElements.get(name); in lookupUnknownElement() 610 result = new HTML.Element(name, in lookupUnknownElement() 616 unknownElements.put(name, result); in lookupUnknownElement() [all …]
|
/packages/apps/UnifiedEmail/src/com/android/mail/lib/html/parser/ |
D | HTML.java | 51 private final String name; field in HTML.Element 67 public Element(String name, int type, boolean empty, in Element() argument 69 Preconditions.checkNotNull(name, "Element name can not be null"); in Element() 71 this.name = name; in Element() 82 public Element(String name, int type, boolean empty, in Element() argument 84 this(name, type, empty, optionalEndTag, breaksFlow, Flow.NONE); in Element() 89 return name; in getName() 125 return name; in toString() 135 return this.name.equals(that.name); in equals() 142 return this.name.hashCode(); in hashCode() [all …]
|
/packages/apps/Exchange/src/com/android/exchange/utility/ |
D | SimpleIcsWriter.java | 63 public void writeTag(String name, String value) { in writeTag() argument 74 if ("CALSCALE".equals(name) in writeTag() 75 || "METHOD".equals(name) in writeTag() 76 || "PRODID".equals(name) in writeTag() 77 || "VERSION".equals(name) in writeTag() 78 || "CATEGORIES".equals(name) in writeTag() 79 || "CLASS".equals(name) in writeTag() 80 || "COMMENT".equals(name) in writeTag() 81 || "DESCRIPTION".equals(name) in writeTag() 82 || "LOCATION".equals(name) in writeTag() [all …]
|
/packages/experimental/procstatlog/ |
D | procstatlog.c | 58 char *name; // filename, plus ":var" for many-valued files member 74 data->name = strdup(filename); in read_data() 144 data->name = malloc(filename_len + 1 + (name_end - line) + 1); in read_lines() 145 unspace(data->name, filename, filename_len); in read_lines() 146 data->name[filename_len] = ':'; in read_lines() 147 unspace(data->name + filename_len + 1, line, name_end - line); in read_lines() 148 data->name[filename_len + 1 + (name_end - line)] = '\0'; in read_lines() 194 data->name = malloc(12 + device_len + 1 + (name_end - line) + 1); in read_proc_yaffs() 195 memcpy(data->name, "/proc/yaffs:", 12); in read_proc_yaffs() 196 unspace(data->name + 12, device, device_len); in read_proc_yaffs() [all …]
|
/packages/apps/UnifiedEmail/src/com/android/emailcommon/internet/ |
D | MimeHeader.java | 61 public String getFirstHeader(String name) throws MessagingException { in getFirstHeader() argument 62 String[] header = getHeader(name); in getFirstHeader() 69 public void addHeader(String name, String value) throws MessagingException { in addHeader() argument 70 mFields.add(new Field(name, value)); in addHeader() 73 public void setHeader(String name, String value) throws MessagingException { in setHeader() argument 74 if (name == null || value == null) { in setHeader() 77 removeHeader(name); in setHeader() 78 addHeader(name, value); in setHeader() 81 public String[] getHeader(String name) throws MessagingException { in getHeader() argument 84 if (field.name.equalsIgnoreCase(name)) { in getHeader() [all …]
|
D | MimeBodyPart.java | 59 protected String getFirstHeader(String name) throws MessagingException { in getFirstHeader() argument 60 return mHeader.getFirstHeader(name); in getFirstHeader() 64 public void addHeader(String name, String value) throws MessagingException { in addHeader() argument 65 mHeader.addHeader(name, value); in addHeader() 69 public void setHeader(String name, String value) throws MessagingException { in setHeader() argument 70 mHeader.setHeader(name, value); in setHeader() 74 public String[] getHeader(String name) throws MessagingException { in getHeader() argument 75 return mHeader.getHeader(name); in getHeader() 79 public void removeHeader(String name) throws MessagingException { in removeHeader() argument 80 mHeader.removeHeader(name); in removeHeader() [all …]
|
/packages/apps/VoiceDialer/src/com/android/voicedialer/ |
D | CommandRecognizerEngine.java | 201 String name = scrubName(contact.mName); in addNameEntriesToGrammar() local 202 if (name.length() == 0 || !entries.add(name)) continue; in addNameEntriesToGrammar() 215 mSrecGrammar.addWordToSlot("@Names", name, null, 1, sb.toString()); in addNameEntriesToGrammar() 257 if (voiceDialerClassName.equals(ri.activityInfo.name)) continue; in loadOpenEntriesTable() 265 ri.activityInfo.packageName, ri.activityInfo.name); in loadOpenEntriesTable() 281 ri.activityInfo.packageName, ri.activityInfo.name); in loadOpenEntriesTable() 388 private static String scrubName(String name) { in scrubName() argument 390 name = name.replace("&", " and "); in scrubName() 393 name = name.replace("@", " at "); in scrubName() 397 int i = name.indexOf('('); in scrubName() [all …]
|
/packages/apps/Exchange/tests/src/com/android/exchange/provider/ |
D | EmailContentSetupUtils.java | 39 public static Account setupAccount(String name, boolean saveIt, Context context) { in setupAccount() argument 42 account.mDisplayName = name; in setupAccount() 43 account.mEmailAddress = name + "@android.com"; in setupAccount() 44 account.mProtocolVersion = "2.5" + name; in setupAccount() 54 public static Mailbox setupMailbox(String name, long accountId, boolean saveIt, in setupMailbox() argument 56 return setupMailbox(name, accountId, saveIt, context, Mailbox.TYPE_MAIL, null); in setupMailbox() 59 public static Mailbox setupMailbox(String name, long accountId, boolean saveIt, in setupMailbox() argument 61 return setupMailbox(name, accountId, saveIt, context, type, null); in setupMailbox() 64 public static Mailbox setupMailbox(String name, long accountId, boolean saveIt, in setupMailbox() argument 68 box.mDisplayName = name; in setupMailbox() [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/map/ |
D | BluetoothMapbMessage.java | 67 private String name = null; field in BluetoothMapbMessage.vCard 81 public vCard(String name, String formattedName, String[] phoneNumbers, in vCard() argument 85 this.name = name != null ? name : ""; in vCard() 99 public vCard(String name, String[] phoneNumbers, in vCard() argument 103 this.name = name != null ? name : ""; in vCard() 116 … public vCard(String name, String formattedName, String[] phoneNumbers, String[] emailAddresses) { in vCard() argument 118 this.name = name != null ? name : ""; in vCard() 131 public vCard(String name, String[] phoneNumbers, String[] emailAddresses) { in vCard() argument 133 this.name = name != null ? name : ""; in vCard() 168 if (name != null) in encode() [all …]
|
D | BluetoothMapContent.java | 260 String name = c.getString(c.getColumnIndex("name")); in printMmsParts() local 271 "\n partname : " + name + in printMmsParts() 516 String name = null; in setRecipientName() local 521 name = getContactNameFromPhone(phone); in setRecipientName() 523 name = fi.phoneAlphaTag; in setRecipientName() 528 name = getContactNameFromPhone(phone); in setRecipientName() 530 if (D) Log.d(TAG, "setRecipientName: " + name); in setRecipientName() 531 e.setRecipientName(name); in setRecipientName() 558 String name = null; in setSenderName() local 563 name = getContactNameFromPhone(phone); in setSenderName() [all …]
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
D | ContactsBinaryDictionary.java | 167 String name = cursor.getString(INDEX_NAME); in addWords() local 168 if (isValidName(name)) { in addWords() 169 addName(name); in addWords() 199 private void addName(final String name) { in addName() argument 200 int len = StringUtils.codePointCount(name); in addName() 204 if (Character.isLetter(name.codePointAt(i))) { in addName() 205 int end = getWordEndPosition(name, len, i); in addName() 206 String word = name.substring(i, end); in addName() 213 Log.d(TAG, "addName " + name + ", " + word + ", " + prevWord); in addName() 277 String name = cursor.getString(INDEX_NAME); in hasContentChanged() local [all …]
|
/packages/apps/UnifiedEmail/src/com/android/mail/providers/ |
D | Address.java | 81 public Address(String name, String address) { in Address() argument 82 setName(name); in Address() 120 String name, address; in getEmailAddress() local 124 name = tokenizedName != null ? Utils.convertHtmlToPlainText(tokenizedName.trim()) in getEmailAddress() 128 name = ""; in getEmailAddress() 132 return new Address(name, address); in getEmailAddress() 162 public void setName(String name) { in setName() argument 163 mName = decodeAddressName(name); in setName() 172 public static String decodeAddressName(String name) { in decodeAddressName() argument 173 if (name != null) { in decodeAddressName() [all …]
|
D | Attachment.java | 76 private String name; field in Attachment 176 name = in.readString(); in Attachment() 197 name = cursor.getString(cursor.getColumnIndex(AttachmentColumns.NAME)); in Attachment() 218 name = srcJson.optString(AttachmentColumns.NAME, null); in Attachment() 241 name = MimeUtility.getHeaderParameter(contentTypeHeader, "name"); in Attachment() 242 if (name == null) { in Attachment() 245 name = MimeUtility.getHeaderParameter(contentDisposition, "filename"); in Attachment() 248 contentType = MimeType.inferMimeType(name, part.getMimeType()); in Attachment() 289 name = values.getAsString(AttachmentColumns.NAME); in Attachment() 313 values.put(AttachmentColumns.NAME, name); in toContentValues() [all …]
|
/packages/providers/ContactsProvider/tests/assets/testUnsynced/ |
D | legacy_contacts.sql | 10 …REMENT,number TEXT,date INTEGER,duration INTEGER,type INTEGER,new INTEGER,name TEXT,numbertype INT… field 15 …R PRIMARY KEY AUTOINCREMENT,name TEXT NOT NULL,value TEXT NOT NULL,person INTEGER REFERENCES peopl… field 30 …DEFAULT 0,_sync_mark INTEGER,name TEXT NOT NULL,notes TEXT,should_sync INTEGER NOT NULL DEFAULT 0,… field 33 …ocal_id INTEGER,_sync_dirty INTEGER NOT NULL DEFAULT 0,_sync_mark INTEGER,name TEXT COLLATE LOCALI… field 66 CREATE TABLE sqlite_sequence(name,seq); field 75 CREATE INDEX extensionsIndex1 ON extensions (person, name); 83 CREATE INDEX peopleNameIndex ON people (name); 110 …!= '') THEN new.phonetic_name ELSE (CASE WHEN (new.name is NOT NULL AND new.name != '') THEN new.n… 111 …name, phonetic_name ON people BEGIN DELETE FROM peopleLookupWithPhoneticName WHERE source = new._i… 112 …nsert AFTER INSERT ON people BEGIN SELECT _TOKENIZE('peopleLookup', new._id, new.name, ' ', 1);END; [all …]
|
/packages/providers/ContactsProvider/tests/assets/testSynced/ |
D | legacy_contacts.sql | 11 …REMENT,number TEXT,date INTEGER,duration INTEGER,type INTEGER,new INTEGER,name TEXT,numbertype INT… field 18 …R PRIMARY KEY AUTOINCREMENT,name TEXT NOT NULL,value TEXT NOT NULL,person INTEGER REFERENCES peopl… field 40 …DEFAULT 0,_sync_mark INTEGER,name TEXT NOT NULL,notes TEXT,should_sync INTEGER NOT NULL DEFAULT 0,… field 43 …ocal_id INTEGER,_sync_dirty INTEGER NOT NULL DEFAULT 0,_sync_mark INTEGER,name TEXT COLLATE LOCALI… field 122 CREATE TABLE sqlite_sequence(name,seq); field 131 CREATE INDEX extensionsIndex1 ON extensions (person, name); 139 CREATE INDEX peopleNameIndex ON people (name); 166 …!= '') THEN new.phonetic_name ELSE (CASE WHEN (new.name is NOT NULL AND new.name != '') THEN new.n… 167 …name, phonetic_name ON people BEGIN DELETE FROM peopleLookupWithPhoneticName WHERE source = new._i… 168 …nsert AFTER INSERT ON people BEGIN SELECT _TOKENIZE('peopleLookup', new._id, new.name, ' ', 1);END; [all …]
|
/packages/providers/ContactsProvider/tests/assets/test1/ |
D | legacy_contacts.sql | 12 …REMENT,number TEXT,date INTEGER,duration INTEGER,type INTEGER,new INTEGER,name TEXT,numbertype INT… field 31 …R PRIMARY KEY AUTOINCREMENT,name TEXT NOT NULL,value TEXT NOT NULL,person INTEGER REFERENCES peopl… field 47 …DEFAULT 0,_sync_mark INTEGER,name TEXT NOT NULL,notes TEXT,should_sync INTEGER NOT NULL DEFAULT 0,… field 53 …ocal_id INTEGER,_sync_dirty INTEGER NOT NULL DEFAULT 0,_sync_mark INTEGER,name TEXT COLLATE LOCALI… field 96 CREATE TABLE sqlite_sequence(name,seq); field 107 CREATE INDEX extensionsIndex1 ON extensions (person, name); 115 CREATE INDEX peopleNameIndex ON people (name); 142 …!= '') THEN new.phonetic_name ELSE (CASE WHEN (new.name is NOT NULL AND new.name != '') THEN new.n… 143 …name, phonetic_name ON people BEGIN DELETE FROM peopleLookupWithPhoneticName WHERE source = new._i… 144 …nsert AFTER INSERT ON people BEGIN SELECT _TOKENIZE('peopleLookup', new._id, new.name, ' ', 1);END; [all …]
|
/packages/apps/UnifiedEmail/src/org/apache/commons/io/ |
D | IOCase.java | 63 private final String name; field in IOCase 76 public static IOCase forName(String name) { in forName() argument 77 if (IOCase.SENSITIVE.name.equals(name)){ in forName() 80 if (IOCase.INSENSITIVE.name.equals(name)){ in forName() 83 if (IOCase.SYSTEM.name.equals(name)){ in forName() 86 throw new IllegalArgumentException("Invalid IOCase name: " + name); in forName() 96 private IOCase(String name, boolean sensitive) { in IOCase() argument 97 this.name = name; in IOCase() 108 return forName(name); in readResolve() 118 return name; in getName() [all …]
|