Home
last modified time | relevance | path

Searched refs:name (Results 1 – 25 of 1430) sorted by relevance

12345678910>>...58

/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DNameSplitter.java184 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 …]
DContactLocaleUtils.java188 public String getSortKey(String name) { in getSortKey() argument
189 return name; in getSortKey()
205 public int getBucketIndex(String name) { in getBucketIndex() argument
207 final int length = name.length(); in getBucketIndex()
210 int codePoint = Character.codePointAt(name, offset); in getBucketIndex()
236 name = HanziToPinyin.getInstance().transliterate(name); in getBucketIndex()
238 final int bucket = mAlphabeticIndex.getBucketIndex(name); in getBucketIndex()
273 public Iterator<String> getNameLookupKeys(String name, int nameStyle) { in getNameLookupKeys() argument
349 public int getBucketIndex(String name) { in getBucketIndex() argument
350 final int bucketIndex = super.getBucketIndex(name); in getBucketIndex()
[all …]
DDataRowHandlerForStructuredName.java53 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 …]
/packages/services/Car/tools/emulator/
DVehicleHalProto_pb2.py15 name='VehicleHalProto.proto',
20 name='MsgType',
26 name='GET_CONFIG_CMD', index=0, number=0,
30 name='GET_CONFIG_RESP', index=1, number=1,
34 name='GET_CONFIG_ALL_CMD', index=2, number=2,
38 name='GET_CONFIG_ALL_RESP', index=3, number=3,
42 name='GET_PROPERTY_CMD', index=4, number=4,
46 name='GET_PROPERTY_RESP', index=5, number=5,
50 name='GET_PROPERTY_ALL_CMD', index=6, number=6,
54 name='GET_PROPERTY_ALL_RESP', index=7, number=7,
[all …]
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DRenamingDelegatingContext.java135 private String renamedFileName(String name) { in renamedFileName() argument
136 return mFilePrefix + name; in renamedFileName()
140 public SQLiteDatabase openOrCreateDatabase(String name, in openOrCreateDatabase() argument
142 if (name.startsWith("/")) { in openOrCreateDatabase()
143 return mFileContext.openOrCreateDatabase(name, mode, factory); in openOrCreateDatabase()
145 final String internalName = renamedFileName(name); in openOrCreateDatabase()
146 if (!mDatabaseNames.contains(name)) { in openOrCreateDatabase()
147 mDatabaseNames.add(name); in openOrCreateDatabase()
154 public SQLiteDatabase openOrCreateDatabase(String name, in openOrCreateDatabase() argument
156 if (name.startsWith("/")) { in openOrCreateDatabase()
[all …]
DNameSplitterTest.java245 Name name = new Name(); in testGuessFullNameStyleChineseMixed() local
246 name.prefix = "\u524D"; in testGuessFullNameStyleChineseMixed()
247 name.givenNames = "Du"; in testGuessFullNameStyleChineseMixed()
248 name.middleName = "\u5C0F"; in testGuessFullNameStyleChineseMixed()
249 name.familyName = "Juan"; in testGuessFullNameStyleChineseMixed()
250 name.suffix = "\u540E"; in testGuessFullNameStyleChineseMixed()
251 mNameSplitter.guessNameStyle(name); in testGuessFullNameStyleChineseMixed()
253 assertEquals(FullNameStyle.WESTERN, name.fullNameStyle); in testGuessFullNameStyleChineseMixed()
334 final Name name = new Name(); in assertSplitName() local
335 mNameSplitter.split(name, fullName); in assertSplitName()
[all …]
DBaseDatabaseHelperUpgradeTest.java46 public String name; field in BaseDatabaseHelperUpgradeTest.TableColumn
58 public TableColumn(String name, String type, boolean notnull, String defaultValue) { in TableColumn() argument
59 this.name = name; in TableColumn()
84 column.name = cursor.getString(nameIndex); in TableStructure()
100 mColumns.put(column.name, column); in addColumn()
103 public void assertHasColumn(String name, String type, boolean notnull, in assertHasColumn() argument
105 final TableColumn column = mColumns.get(name); in assertHasColumn()
107 throw new AssertionFailedError("Table " + mName + ": Column missing: " + name); in assertHasColumn()
110 throw new AssertionFailedError("Table " + mName + ": Column " + name + " type:" in assertHasColumn()
114 throw new AssertionFailedError("Table " + mName + ": Column " + name + " notnull:" in assertHasColumn()
[all …]
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/
DDocumentsProviderHelper.java91 public Uri createDocument(Uri parentUri, String mimeType, String name) { in createDocument() argument
92 if (name.contains("/")) { in createDocument()
96 Uri uri = DocumentsContract.createDocument(wrap(mClient), parentUri, mimeType, name); in createDocument()
99 throw new RuntimeException("Couldn't create document: " + name + " with mimetype " in createDocument()
104 public Uri createDocument(String parentId, String mimeType, String name) { in createDocument() argument
106 return createDocument(parentUri, mimeType, name); in createDocument()
109 public Uri createDocument(RootInfo root, String mimeType, String name) { in createDocument() argument
110 return createDocument(root.documentId, mimeType, name); in createDocument()
113 public Uri createDocumentWithFlags(String documentId, String mimeType, String name, int flags, in createDocumentWithFlags() argument
120 in.putString(Document.COLUMN_DISPLAY_NAME, name); in createDocumentWithFlags()
[all …]
/packages/apps/UnifiedEmail/src/com/google/android/mail/common/html/parser/
DHTML.java52 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 …]
/packages/apps/Email/tests/src/com/android/email/provider/
DProviderTestUtils.java50 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/apps/Dialer/java/com/android/voicemail/impl/mail/internet/
DMimeHeader.java54 public String getFirstHeader(String name) throws MessagingException { in getFirstHeader() argument
55 String[] header = getHeader(name); in getFirstHeader()
62 public void addHeader(String name, String value) throws MessagingException { in addHeader() argument
63 fields.add(new Field(name, value)); in addHeader()
66 public void setHeader(String name, String value) throws MessagingException { in setHeader() argument
67 if (name == null || value == null) { in setHeader()
70 removeHeader(name); in setHeader()
71 addHeader(name, value); in setHeader()
74 public String[] getHeader(String name) throws MessagingException { in getHeader() argument
77 if (field.name.equalsIgnoreCase(name)) { in getHeader()
[all …]
DMimeBodyPart.java55 protected String getFirstHeader(String name) throws MessagingException { in getFirstHeader() argument
56 return header.getFirstHeader(name); in getFirstHeader()
60 public void addHeader(String name, String value) throws MessagingException { in addHeader() argument
61 header.addHeader(name, value); in addHeader()
65 public void setHeader(String name, String value) throws MessagingException { in setHeader() argument
66 header.setHeader(name, value); in setHeader()
70 public String[] getHeader(String name) throws MessagingException { in getHeader() argument
71 return header.getHeader(name); in getHeader()
75 public void removeHeader(String name) throws MessagingException { in removeHeader() argument
76 header.removeHeader(name); in removeHeader()
[all …]
/packages/apps/UnifiedEmail/src/com/android/emailcommon/internet/
DMimeHeader.java57 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 …]
DMimeBodyPart.java59 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/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/
DBatteryEntry.java126 public String name; field in BatteryEntry
132 String name; field in BatteryEntry.UidToDetail
143 name = context.getResources().getString(R.string.power_idle); in BatteryEntry()
147 name = context.getResources().getString(R.string.power_cell); in BatteryEntry()
151 name = context.getResources().getString(R.string.power_phone); in BatteryEntry()
155 name = context.getResources().getString(R.string.power_wifi); in BatteryEntry()
159 name = context.getResources().getString(R.string.power_bluetooth); in BatteryEntry()
163 name = context.getResources().getString(R.string.power_screen); in BatteryEntry()
167 name = context.getResources().getString(R.string.power_flashlight); in BatteryEntry()
175 name = sipper.packageWithHighestDrain; in BatteryEntry()
[all …]
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DBatteryEntry.java126 public String name; field in BatteryEntry
132 String name; field in BatteryEntry.UidToDetail
143 name = context.getResources().getString(R.string.power_idle); in BatteryEntry()
147 name = context.getResources().getString(R.string.power_cell); in BatteryEntry()
151 name = context.getResources().getString(R.string.power_phone); in BatteryEntry()
155 name = context.getResources().getString(R.string.power_wifi); in BatteryEntry()
159 name = context.getResources().getString(R.string.power_bluetooth); in BatteryEntry()
163 name = context.getResources().getString(R.string.power_screen); in BatteryEntry()
167 name = context.getResources().getString(R.string.power_flashlight); in BatteryEntry()
175 name = sipper.packageWithHighestDrain; in BatteryEntry()
[all …]
/packages/services/Car/tools/hidl_parser/
Dparser.py85 def __init__(self, name): argument
86 self.name = name
89 return self.name
92 def __init__(self, name, arg): argument
93 self.name = name
97 return '%s<%s>' % (self.name, self.arg)
100 def __init__(self, name, base): argument
101 self.name = name
105 return '%s%s' % (self.name, ' %s' % self.base if self.base else '')
108 def __init__(self, name): argument
[all …]
/packages/apps/Dialer/java/com/android/dialer/searchfragment/common/
DQueryBoldingUtil.java59 @Nullable String query, @NonNull String name, @NonNull Context context) { in getNameWithQueryBolded() argument
61 return name; in getNameWithQueryBolded()
64 if (!QueryFilteringUtil.nameMatchesT9Query(query, name, context)) { in getNameWithQueryBolded()
66 Matcher matcher = pattern.matcher(name.toLowerCase()); in getNameWithQueryBolded()
69 return getBoldedString(name, matcher.start(), query.length()); in getNameWithQueryBolded()
72 return name; in getNameWithQueryBolded()
76 int indexOfT9Match = QueryFilteringUtil.getIndexOfT9Substring(query, name, context); in getNameWithQueryBolded()
82 for (int i = indexOfT9Match; i <= indexOfT9Match + numBolded && i < name.length(); i++) { in getNameWithQueryBolded()
83 if (!Character.isLetter(name.charAt(i))) { in getNameWithQueryBolded()
87 return getBoldedString(name, indexOfT9Match, numBolded); in getNameWithQueryBolded()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
DBluetoothMapFolderElement.java56 public BluetoothMapFolderElement(String name, BluetoothMapFolderElement parrent) { in BluetoothMapFolderElement() argument
57 this.mName = name; in BluetoothMapFolderElement()
132 public BluetoothMapFolderElement getFolderByName(String name) { in getFolderByName() argument
136 folderElement = folderElement.getSubFolder(name); in getFolderByName()
189 public BluetoothMapFolderElement addFolder(String name) { in addFolder() argument
190 name = name.toLowerCase(Locale.US); in addFolder()
191 BluetoothMapFolderElement newFolder = mSubFolders.get(name); in addFolder()
194 Log.i(TAG, "addFolder():" + name); in addFolder()
196 newFolder = new BluetoothMapFolderElement(name, this); in addFolder()
197 mSubFolders.put(name, newFolder); in addFolder()
[all …]
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/tts/
DPreferredEngineOptionsPreferenceControllerTest.java58 OTHER_ENGINE_INFO.name = "com.android.car.settings.tts.test.Engine1";
60 CURRENT_ENGINE_INFO.name = "com.android.car.settings.tts.test.Engine2";
87 when(mEnginesHelper.getEngineInfo(OTHER_ENGINE_INFO.name)).thenReturn(OTHER_ENGINE_INFO); in setUp()
88 when(mEnginesHelper.getEngineInfo(CURRENT_ENGINE_INFO.name)).thenReturn( in setUp()
100 when(mTextToSpeech.getCurrentEngine()).thenReturn(CURRENT_ENGINE_INFO.name); in onCreate_populatesGroup()
107 when(mTextToSpeech.getCurrentEngine()).thenReturn(CURRENT_ENGINE_INFO.name); in refreshUi_currentEngineInfoSummarySet()
112 mPreferenceGroup.findPreference(CURRENT_ENGINE_INFO.name).getSummary()).isEqualTo( in refreshUi_currentEngineInfoSummarySet()
118 when(mTextToSpeech.getCurrentEngine()).thenReturn(CURRENT_ENGINE_INFO.name); in refreshUi_otherEngineInfoSummaryEmpty()
122 assertThat(mPreferenceGroup.findPreference(OTHER_ENGINE_INFO.name).getSummary()).isEqualTo( in refreshUi_otherEngineInfoSummaryEmpty()
128 when(mTextToSpeech.getCurrentEngine()).thenReturn(CURRENT_ENGINE_INFO.name); in performClick_currentEngine_returnFalse()
[all …]
/packages/apps/PermissionController/src/com/android/packageinstaller/role/model/
DRoles.java228 String name = requireAttributeValue(parser, ATTRIBUTE_NAME, TAG_PERMISSION_SET); in parsePermissionSet() local
229 if (name == null) { in parsePermissionSet()
259 return new PermissionSet(name, permissions); in parsePermissionSet()
266 String name = requireAttributeValue(parser, ATTRIBUTE_NAME, TAG_ROLE); in parseRole() local
267 if (name == null) { in parseRole()
339 throwOrLogMessage("showNone=\"true\" is invalid for a non-exclusive role: " + name); in parseRole()
364 throwOrLogMessage("Duplicate <required-components> in role: " + name); in parseRole()
372 throwOrLogMessage("Duplicate <permissions> in role: " + name); in parseRole()
380 throwOrLogMessage("Duplicate <app-ops> in role: " + name); in parseRole()
388 throwOrLogMessage("Duplicate <preferred-activities> in role: " + name); in parseRole()
[all …]
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/
DTestModel.java72 public DocumentInfo createFile(String name) { in createFile() argument
74 name, in createFile()
80 public DocumentInfo createFile(String name, int flags) { in createFile() argument
82 name, in createFile()
83 guessMimeType(name), in createFile()
87 public DocumentInfo createFolder(String name) { in createFolder() argument
89 name, in createFolder()
96 public DocumentInfo createFolder(String name, int flags) { in createFolder() argument
98 name, in createFolder()
103 public DocumentInfo createDocument(String name, String mimeType, int flags) { in createDocument() argument
[all …]
/packages/apps/Test/connectivity/sl4n/rapidjson/include/rapidjson/
Ddocument.h83 GenericValue<Encoding, Allocator> name; //!< name of member (must be a string) member
713 … typename RhsType::ConstMemberIterator rhsMemberItr = rhs.FindMember(lhsMemberItr->name);
844 …rnal::IsSame<typename internal::RemoveConst<T>::Type, Ch> >),(GenericValue&)) operator[](T* name) {
845 GenericValue n(StringRef(name));
849 …e, Ch> >),(const GenericValue&)) operator[](T* name) const { return const_cast<GenericValue&>(*thi…
861 GenericValue& operator[](const GenericValue<Encoding, SourceAllocator>& name) {
862 MemberIterator member = FindMember(name);
872 …const GenericValue<Encoding, SourceAllocator>& name) const { return const_cast<GenericValue&>(*thi…
876 …ericValue& operator[](const std::basic_string<Ch>& name) { return (*this)[GenericValue(StringRef(n…
877 …cValue& operator[](const std::basic_string<Ch>& name) const { return (*this)[GenericValue(StringRe…
[all …]
/packages/apps/UnifiedEmail/src/org/apache/commons/io/
DIOCase.java63 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 …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/shadow/
DShadowSecureSettings.java38 public static boolean putStringForUser(ContentResolver resolver, String name, String value, in putStringForUser() argument
43 userTable.put(userHandle, name, value); in putStringForUser()
45 userTable.remove(userHandle, name); in putStringForUser()
52 public static String getStringForUser(ContentResolver resolver, String name, int userHandle) { in getStringForUser() argument
55 return (String) userTable.get(userHandle, name); in getStringForUser()
60 public static boolean putIntForUser(ContentResolver resolver, String name, int value, in putIntForUser() argument
64 userTable.put(userHandle, name, value); in putIntForUser()
70 public static int getIntForUser(ContentResolver resolver, String name, int def, in getIntForUser() argument
74 final Object object = userTable.get(userHandle, name); in getIntForUser()
80 public static boolean putLongForUser(ContentResolver resolver, String name, long value, in putLongForUser() argument
[all …]

12345678910>>...58