/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 | 110 public String getSortKey(String name) { in getSortKey() argument 111 return name; in getSortKey() 123 public int getBucketIndex(String name) { in getBucketIndex() argument 125 final int length = name.length(); in getBucketIndex() 128 int codePoint = Character.codePointAt(name, offset); in getBucketIndex() 151 name = HanziToPinyin.getInstance().transliterate(name); in getBucketIndex() 153 final int bucket = mAlphabeticIndex.getBucketIndex(name); in getBucketIndex() 188 public Iterator<String> getNameLookupKeys(String name, int nameStyle) { in getNameLookupKeys() argument 264 public int getBucketIndex(String name) { in getBucketIndex() argument 265 final int bucketIndex = super.getBucketIndex(name); 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() 80 String name = augmented.getAsString(StructuredName.DISPLAY_NAME); in update() local 83 mNameLookupBuilder.insertNameLookup(rawContactId, dataId, name, in update() 127 NameSplitter.Name name = new NameSplitter.Name(); in fixStructuredNameComponents() local 128 mSplitter.split(name, unstruct); in fixStructuredNameComponents() 129 name.toValues(update); in fixStructuredNameComponents() 136 NameSplitter.Name name = new NameSplitter.Name(); in fixStructuredNameComponents() local 137 name.fromValues(augmented); in fixStructuredNameComponents() 139 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.mSenderName = name; in setupAccount() 62 account.mProtocolVersion = "2.5" + name; in setupAccount() 64 account.mSecuritySyncKey = "sec-sync-key-" + name; in setupAccount() 65 account.mSignature = "signature-" + name; in setupAccount() 83 public static HostAuth setupHostAuth(String name, long accountId, boolean saveIt, in setupHostAuth() argument 85 return setupHostAuth("protocol", name, saveIt, context); in setupHostAuth() [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/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/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/Bluetooth/src/com/android/bluetooth/map/ |
D | BluetoothMapFolderElement.java | 49 public BluetoothMapFolderElement( String name, BluetoothMapFolderElement parrent){ in BluetoothMapFolderElement() argument 50 this.mName = name; in BluetoothMapFolderElement() 101 public BluetoothMapFolderElement getEmailFolderByName(String name) { in getEmailFolderByName() argument 105 folderElement = folderElement.getSubFolder(name); in getEmailFolderByName() 157 public BluetoothMapFolderElement addFolder(String name){ in addFolder() argument 158 name = name.toLowerCase(Locale.US); in addFolder() 159 BluetoothMapFolderElement newFolder = mSubFolders.get(name); in addFolder() 160 if(D) Log.i(TAG,"addFolder():" + name); in addFolder() 162 newFolder = new BluetoothMapFolderElement(name, this); in addFolder() 163 mSubFolders.put(name, newFolder); in addFolder() [all …]
|
D | BluetoothMapContent.java | 487 String name = null; in setRecipientName() local 493 name = getContactNameFromPhone(phone); in setRecipientName() 495 name = fi.mPhoneAlphaTag; in setRecipientName() 506 name = getContactNameFromPhone(phone); in setRecipientName() 509 name = setRecipientAddressingEmail(e,c,fi); in setRecipientName() 511 if (V) Log.v(TAG, "setRecipientName: " + name); in setRecipientName() 512 if(name == null) in setRecipientName() 513 name = ""; in setRecipientName() 514 e.setRecipientName(name); in setRecipientName() 565 String name = null; in setSenderName() local [all …]
|
/packages/apps/UnifiedEmail/src/com/android/emailcommon/internet/ |
D | MimeHeader.java | 57 public String getFirstHeader(String name) throws MessagingException { in getFirstHeader() argument 58 String[] header = getHeader(name); in getFirstHeader() 65 public void addHeader(String name, String value) throws MessagingException { in addHeader() argument 66 mFields.add(new Field(name, value)); in addHeader() 69 public void setHeader(String name, String value) throws MessagingException { in setHeader() argument 70 if (name == null || value == null) { in setHeader() 73 removeHeader(name); in setHeader() 74 addHeader(name, value); in setHeader() 77 public String[] getHeader(String name) throws MessagingException { in getHeader() argument 80 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/Settings/src/com/android/settings/fuelgauge/ |
D | BatteryEntry.java | 119 public String name; field in BatteryEntry 125 String name; field in BatteryEntry.UidToDetail 136 name = context.getResources().getString(R.string.power_idle); in BatteryEntry() 140 name = context.getResources().getString(R.string.power_cell); in BatteryEntry() 144 name = context.getResources().getString(R.string.power_phone); in BatteryEntry() 148 name = context.getResources().getString(R.string.power_wifi); in BatteryEntry() 152 name = context.getResources().getString(R.string.power_bluetooth); in BatteryEntry() 156 name = context.getResources().getString(R.string.power_screen); in BatteryEntry() 160 name = context.getResources().getString(R.string.power_flashlight); in BatteryEntry() 164 name = sipper.packageWithHighestDrain; in BatteryEntry() [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/UnifiedEmail/src/com/android/mail/providers/ |
D | Attachment.java | 75 private String name; field in Attachment 175 name = in.readString(); in Attachment() 196 name = cursor.getString(cursor.getColumnIndex(AttachmentColumns.NAME)); in Attachment() 217 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() 290 name = values.getAsString(AttachmentColumns.NAME); in Attachment() 315 values.put(AttachmentColumns.NAME, name); in toContentValues() [all …]
|
/packages/providers/DownloadProvider/src/com/android/providers/downloads/ |
D | Helpers.java | 80 String name = null; in generateSaveFile() local 86 name = file.getName(); in generateSaveFile() 93 name = chooseFilename(url, hint, contentDisposition, contentLocation); in generateSaveFile() 104 name = DownloadDrmHelper.modifyDrmFwLockFileExtension(name); in generateSaveFile() 109 final int dotIndex = name.lastIndexOf('.'); in generateSaveFile() 114 prefix = name; in generateSaveFile() 117 prefix = name.substring(0, dotIndex); in generateSaveFile() 118 suffix = name.substring(dotIndex); in generateSaveFile() 124 prefix = name; in generateSaveFile() 127 prefix = name.substring(0, dotIndex); in generateSaveFile() [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/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
D | ContactsBinaryDictionary.java | 78 final File dictFile, final String name) { in ContactsBinaryDictionary() argument 79 super(context, getDictName(name, locale, dictFile), locale, Dictionary.TYPE_CONTACTS, in ContactsBinaryDictionary() 179 String name = cursor.getString(INDEX_NAME); in addWordsLocked() local 180 if (isValidName(name)) { in addWordsLocked() 181 names.add(name); in addWordsLocked() 182 addNameLocked(name); in addWordsLocked() 186 Log.d(TAG, "Invalid name: " + name); in addWordsLocked() 219 private void addNameLocked(final String name) { in addNameLocked() argument 220 int len = StringUtils.codePointCount(name); in addNameLocked() 224 if (Character.isLetter(name.codePointAt(i))) { in addNameLocked() [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/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/apps/Bluetooth/src/com/android/bluetooth/pbap/ |
D | BluetoothPbapObexServer.java | 322 String name = ""; in onGet() local 328 name = (String)request.getHeader(HeaderSet.NAME); in onGet() 336 if (D) Log.d(TAG, "OnGet type is " + type + "; name is " + name); in onGet() 350 if (TextUtils.isEmpty(name)) { in onGet() 376 if (name.contains(SIM1.subSequence(0, SIM1.length()))) { in onGet() 384 if (isNameMatchTarget(name, PB)) { in onGet() 387 } else if (isNameMatchTarget(name, ICH)) { in onGet() 390 } else if (isNameMatchTarget(name, OCH)) { in onGet() 393 } else if (isNameMatchTarget(name, MCH)) { in onGet() 397 } else if (isNameMatchTarget(name, CCH)) { in onGet() [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 …]
|