Home
last modified time | relevance | path

Searched refs:label (Results 1 – 25 of 84) sorted by relevance

1234

/cts/tests/tests/contactsprovider/src/android/provider/cts/contacts/
DContacts_PhonesTest.java25 CharSequence label = "label"; in testGetDisplayLabel() local
27 Phones.TYPE_CUSTOM, label).toString(); in testGetDisplayLabel()
28 assertEquals(label, display); in testGetDisplayLabel()
32 CharSequence label = "label"; in testGetDisplayLabelCharSequenceArray() local
43 Phones.TYPE_CUSTOM, label, labelArray).toString(); in testGetDisplayLabelCharSequenceArray()
44 assertEquals(label, display); in testGetDisplayLabelCharSequenceArray()
47 Phones.TYPE_HOME, label, labelArray).toString(); in testGetDisplayLabelCharSequenceArray()
51 Phones.TYPE_MOBILE, label, labelArray).toString(); in testGetDisplayLabelCharSequenceArray()
55 Phones.TYPE_WORK, label, labelArray).toString(); in testGetDisplayLabelCharSequenceArray()
59 Phones.TYPE_FAX_WORK, label, labelArray).toString(); in testGetDisplayLabelCharSequenceArray()
[all …]
DContactsContract_CommonDataKinds_ImTest.java59 String label = mResources.getString(res); in assertGetProtocolLabel() local
60 assertEquals(label, Im.getProtocolLabel(mResources, type, "")); in assertGetProtocolLabel()
63 private void assertCustomProtocolLabel(String label) { in assertCustomProtocolLabel() argument
66 assertEquals(label, Im.getProtocolLabel(mResources, Im.PROTOCOL_CUSTOM, label)); in assertCustomProtocolLabel()
73 String label = mResources.getString(res); in assertGetTypeLabel() local
74 assertEquals(label, Im.getTypeLabel(mResources, type, "")); in assertGetTypeLabel()
77 private void assertCustomTypeLabel(String label) { in assertCustomTypeLabel() argument
80 assertEquals(label, Im.getTypeLabel(mResources, Im.TYPE_CUSTOM, label)); in assertCustomTypeLabel()
DContactsContract_CommonDataKinds_SipAddressTest.java45 String label = mResources.getString(res); in assertGetTypeLabel() local
46 assertEquals(label, SipAddress.getTypeLabel(mResources, type, "")); in assertGetTypeLabel()
49 private void assertCustomTypeLabel(String label) { in assertCustomTypeLabel() argument
52 assertEquals(label, SipAddress.getTypeLabel(mResources, SipAddress.TYPE_CUSTOM, label)); in assertCustomTypeLabel()
DContactsContract_CommonDataKinds_StructuredPostalTest.java45 String label = mResources.getString(res); in assertGetTypeLabel() local
46 assertEquals(label, StructuredPostal.getTypeLabel(mResources, type, "")); in assertGetTypeLabel()
49 private void assertCustomTypeLabel(String label) { in assertCustomTypeLabel() argument
52 assertEquals(label, StructuredPostal.getTypeLabel(mResources, in assertCustomTypeLabel()
53 StructuredPostal.TYPE_CUSTOM, label)); in assertCustomTypeLabel()
DContactsContract_CommonDataKinds_EmailTest.java46 String label = mResources.getString(res); in assertGetTypeLabel() local
47 assertEquals(label, Email.getTypeLabel(mResources, type, "")); in assertGetTypeLabel()
50 private void assertCustomTypeLabel(String label) { in assertCustomTypeLabel() argument
53 assertEquals(label, Email.getTypeLabel(mResources, Email.TYPE_CUSTOM, label)); in assertCustomTypeLabel()
DContactsContract_CommonDataKinds_OrganizationTest.java48 String label = mResources.getString(res); in assertGetTypeLabel() local
49 assertEquals(label, Organization.getTypeLabel(mResources, type, "")); in assertGetTypeLabel()
52 private void assertCustomTypeLabel(String label) { in assertCustomTypeLabel() argument
55 assertEquals(label, Organization.getTypeLabel(mResources, Im.TYPE_CUSTOM, label)); in assertCustomTypeLabel()
DContacts_ContactMethodsTest.java51 String label = "label"; in test() local
53 ContactMethods.TYPE_CUSTOM, label).toString(); in test()
54 assertEquals(label, display); in test()
57 ContactMethods.TYPE_CUSTOM, label).toString(); in test()
58 assertEquals(label, display); in test()
DContactsContract_CommonDataKinds_RelationTest.java56 String label = mResources.getString(res); in assertGetTypeLabel() local
57 assertEquals(label, Relation.getTypeLabel(mResources, type, "")); in assertGetTypeLabel()
60 private void assertCustomTypeLabel(String label) { in assertCustomTypeLabel() argument
63 assertEquals(label, Relation.getTypeLabel(mResources, Relation.TYPE_CUSTOM, label)); in assertCustomTypeLabel()
DContactsContract_CommonDataKinds_PhoneTest.java62 String label = mResources.getString(res); in assertGetTypeLabel() local
63 assertEquals(label, Phone.getTypeLabel(mResources, type, "")); in assertGetTypeLabel()
66 private void assertCustomTypeLabel(String label) { in assertCustomTypeLabel() argument
69 assertEquals(label, Phone.getTypeLabel(mResources, Phone.TYPE_CUSTOM, label)); in assertCustomTypeLabel()
DContacts_OrganizationsTest.java24 String label = "label"; in testGetDisplayLabel() local
26 Organizations.TYPE_CUSTOM, label).toString(); in testGetDisplayLabel()
27 assertEquals(label, display); in testGetDisplayLabel()
/cts/tests/tests/view/src/android/view/cts/input/
DInputDeviceKeyLayoutMapTest.java210 private int updateMetaState(int action, String label) { in updateMetaState() argument
214 if (label.equals("CTRL_LEFT")) { in updateMetaState()
217 if (label.equals("CTRL_RIGHT")) { in updateMetaState()
220 if (label.equals("SHIFT_LEFT")) { in updateMetaState()
223 if (label.equals("SHIFT_RIGHT")) { in updateMetaState()
226 if (label.equals("ALT_LEFT")) { in updateMetaState()
229 if (label.equals("ALT_RIGHT")) { in updateMetaState()
232 if (label.equals("CAPS_LOCK")) { in updateMetaState()
235 if (label.equals("NUM_LOCK")) { in updateMetaState()
238 if (label.equals("SCROLL_LOCK")) { in updateMetaState()
[all …]
DInputDeviceMultiDeviceKeyEventTest.java227 private KeyEvent generateKeyEvent(int deviceId, int action, String label, int repeat) { in generateKeyEvent() argument
229 int keyCode = KeyEvent.keyCodeFromString(LABEL_PREFIX + label); in generateKeyEvent()
260 private void assertKeyRepeat(int deviceId, String label, int repeat, int count) { in assertKeyRepeat() argument
263 KeyEvent.ACTION_DOWN, label, repeat + i); in assertKeyRepeat()
268 private void assertKeyUp(int deviceId, String label) { in assertKeyUp() argument
270 KeyEvent.ACTION_UP, label, /* repeat */ 0); in assertKeyUp()
/cts/tests/autofillservice/src/android/autofillservice/cts/activities/
DAbstractWebViewActivity.java33 protected UiObject2 getInput(UiBot uiBot, UiObject2 label) throws Exception { in getInput() argument
35 final UiObject2 parent = label.getParent(); in getInput()
38 if (label.equals(previous)) { in getInput()
47 uiBot.dumpScreen("getInput() for label " + label + "failed"); in getInput()
48 throw new IllegalStateException("could not find username (label=" + label + ")"); in getInput()
DVirtualContainerView.java161 final String readOnlyText = line.label.text + ": ["; in onDraw()
342 public Line addLine(String labelId, String label, String textId, String text, int inputType) { in addLine() argument
343 final Line line = new Line(labelId, label, textId, text, inputType); in addLine()
346 mItems.put(line.label.id, line.label); in addLine()
417 final Item label; field in VirtualContainerView.Line
427 private Line(String labelId, String label, String textId, String text, int inputType) { in Line() argument
428 this.label = new Item(this, ++mNextChildId, labelId, label, false, false); in Line()
508 return "Label: " + label + " Text: " + text + " Focused: " + focused in toString()
536 assertWithMessage("Timeout (%s ms) on Line %s", FILL_TIMEOUT.ms(), label) in assertAutoFilled()
539 assertWithMessage("Wrong auto-fill value on Line %s", label) in assertAutoFilled()
/cts/tests/tests/webkit/src/android/webkit/cts/
DDateSorterTest.java54 String label = dateSorter.getLabel(i); in testGetLabel() local
55 assertNotNull(label); in testGetLabel()
56 assertThat(label.length(), greaterThan(0)); in testGetLabel()
58 assertFalse("Set should not contain label", set.contains(label)); in testGetLabel()
59 set.add(label); in testGetLabel()
/cts/tests/tests/view/jni/
Dandroid_view_cts_InputDeviceKeyLayoutMapTest.cpp49 std::string type, code, label, flags; in loadGenericKl() local
51 ssLine >> type >> code >> label >> flags; in loadGenericKl()
68 result.emplace(std::stoi(code), label); in loadGenericKl()
95 for (const auto& [key, label] : map) { in android_view_cts_nativeLoadKeyLayout()
96 env->CallObjectMethod(keyLayoutMap, hashMapPutID, env->NewStringUTF(label.c_str()), in android_view_cts_nativeLoadKeyLayout()
/cts/tests/inputmethod/src/android/view/inputmethod/cts/util/
DTestWebView.java75 UiObject2 label = null; in getInput() local
77 label = timeout.run("waitForObject(" + selector + ")", in getInput()
81 assertNotNull("Editor label must exists on WebView", label); in getInput()
84 final UiObject2 parent = label.getParent(); in getInput()
87 if (label.equals(previous)) { in getInput()
/cts/tests/tests/telecom/src/android/telecom/cts/
DDataObjectUnitTests.java168 final CharSequence label = "Out of service area"; in testDisconnectCause() local
173 label, in testDisconnectCause()
178 assertEquals(label, cause.getLabel()); in testDisconnectCause()
191 assertEquals(label, parcelCause.getLabel()); in testDisconnectCause()
202 final CharSequence label = "Wi-Fi call"; in testStatusHints() local
209 label, in testStatusHints()
212 assertEquals(label, hints.getLabel()); in testStatusHints()
225 assertEquals(label, parcelHints.getLabel()); in testStatusHints()
237 final CharSequence label = "Wi-Fi call"; in testGatewayInfo() local
/cts/apps/CameraITS/tests/scene0/
Dtest_gyro_bias.py76 pylab.plot(times, xs, 'r', label='x')
77 pylab.plot(times, ys, 'g', label='y')
78 pylab.plot(times, zs, 'b', label='z')
/cts/tests/sensor/src/android/hardware/cts/helpers/
DSensorCtsHelper.java193 public static String formatAssertionMessage(String label, TestSensorEnvironment environment) { in formatAssertionMessage() argument
194 return formatAssertionMessage(label, environment, "Failed"); in formatAssertionMessage()
208 String label, in formatAssertionMessage() argument
212 return formatAssertionMessage(label, environment, String.format(format, params)); in formatAssertionMessage()
225 String label, in formatAssertionMessage() argument
230 label, in formatAssertionMessage()
/cts/tests/tests/widget/src/android/widget/cts/
DPointerIconTest.java90 private TabHost.TabSpec createTabSpec(TabHost tabHost, String label, PointerIcon pointerIcon) { in createTabSpec() argument
92 tabIndicator.setText(label); in createTabSpec()
94 return tabHost.newTabSpec(label) in createTabSpec()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/
DUserRestrictions.java189 return context.getString(item.label); in getRestrictionLabel()
232 context.getString(item.label)) in getUserRestrictionTestIntent()
349 final int label; field in UserRestrictions.UserRestrictionItem
352 public UserRestrictionItem(int label, int userAction, String intentAction) { in UserRestrictionItem() argument
353 this.label = label; in UserRestrictionItem()
/cts/hostsidetests/packagemanager/dynamicmime/test/src/android/dynamicmime/testapp/preferred/
DPreferredActivitiesTest.java288 private void chooseActivity(String label) { in chooseActivity() argument
289 findActivityInDialog(label).click(); in chooseActivity()
295 private UiObject2 findActivityInDialog(String label) { in findActivityInDialog() argument
306 return getUiDevice().findObject(By.text(label)); in findActivityInDialog()
/cts/tests/leanbackjank/app/src/android/leanbackjank/app/presenter/
DIconHeaderItemPresenter.java57 TextView label = (TextView) rootView.findViewById(R.id.header_label); in onBindViewHolder() local
58 label.setText(headerItem.getName()); in onBindViewHolder()
/cts/apps/CameraITS/tests/sensor_fusion/
Dtest_sensor_fusion.py223 pylab.plot(times, x, 'r', label='x')
224 pylab.plot(times, y, 'g', label='y')
230 pylab.plot(times, z, 'b', label='z')
406 pylab.plot(x, y, 'ro', label='data', alpha=0.7)
407 pylab.plot(xfit, yfit, 'b', label='fit', alpha=0.7)
408 pylab.plot(best, min(yfit), 'g*', label='best', markersize=10)
429 label='camera', alpha=0.7)
431 label='gyro', alpha=0.7)

1234