Home
last modified time | relevance | path

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

12345678910>>...97

/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/modules/Wifi/service/java/com/android/server/wifi/util/
DXmlUtilHelper.java205 serializer.setOutput(out, StandardCharsets.UTF_8.name()); in writeMapXml()
228 serializer.setOutput(out, StandardCharsets.UTF_8.name()); in writeListXml()
249 public static final void writeMapXml(Map val, String name, XmlSerializer out) in writeMapXml() argument
251 writeMapXml(val, name, out, null); in writeMapXml()
271 public static final void writeMapXml(Map val, String name, XmlSerializer out, in writeMapXml() argument
281 if (name != null) { in writeMapXml()
282 out.attribute(null, "name", name); in writeMapXml()
334 public static final void writeListXml(List val, String name, XmlSerializer out) in writeListXml() argument
344 if (name != null) { in writeListXml()
345 out.attribute(null, "name", name); in writeListXml()
[all …]
/packages/modules/adb/daemon/
Dservices.cpp144 [[maybe_unused]] static unique_fd reboot_device(const std::string& name) { in reboot_device() argument
147 auto reboot_service = [name](unique_fd fd) { in reboot_device()
148 std::string reboot_string = android::base::StringPrintf("reboot,%s", name.c_str()); in reboot_device()
160 cmd += name; in reboot_device()
239 asocket* daemon_service_to_socket(std::string_view name) { in daemon_service_to_socket() argument
240 if (name == "jdwp") { in daemon_service_to_socket()
242 } else if (name == "track-jdwp") { in daemon_service_to_socket()
244 } else if (name == "track-app") { in daemon_service_to_socket()
246 } else if (android::base::ConsumePrefix(&name, "sink:")) { in daemon_service_to_socket()
248 if (!ParseUint(&byte_count, name)) { in daemon_service_to_socket()
[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/services/Car/tools/emulator/
DVehicleHalProto_pb2.py20 name='VehicleHalProto.proto',
28 name='MsgType',
34 name='GET_CONFIG_CMD', index=0, number=0,
38 name='GET_CONFIG_RESP', index=1, number=1,
42 name='GET_CONFIG_ALL_CMD', index=2, number=2,
46 name='GET_CONFIG_ALL_RESP', index=3, number=3,
50 name='GET_PROPERTY_CMD', index=4, number=4,
54 name='GET_PROPERTY_RESP', index=5, number=5,
58 name='GET_PROPERTY_ALL_CMD', index=6, number=6,
62 name='GET_PROPERTY_ALL_RESP', index=7, number=7,
[all …]
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DBatteryEntry.java56 public final String name; field in BatteryEntry.NameAndIcon
61 public NameAndIcon(String name, Drawable icon, int iconId) { in NameAndIcon() argument
62 this(name, /*packageName=*/ null, icon, iconId); in NameAndIcon()
66 String name, String packageName, Drawable icon, int iconId) { in NameAndIcon() argument
67 this.name = name; in NameAndIcon()
114 be.mDefaultPackageName, be.name, be.icon); in run()
117 be.name = nameAndIcon.name; in run()
172 public String name; field in BatteryEntry
180 String name; field in BatteryEntry.UidToDetail
220 name = pm.getApplicationLabel(appInfo).toString(); in BatteryEntry()
[all …]
/packages/services/Car/tools/hidl_parser/
Dparser.py87 def __init__(self, name): argument
88 self.name = name
91 return self.name
94 def __init__(self, name, arg): argument
95 self.name = name
99 return '%s<%s>' % (self.name, self.arg)
102 def __init__(self, name, base): argument
103 self.name = name
107 return '%s%s' % (self.name, ' %s' % self.base if self.base else '')
110 def __init__(self, name): argument
[all …]
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/
DDocumentsProviderHelper.java73 public DocumentsProviderHelper(UserId userId, String authority, Context context, String name) { in DocumentsProviderHelper() argument
77 mClient = userId.getContentResolver(context).acquireContentProviderClient(name); in DocumentsProviderHelper()
98 public Uri createDocument(Uri parentUri, String mimeType, String name) { in createDocument() argument
99 if (name.contains("/")) { in createDocument()
103 Uri uri = DocumentsContract.createDocument(wrap(mClient), parentUri, mimeType, name); in createDocument()
106 throw new RuntimeException("Couldn't create document: " + name + " with mimetype " in createDocument()
111 public Uri createDocument(String parentId, String mimeType, String name) { in createDocument() argument
113 return createDocument(parentUri, mimeType, name); in createDocument()
116 public Uri createDocument(RootInfo root, String mimeType, String name) { in createDocument() argument
117 return createDocument(root.documentId, mimeType, name); in createDocument()
[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/modules/NeuralNetworks/tools/test_generator/
Dtest_generator.py87 name = GetJointStr([i for i in args if i is not None and i != ""], sep=sep)
89 self.name = name
92 uniqueName = name if showZero is False else name + sep + str(startsFrom)
95 uniqueName = name + sep + str(startsFrom)
97 self.name = uniqueName
100 return self.name
105 return isinstance(other, NamedObject) and self.name == other.name
111 return hash(self.name)
114 return self.name < other.name
158 def __init__(self, vt, dimensions, scale, zeroPoint, name="type", skipRenaming=False, argument
[all …]
/packages/services/Car/cpp/computepipe/router/include/
DRegistry.h68 std::unique_ptr<PipeHandle<T>> getClientPipeHandle(const std::string& name, in getClientPipeHandle() argument
73 return getPipeHandle(name, std::move(clientHandle)); in getClientPipeHandle()
84 Error RegisterPipe(std::unique_ptr<PipeHandle<T>> h, const std::string& name) { in RegisterPipe() argument
86 if (mPipeRunnerDb.find(name) == mPipeRunnerDb.end()) { in RegisterPipe()
91 name, std::unique_ptr<PipeContext<T>>(new PipeContext<T>(std::move(h), name))); in RegisterPipe()
94 if (!mPipeRunnerDb[name]->isAlive()) { in RegisterPipe()
95 mPipeRunnerDb.erase(name); in RegisterPipe()
100 name, std::unique_ptr<PipeContext<T>>(new PipeContext<T>(std::move(h), name))); in RegisterPipe()
118 std::unique_ptr<PipeHandle<T>> getPipeHandle(const std::string& name, in getPipeHandle() argument
121 if (mPipeRunnerDb.find(name) == mPipeRunnerDb.end()) { in getPipeHandle()
[all …]
/packages/modules/Virtualization/microdroid/
DAndroid.bp32 name: "d",
36 name: "etc",
41 name: "microdroid",
98 name: "microdroid_init_rc",
106 name: "microdroid_build_prop",
113 name: "microdroid_vendor",
135 name: "microdroid_super",
140 name: "system",
144 name: "vendor",
150 // TODO(jiyong): change the name to init, cause it's confusing
[all …]
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/
DTestModel.java75 public DocumentInfo createFile(String name) { in createFile() argument
77 name, in createFile()
83 public DocumentInfo createFile(String name, int flags) { in createFile() argument
85 name, in createFile()
86 guessMimeType(name), in createFile()
90 public DocumentInfo createFolder(String name) { in createFolder() argument
92 name, in createFolder()
99 public DocumentInfo createFolder(String name, int flags) { in createFolder() argument
101 name, in createFolder()
106 public DocumentInfo createDocumentForUser(String name, String mimeType, int flags, in createDocumentForUser() argument
[all …]
/packages/modules/StatsD/statsd/src/storage/
DStorageManager.cpp103 static void parseFileName(char* name, FileName* output) { in parseFileName() argument
106 char* substr = strtok(name, "_"); in parseFileName()
400 char* name = de->d_name; in readAllTrainInfo() local
401 if (name[0] == '.') { in readAllTrainInfo()
406 bool readSuccess = StorageManager::readTrainInfoLocked(name, trainInfo); in readAllTrainInfo()
432 char* name = de->d_name; in deleteAllFiles() local
433 if (name[0] == '.') continue; in deleteAllFiles()
434 deleteFile(StringPrintf("%s/%s", path, name).c_str()); in deleteAllFiles()
447 char* name = de->d_name; in deleteSuffixedFiles() local
448 if (name[0] == '.') { in deleteSuffixedFiles()
[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/Car/Settings/tests/unit/src/com/android/car/settings/tts/
DPreferredEngineOptionsPreferenceControllerTest.java63 OTHER_ENGINE_INFO.name = "com.android.car.settings.tts.test.Engine1";
65 CURRENT_ENGINE_INFO.name = "com.android.car.settings.tts.test.Engine2";
95 when(mEnginesHelper.getEngineInfo(OTHER_ENGINE_INFO.name)).thenReturn(OTHER_ENGINE_INFO); in setUp()
96 when(mEnginesHelper.getEngineInfo(CURRENT_ENGINE_INFO.name)).thenReturn( in setUp()
117 when(mTextToSpeech.getCurrentEngine()).thenReturn(CURRENT_ENGINE_INFO.name); in onCreate_populatesGroup()
124 when(mTextToSpeech.getCurrentEngine()).thenReturn(CURRENT_ENGINE_INFO.name); in refreshUi_currentEngineInfoSummarySet()
129 mPreferenceGroup.findPreference(CURRENT_ENGINE_INFO.name).getSummary()).isEqualTo( in refreshUi_currentEngineInfoSummarySet()
135 when(mTextToSpeech.getCurrentEngine()).thenReturn(CURRENT_ENGINE_INFO.name); in refreshUi_otherEngineInfoSummaryEmpty()
139 assertThat(mPreferenceGroup.findPreference(OTHER_ENGINE_INFO.name).getSummary()).isEqualTo( in refreshUi_otherEngineInfoSummaryEmpty()
145 when(mTextToSpeech.getCurrentEngine()).thenReturn(CURRENT_ENGINE_INFO.name); in performClick_currentEngine_returnFalse()
[all …]
/packages/apps/Car/libs/car-ui-lib/car-ui-androidx/
DAndroid.bp21 name: "car-ui-lib-androidx",
56 name: "car-ui-androidx-constraintlayout-nodeps",
67 name: "car-ui-androidx-constraintlayout",
77 name: "car-ui-androidx-constraintlayout-solver-nodeps",
88 name: "car-ui-androidx-constraintlayout-solver",
93 name: "car-ui-androidx-preference-nodeps",
104 name: "car-ui-androidx-preference",
117 name: "car-ui-androidx-recyclerview-nodeps",
128 name: "car-ui-androidx-recyclerview",
139 name: "car-ui-androidx-asynclayoutinflater-nodeps",
[all …]
/packages/apps/Calendar/
Dmkprojectfile8 <name>CalendarAndroid</name>
14 <name>com.android.ide.eclipse.adt.ResourceManagerBuilder</name>
19 <name>com.android.ide.eclipse.adt.PreCompilerBuilder</name>
24 <name>org.eclipse.jdt.core.javabuilder</name>
29 <name>com.android.ide.eclipse.adt.ApkBuilder</name>
40 <name>src_ex_common</name>
45 <name>src_opt_calendar</name>
/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 …]
/packages/apps/Car/DebuggingRestrictionController/libs/
DAndroid.bp6 name: "drc-lib-firebase-functions-19.2.0",
12 name: "drc-lib-play-services-base-17.1.0",
19 name: "drc-lib-play-services-stats-17.0.0",
26 name: "drc-lib-play-services-basement-17.1.0",
33 name: "drc-lib-firebase-iid-21.0.1",
40 name: "drc-lib-play-services-tasks-17.0.0",
47 name: "drc-lib-firebase-installations-interop-16.0.1",
54 name: "drc-lib-firebase-auth-interop-19.0.0",
61 name: "drc-lib-firebase-components-16.1.0",
68 name: "drc-lib-firebase-iid-interop-17.0.0",
[all …]

12345678910>>...97