Home
last modified time | relevance | path

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

12345678910>>...17

/cts/common/host-side/util/src/com/android/compatibility/common/util/
DHostInfoStore.java73 public void startGroup(String name) throws IOException { in startGroup() argument
74 mJsonWriter.name(name); in startGroup()
98 public void startArray(String name) throws IOException { in startArray() argument
99 checkName(name); in startArray()
100 mJsonWriter.name(name); in startArray()
116 public void addResult(String name, int value) throws IOException { in addResult() argument
117 checkName(name); in addResult()
118 mJsonWriter.name(name); in addResult()
126 public void addResult(String name, long value) throws IOException { in addResult() argument
127 checkName(name); in addResult()
[all …]
/cts/common/device-side/util/src/com/android/compatibility/common/util/
DDeviceInfoStore.java74 public void startGroup(String name) throws IOException { in startGroup() argument
75 mJsonWriter.name(name); in startGroup()
99 public void startArray(String name) throws IOException { in startArray() argument
100 checkName(name); in startArray()
101 mJsonWriter.name(name); in startArray()
117 public void addResult(String name, int value) throws IOException { in addResult() argument
118 checkName(name); in addResult()
119 mJsonWriter.name(name); in addResult()
127 public void addResult(String name, long value) throws IOException { in addResult() argument
128 checkName(name); in addResult()
[all …]
/cts/tools/dasm/src/dasm/
DUtils.java27 public static String convertDotsToSlashes(String name) { in convertDotsToSlashes() argument
28 if (name == null) return null; in convertDotsToSlashes()
30 return name.replace('.', '/'); in convertDotsToSlashes()
83 public static String[] getClassMethodSignatureFromString(String name) { in getClassMethodSignatureFromString() argument
85 String signature = convertDotsToSlashes(name); in getClassMethodSignatureFromString()
113 + name); in getClassMethodSignatureFromString()
121 public static String[] getClassFieldFromString(String name) { in getClassFieldFromString() argument
122 name = convertDotsToSlashes(name); in getClassFieldFromString()
125 int pos = name.lastIndexOf('/'); in getClassFieldFromString()
129 result[1] = name; in getClassFieldFromString()
[all …]
DDAsm.java201 void addVar(String startLab, String endLab, String name, String desc, in addVar() argument
206 void addVar(int startOffset, int endOffset, String name, String desc, in addVar() argument
224 void addInner(short iacc, String name, String inner, String outer) { in addInner() argument
237 void setSource(String name) { in setSource() argument
238 if (PARSER_DEBUG) System.out.println("setSource(" + name + ")"); in setSource()
239 source_name = name; in setSource()
252 void setClass(String name, int acc) { in setClass() argument
254 System.out.println("setClass(" + name + ", " + acc + ")"); in setClass()
255 class_name = name; in setClass()
274 void setSuperClass(String name) { in setSuperClass() argument
[all …]
/cts/tests/tests/content/src/android/content/cts/util/
DXmlUtils.java188 serializer.setOutput(out, StandardCharsets.UTF_8.name()); in writeMapXml()
211 serializer.setOutput(out, StandardCharsets.UTF_8.name()); in writeListXml()
232 public static final void writeMapXml(Map val, String name, XmlSerializer out) in writeMapXml() argument
234 writeMapXml(val, name, out, null); in writeMapXml()
254 public static final void writeMapXml(Map val, String name, XmlSerializer out, in writeMapXml() argument
264 if (name != null) { in writeMapXml()
265 out.attribute(null, "name", name); in writeMapXml()
317 public static final void writeListXml(List val, String name, XmlSerializer out) in writeListXml() argument
327 if (name != null) { in writeListXml()
328 out.attribute(null, "name", name); in writeListXml()
[all …]
/cts/tests/tests/widget/src/android/widget/cts/util/
DXmlUtils.java187 serializer.setOutput(out, StandardCharsets.UTF_8.name()); in writeListXml()
207 public static final void writeMapXml(Map val, String name, XmlSerializer out) in writeMapXml() argument
209 writeMapXml(val, name, out, null); in writeMapXml()
228 public static final void writeMapXml(Map val, String name, XmlSerializer out, in writeMapXml() argument
238 if (name != null) { in writeMapXml()
239 out.attribute(null, "name", name); in writeMapXml()
290 public static final void writeListXml(List val, String name, XmlSerializer out) in writeListXml() argument
300 if (name != null) { in writeListXml()
301 out.attribute(null, "name", name); in writeListXml()
314 public static final void writeSetXml(Set val, String name, XmlSerializer out) in writeSetXml() argument
[all …]
/cts/tests/tests/view/src/android/view/cts/util/
DXmlUtils.java186 serializer.setOutput(out, StandardCharsets.UTF_8.name()); in writeListXml()
206 public static final void writeMapXml(Map val, String name, XmlSerializer out) in writeMapXml() argument
208 writeMapXml(val, name, out, null); in writeMapXml()
227 public static final void writeMapXml(Map val, String name, XmlSerializer out, in writeMapXml() argument
237 if (name != null) { in writeMapXml()
238 out.attribute(null, "name", name); in writeMapXml()
289 public static final void writeListXml(List val, String name, XmlSerializer out) in writeListXml() argument
299 if (name != null) { in writeListXml()
300 out.attribute(null, "name", name); in writeListXml()
313 public static final void writeSetXml(Set val, String name, XmlSerializer out) in writeSetXml() argument
[all …]
/cts/hostsidetests/inputmethodservice/deviceside/lib/src/android/inputmethodservice/cts/db/
DField.java31 final String name; field in Field
36 public static Field newInstance(final int pos, final String name, final int fieldType) { in newInstance() argument
39 return new IntegerField(pos, name); in newInstance()
41 return new StringField(pos, name); in newInstance()
47 private Field(final int pos, final String name, final int fieldType) { in Field() argument
49 this.name = name; in Field()
70 return new UnsupportedOperationException("Illegal type: " + name + " is " + sqLiteType in buildException()
96 IntegerField(final int pos, final String name) { in IntegerField() argument
97 super(pos, name, Cursor.FIELD_TYPE_INTEGER); in IntegerField()
107 values.put(name, value); in putLong()
[all …]
DEntity.java49 sb.append(field.name).append(" ").append(field.sqLiteType); in createEntitySql()
50 if (field.name.equals(BaseColumns._ID)) { in createEntitySql()
73 public Builder<E> addField(@NonNull final String name, final int fieldType) { in addField() argument
74 addFieldInternal(name, fieldType); in addField()
82 private void addFieldInternal(final String name, final int fieldType) { in addFieldInternal() argument
83 if (mFieldMap.containsKey(name)) { in addFieldInternal()
84 throw new IllegalArgumentException("Field " + name + " already exists at " in addFieldInternal()
85 + mFieldMap.get(name).pos); in addFieldInternal()
87 final Field field = Field.newInstance(mPos++, name, fieldType); in addFieldInternal()
89 mFieldMap.put(field.name, field); in addFieldInternal()
/cts/hostsidetests/security/securityPatch/CVE-2017-7369/
Dpoc.c169 void poc(char* name) in poc() argument
173 snprintf(dev, sizeof(dev),"/dev/snd/%s", name); in poc()
195 if(!strncmp((const char *)lst.pids[index].name,"SLIM_1_TX Channels",18)|| in poc()
196 !strncmp((const char *)lst.pids[index].name,"SLIM_0_TX Channels",18)|| in poc()
197 !strncmp((const char *)lst.pids[index].name,"SLIM_6_RX Channels",18)|| in poc()
198 !strncmp((const char *)lst.pids[index].name,"SLIM_5_RX Channels",18)|| in poc()
199 !strncmp((const char *)lst.pids[index].name,"SLIM_0_RX Channels",18)|| in poc()
200 !strncmp((const char *)lst.pids[index].name,"Playback 24 Volume",18)|| in poc()
201 !strncmp((const char *)lst.pids[index].name,"left Profile",12)|| in poc()
202 !strncmp((const char *)lst.pids[index].name,"Playback Device Channel Map",27)|| in poc()
[all …]
/cts/tests/tests/text/src/android/text/util/cts/
DRfc822TokenTest.java37 final String name = "John Doe"; in testConstructor() local
40 Rfc822Token rfc822Token1 = new Rfc822Token(name, address, comment); in testConstructor()
41 assertEquals(name, rfc822Token1.getName()); in testConstructor()
50 Rfc822Token rfc822Token3 = new Rfc822Token(name, null, comment); in testConstructor()
51 assertEquals(name, rfc822Token3.getName()); in testConstructor()
55 Rfc822Token rfc822Token4 = new Rfc822Token(name, address, null); in testConstructor()
56 assertEquals(name, rfc822Token4.getName()); in testConstructor()
63 String name = "John Doe"; in testAccessName() local
66 Rfc822Token rfc822Token = new Rfc822Token(name, address, comment); in testAccessName()
67 assertEquals(name, rfc822Token.getName()); in testAccessName()
[all …]
/cts/common/util/src/com/android/compatibility/common/util/
DInfoStore.java46 abstract void startGroup(String name) throws IOException; in startGroup() argument
61 abstract void startArray(String name) throws IOException; in startArray() argument
71 abstract void addResult(String name, int value) throws IOException; in addResult() argument
76 abstract void addResult(String name, long value) throws IOException; in addResult() argument
81 abstract void addResult(String name, float value) throws IOException; in addResult() argument
86 abstract void addResult(String name, double value) throws IOException; in addResult() argument
91 abstract void addResult(String name, boolean value) throws IOException; in addResult() argument
96 abstract void addResult(String name, String value) throws IOException; in addResult() argument
101 abstract void addArrayResult(String name, int[] array) throws IOException; in addArrayResult() argument
106 abstract void addArrayResult(String name, long[] array) throws IOException; in addArrayResult() argument
[all …]
/cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/
DGraphicsDeviceInfo.java35 private static void storeValue(DeviceInfoStore store, String name, float[] valueArray, in storeValue() argument
38 store.addResult(name, valueArray[0]); in storeValue()
40 store.addArrayResult(name, valueArray); in storeValue()
44 private static void storeValue(DeviceInfoStore store, String name, int[] valueArray, in storeValue() argument
47 store.addResult(name, valueArray[0]); in storeValue()
49 store.addArrayResult(name, valueArray); in storeValue()
53 private static void storeValue(DeviceInfoStore store, String name, long[] valueArray, in storeValue() argument
56 store.addResult(name, valueArray[0]); in storeValue()
58 store.addArrayResult(name, valueArray); in storeValue()
78 for (String name : variables) { in collectDeviceInfo()
[all …]
/cts/tests/tests/calendarcommon/src/com/android/calendarcommon2/
DICalendar.java48 public Component(String name, Component parent) { in Component() argument
49 mName = name; in Component()
57 String name= prop.getName(); in addProperty() local
58 ArrayList<Property> props = mPropsMap.get(name); in addProperty()
61 mPropsMap.put(name, props); in addProperty()
72 public List<Property> getProperties(String name) { in getProperties() argument
73 return mPropsMap.get(name); in getProperties()
88 public Property(String name) { in Property() argument
89 mName = name; in Property()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/location/reporting/
DGnssTestDetails.java40 public GnssTestDetails(String name, ResultCode resultCode) { in GnssTestDetails() argument
41 this(name, resultCode, null /* summary */); in GnssTestDetails()
44 public GnssTestDetails(String name, ResultCode resultCode, String summary) { in GnssTestDetails() argument
45 mName = name; in GnssTestDetails()
52 String name, in GnssTestDetails() argument
63 mName = name; in GnssTestDetails()
68 public GnssTestDetails(Context context, String name, Result result) { in GnssTestDetails() argument
70 name, in GnssTestDetails()
76 public GnssTestDetails(String name, String tag, Throwable cause) { in GnssTestDetails() argument
83 mName = name; in GnssTestDetails()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/reporting/
DSensorTestDetails.java42 public SensorTestDetails(String name, ResultCode resultCode) { in SensorTestDetails() argument
43 this(name, resultCode, null /* summary */); in SensorTestDetails()
46 public SensorTestDetails(String name, ResultCode resultCode, String summary) { in SensorTestDetails() argument
47 mName = name; in SensorTestDetails()
54 String name, in SensorTestDetails() argument
65 mName = name; in SensorTestDetails()
70 public SensorTestDetails(Context context, String name, Result result) { in SensorTestDetails() argument
72 name, in SensorTestDetails()
78 public SensorTestDetails(String name, String tag, Throwable cause) { in SensorTestDetails() argument
88 mName = name; in SensorTestDetails()
[all …]
/cts/tests/autofillservice/src/android/autofillservice/cts/
DOneTimeDateListener.java32 private final String name; field in OneTimeDateListener
39 OneTimeDateListener(String name, DatePicker datePicker, int expectedYear, int expectedMonth, in OneTimeDateListener() argument
41 this.name = name; in OneTimeDateListener()
55 assertWithMessage("Timeout (%s ms) on DatePicker %s", FILL_TIMEOUT_MS, name) in assertAutoFilled()
57 assertWithMessage("Wrong year on DatePicker %s", name) in assertAutoFilled()
59 assertWithMessage("Wrong month on DatePicker %s", name) in assertAutoFilled()
61 assertWithMessage("Wrong day on DatePicker %s", name) in assertAutoFilled()
DMultipleTimesTimeListener.java32 private final String name; field in MultipleTimesTimeListener
38 MultipleTimesTimeListener(String name, int times, TimePicker timePicker, int expectedHour, in MultipleTimesTimeListener() argument
40 this.name = name; in MultipleTimesTimeListener()
54 assertWithMessage("Timeout (%s ms) on TimePicker %s", FILL_TIMEOUT_MS, name) in assertAutoFilled()
56 assertWithMessage("Wrong hour on TimePicker %s", name) in assertAutoFilled()
58 assertWithMessage("Wrong minute on TimePicker %s", name) in assertAutoFilled()
DOneTimeCompoundButtonListener.java33 private final String name; field in OneTimeCompoundButtonListener
38 OneTimeCompoundButtonListener(String name, CompoundButton button, in OneTimeCompoundButtonListener() argument
40 this.name = name; in OneTimeCompoundButtonListener()
52 assertWithMessage("Timeout (%s ms) on CompoundButton %s", FILL_TIMEOUT_MS, name) in assertAutoFilled()
55 assertWithMessage("Wrong auto-fill value on CompoundButton %s", name) in assertAutoFilled()
/cts/tests/tests/util/src/android/util/cts/
DTimeUtilsTest.java44 for (String name : mainstream) { in testUnitedStates()
45 TimeZone tz = TimeZone.getTimeZone(name); in testUnitedStates()
51 assertEquals(name, guess.getID()); in testUnitedStates()
55 assertEquals(name, guess.getID()); in testUnitedStates()
66 for (String name : weird) { in testWeirdUnitedStates()
67 TimeZone tz = TimeZone.getTimeZone(name); in testWeirdUnitedStates()
73 assertEquals(name, guess.getID()); in testWeirdUnitedStates()
83 for (String name : old) { in testOld()
84 TimeZone tz = TimeZone.getTimeZone(name); in testOld()
90 assertEquals(name, guess.getID()); in testOld()
[all …]
/cts/libs/vogar-expect/src/vogar/
DExpectationStore.java75 public Expectation get(String name) { in get() argument
76 Expectation byName = getByNameOrPackage(name); in get()
105 private Expectation getByNameOrPackage(String name) { in getByNameOrPackage() argument
107 Expectation expectation = outcomes.get(name); in getByNameOrPackage()
112 int dotOrHash = Math.max(name.lastIndexOf('.'), name.lastIndexOf('#')); in getByNameOrPackage()
117 name = name.substring(0, dotOrHash); in getByNameOrPackage()
201 String name = reader.nextName(); in readExpectation() local
202 if (name.equals("result")) { in readExpectation()
204 } else if (name.equals("name")) { in readExpectation()
206 } else if (name.equals("names")) { in readExpectation()
[all …]
/cts/tools/dex-tools/test/dex/reader/util/
DMemoryByteCode.java31 private final String name; field in MemoryByteCode
33 public MemoryByteCode(String name) { in MemoryByteCode() argument
34 super(URI.create("byte:///" + name.replace(".", "/") + ".class"), in MemoryByteCode()
36 this.name = name; in MemoryByteCode()
41 return name; in getName()
/cts/tests/tests/jni/libjnitest/
Dhelper.h33 #define RUN_TEST(name) #name, test_##name argument
40 #define TEST_DECLARATION(name) static char *test_##name(JNIEnv *env) /* NOLINT */ argument
/cts/tools/testng/
Dgen-test-list-xml.py47 def __init__(self, name=None): argument
49 self._name = name
72 name = property(_get_name, _set_name, doc="Get/set the name property of the current XML node") variable in BaseNode
91 if self.name is not None:
93 out.write(self.name)
119 debug_print("name = " + self.name)
129 if child.name == current_package:
133 new_suite = TestSuite(name=current_package)
157 if child.name == just_class_name:
160 new_test_case = TestCase(name=just_class_name)
[all …]
/cts/suite/audio_quality/lib/src/task/
DTaskCase.cpp47 bool TaskCase::getCaseName(android::String8& name) const in getCaseName()
49 if (!findStringAttribute(STR_NAME, name)) { in getCaseName()
69 const android::String8& name, T& data) in registerGeneric() argument
72 it = map.find(name); in registerGeneric()
74 LOGV("registerGeneric key %s already registered", name.string()); in registerGeneric()
77 LOGD("registerGeneric registered key %s", name.string()); in registerGeneric()
78 map[name] = data; in registerGeneric()
83 const android::String8& name, T& data) in findGeneric() argument
85 LOGD("findGeneric key %s", name.string()); in findGeneric()
87 it = map.find(name); in findGeneric()
[all …]

12345678910>>...17