Home
last modified time | relevance | path

Searched refs:R (Results 1 – 25 of 735) sorted by relevance

12345678910>>...30

/cts/tests/tests/view/src/android/view/cts/
DMenuInflaterTest.java19 import android.view.cts.R;
70 mMenuInflater.inflate(android.view.cts.R.menu.browser, menu); in testInflate()
81 mMenuInflater.inflate(android.view.cts.R.menu.browser, null); in testInflate()
96 mMenuInflater.inflate(R.menu.visible_shortcut, menu); in testInflateFromXml()
98 assertTrue(menu.findItem(R.id.visible_item).isVisible()); in testInflateFromXml()
99 assertEquals('a', menu.findItem(R.id.visible_item).getAlphabeticShortcut()); in testInflateFromXml()
101 assertFalse(menu.findItem(R.id.hidden_item).isVisible()); in testInflateFromXml()
102 assertEquals('b', menu.findItem(R.id.hidden_item).getAlphabeticShortcut()); in testInflateFromXml()
104 assertEquals(R.id.hidden_group, menu.findItem(R.id.hidden_by_group).getGroupId()); in testInflateFromXml()
105 assertFalse(menu.findItem(R.id.hidden_by_group).isVisible()); in testInflateFromXml()
[all …]
/cts/tests/tests/content/src/android/content/res/cts/
DFractionTest.java23 import android.content.cts.R;
39 tryFraction(R.dimen.frac100perc, 1, 1, 1); in testFractions()
40 tryFraction(R.dimen.frac1perc, 1, 1, .01f); in testFractions()
41 tryFraction(R.dimen.fracp1perc, 1, 1, .001f); in testFractions()
42 tryFraction(R.dimen.fracp01perc, 1, 1, .0001f); in testFractions()
43 tryFraction(R.dimen.frac0perc, 1, 1, 0); in testFractions()
44 tryFraction(R.dimen.frac1p1perc, 1, 1, .011f); in testFractions()
45 tryFraction(R.dimen.frac100p1perc, 1, 1, 1.001f); in testFractions()
46 tryFraction(R.dimen.frac25510perc, 1, 1, 255.1f); in testFractions()
47 tryFraction(R.dimen.frac25610perc, 1, 1, 256.1f); in testFractions()
[all …]
DConfigTest.java34 import android.content.cts.R;
229 checkValue(res, bagRes, R.styleable.TestConfig, in checkPair()
241 checkValue(res, R.configVarying.simple, "simple default"); in testAllEmptyConfigs()
242 checkValue(res, R.configVarying.bag, in testAllEmptyConfigs()
243 R.styleable.TestConfig, new String[]{"bag default"}); in testAllEmptyConfigs()
248 checkValue(res, R.configVarying.simple, "simple xx"); in testAllEmptyConfigs()
249 checkValue(res, R.configVarying.bag, in testAllEmptyConfigs()
250 R.styleable.TestConfig, new String[]{"bag xx"}); in testAllEmptyConfigs()
256 checkValue(res, R.configVarying.simple, "simple xx-rYY"); in testAllEmptyConfigs()
257 checkValue(res, R.configVarying.bag, in testAllEmptyConfigs()
[all …]
DTypedArrayTest.java21 import android.content.cts.R;
64 …mTypedArray = getContext().getTheme().obtainStyledAttributes(R.style.Whatever, R.styleable.style1); in setUp()
75 R.style.Whatever, R.styleable.style1); in testGetType()
77 assertEquals(TypedValue.TYPE_INT_BOOLEAN, t.getType(R.styleable.style1_type1)); in testGetType()
78 assertEquals(TypedValue.TYPE_INT_BOOLEAN, t.getType(R.styleable.style1_type2)); in testGetType()
79 assertEquals(TypedValue.TYPE_INT_COLOR_ARGB8, t.getType(R.styleable.style1_type3)); in testGetType()
80 assertEquals(TypedValue.TYPE_INT_COLOR_ARGB8, t.getType(R.styleable.style1_type4)); in testGetType()
81 assertEquals(TypedValue.TYPE_DIMENSION, t.getType(R.styleable.style1_type5)); in testGetType()
82 assertEquals(TypedValue.TYPE_DIMENSION, t.getType(R.styleable.style1_type6)); in testGetType()
83 assertEquals(TypedValue.TYPE_DIMENSION, t.getType(R.styleable.style1_type7)); in testGetType()
[all …]
DPrimitiveTest.java24 import android.content.cts.R;
36 final TypedArray sa = mContext.obtainStyledAttributes(resid, R.styleable.EnumStyle); in tryEnum()
37 final int value = sa.getInt(R.styleable.EnumStyle_testEnum, -1); in tryEnum()
46 tryEnum(R.style.TestEnum1, 1); in testEnum()
47 tryEnum(R.style.TestEnum2, 2); in testEnum()
48 tryEnum(R.style.TestEnum10, 10); in testEnum()
49 tryEnum(R.style.TestEnum1_EmptyInherit, 1); in testEnum()
53 final TypedArray sa = mContext.obtainStyledAttributes(resid, R.styleable.FlagStyle); in tryFlag()
54 final int value = sa.getInt(R.styleable.FlagStyle_testFlags, -1); in tryFlag()
63 tryFlag(R.style.TestFlag1, 0x1); in testFlags()
[all …]
/cts/hostsidetests/theme/app/src/android/theme/app/
DThemeDeviceActivity.java79 setContentView(R.layout.theme_test); in onCreate()
81 mViewGroup = (ReferenceViewGroup) findViewById(R.id.reference_view_group); in onCreate()
204 new Theme(Theme.HOLO, android.R.style.Theme_Holo,
206 new Theme(Theme.HOLO, android.R.style.Theme_Holo_Dialog,
208 new Theme(Theme.HOLO, android.R.style.Theme_Holo_Dialog_MinWidth,
210 new Theme(Theme.HOLO, android.R.style.Theme_Holo_Dialog_NoActionBar,
212 new Theme(Theme.HOLO, android.R.style.Theme_Holo_Dialog_NoActionBar_MinWidth,
214 new Theme(Theme.HOLO, android.R.style.Theme_Holo_DialogWhenLarge,
216 new Theme(Theme.HOLO, android.R.style.Theme_Holo_DialogWhenLarge_NoActionBar,
218 new Theme(Theme.HOLO, android.R.style.Theme_Holo_InputMethod,
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/nfc/hce/
DHceReaderTestActivity.java23 import com.android.cts.verifier.R;
35 setContentView(R.layout.pass_fail_list); in onCreate()
36 setInfoResources(R.string.nfc_test, R.string.nfc_hce_reader_test_info, 0); in onCreate()
42 adapter.add(TestListItem.newCategory(this, R.string.nfc_hce_reader_tests)); in onCreate()
44 adapter.add(TestListItem.newTest(this, R.string.nfc_hce_protocol_params_reader, in onCreate()
48 adapter.add(TestListItem.newTest(this, R.string.nfc_hce_single_payment_reader, in onCreate()
49 getString(R.string.nfc_hce_single_payment_reader), in onCreate()
52 adapter.add(TestListItem.newTest(this, R.string.nfc_hce_dual_payment_reader, in onCreate()
53 getString(R.string.nfc_hce_dual_payment_reader), in onCreate()
56 adapter.add(TestListItem.newTest(this, R.string.nfc_hce_change_default_reader, in onCreate()
[all …]
DHceEmulatorTestActivity.java21 import com.android.cts.verifier.R;
37 setContentView(R.layout.pass_fail_list); in onCreate()
38 setInfoResources(R.string.nfc_test, R.string.nfc_hce_emulator_test_info, 0); in onCreate()
46 adapter.add(TestListItem.newCategory(this, R.string.nfc_hce_emulator_tests)); in onCreate()
54 adapter.add(TestListItem.newTest(this, R.string.nfc_hce_protocol_params_emulator, in onCreate()
58 adapter.add(TestListItem.newTest(this, R.string.nfc_hce_single_payment_emulator, in onCreate()
62 adapter.add(TestListItem.newTest(this, R.string.nfc_hce_dual_payment_emulator, in onCreate()
66 adapter.add(TestListItem.newTest(this, R.string.nfc_hce_change_default_emulator, in onCreate()
70 adapter.add(TestListItem.newTest(this, R.string.nfc_hce_foreground_payment_emulator, in onCreate()
74 adapter.add(TestListItem.newTest(this, R.string.nfc_hce_single_non_payment_emulator, in onCreate()
[all …]
/cts/tests/tests/preference2/src/android/preference2/cts/
DPreferenceFromCodeActivity.java19 import android.preference2.cts.R;
46 prefCat.setTitle(R.string.inline_preferences); in addPreferenceCategory()
53 checkboxPref.setIcon(R.drawable.ic_launcher); in addPreferenceCategory()
54 checkboxPref.setTitle(R.string.title_checkbox_preference); in addPreferenceCategory()
55 checkboxPref.setSummary(R.string.summary_checkbox_preference); in addPreferenceCategory()
56 checkboxPref.setSummaryOn(R.string.summary_on_checkbox_preference); in addPreferenceCategory()
57 checkboxPref.setSummaryOff(R.string.summary_off_checkbox_preference); in addPreferenceCategory()
65 switchPref.setTitle(R.string.title_switch_preference); in addPreferenceCategory()
66 switchPref.setSummary(R.string.summary_switch_preference); in addPreferenceCategory()
67 switchPref.setSummaryOn(R.string.summary_on_switch_preference); in addPreferenceCategory()
[all …]
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DVectorDrawableTest.java32 import android.graphics.cts.R;
53 R.drawable.vector_icon_create,
54 R.drawable.vector_icon_delete,
55 R.drawable.vector_icon_heart,
56 R.drawable.vector_icon_schedule,
57 R.drawable.vector_icon_settings,
58 R.drawable.vector_icon_random_path_1,
59 R.drawable.vector_icon_random_path_2,
60 R.drawable.vector_icon_repeated_cq,
61 R.drawable.vector_icon_repeated_st,
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/
DByodFlowTestActivity.java34 import com.android.cts.verifier.R;
101 super(R.layout.provisioning_byod, in ByodFlowTestActivity()
102 R.string.provisioning_byod, R.string.provisioning_byod_info, in ByodFlowTestActivity()
103 R.string.provisioning_byod_instructions); in ByodFlowTestActivity()
112 mPrepareTestButton.setText(R.string.provisioning_byod_start); in onCreate()
181 R.string.provisioning_byod_profileowner, in setupTests()
194 R.string.provisioning_byod_workapps_visible, in setupTests()
196 R.string.provisioning_byod_workapps_visible_instruction, in setupTests()
198 R.drawable.badged_icon); in setupTests()
201 R.string.provisioning_byod_work_notification, in setupTests()
[all …]
DUserRestrictions.java27 import com.android.cts.verifier.R;
54 R.string.disallow_add_user,
55 R.string.disallow_adjust_volume,
56 R.string.disallow_apps_control,
57 R.string.disallow_config_cell_broadcasts,
58 R.string.disallow_config_credentials,
59 R.string.disallow_config_mobile_networks,
60 R.string.disallow_config_tethering,
61 R.string.disallow_config_wifi,
62 R.string.disallow_debugging_features,
[all …]
DDeviceOwnerPositiveTestActivity.java40 import com.android.cts.verifier.R;
85 getString(R.string.device_owner_incorrect_device_owner), null); in onCreate()
91 setContentView(R.layout.positive_device_owner); in onCreate()
92 setInfoResources(R.string.device_owner_positive_tests, in onCreate()
93 R.string.device_owner_positive_tests_info, 0); in onCreate()
97 adapter.add(TestListItem.newCategory(this, R.string.device_owner_positive_category)); in onCreate()
110 View setDeviceOwnerButton = findViewById(R.id.set_device_owner_button); in onCreate()
116 .setIcon(android.R.drawable.ic_dialog_info) in onCreate()
117 .setTitle(R.string.set_device_owner_dialog_title) in onCreate()
118 .setMessage(R.string.set_device_owner_dialog_text) in onCreate()
[all …]
DPolicyTransparencyTestActivity.java38 import com.android.cts.verifier.R;
72 R.string.auto_time_required_set_step, in POLICY_TEST_ITEMS.put()
73 R.string.set_auto_time_required_action, in POLICY_TEST_ITEMS.put()
74 R.string.set_auto_time_required_widget_label, in POLICY_TEST_ITEMS.put()
75 R.id.switch_widget, in POLICY_TEST_ITEMS.put()
78 R.string.disallow_keyguard_unredacted_notifications_set_step, in POLICY_TEST_ITEMS.put()
79 R.string.disallow_keyguard_unredacted_notifications_action, in POLICY_TEST_ITEMS.put()
80 R.string.disallow_keyguard_unredacted_notifications_widget_label, in POLICY_TEST_ITEMS.put()
81 R.id.switch_widget, in POLICY_TEST_ITEMS.put()
84 R.string.lock_screen_info_set_step, in POLICY_TEST_ITEMS.put()
[all …]
DDeviceOwnerRequestingBugreportTestActivity.java35 import com.android.cts.verifier.R;
77 getString(R.string.device_owner_incorrect_device_owner), null); in onCreate()
83 setContentView(R.layout.requesting_bugreport_device_owner); in onCreate()
84 setInfoResources(R.string.device_owner_requesting_bugreport_tests, in onCreate()
85 R.string.device_owner_requesting_bugreport_tests_info, 0); in onCreate()
90 R.string.device_owner_requesting_bugreport_category)); in onCreate()
103 View setDeviceOwnerButton = findViewById(R.id.set_device_owner_button); in onCreate()
109 .setIcon(android.R.drawable.ic_dialog_info) in onCreate()
110 .setTitle(R.string.set_device_owner_dialog_title) in onCreate()
111 .setMessage(R.string.set_device_owner_dialog_text) in onCreate()
[all …]
DWifiLockdownTestActivity.java31 import com.android.cts.verifier.R;
46 private static final int NONE = R.id.device_owner_keymgmnt_none;
47 private static final int WPA = R.id.device_owner_keymgmnt_wpa;
48 private static final int WEP = R.id.device_owner_keymgmnt_wep;
63 setContentView(R.layout.wifi_lockdown); in onCreate()
64 setInfoResources(R.string.device_owner_wifi_lockdown_test, in onCreate()
65 R.string.device_owner_wifi_lockdown_info, 0); in onCreate()
71 R.string.wifi_lockdown_go_settings_wifi_button, in onCreate()
74 R.string.switch_wifi_lockdown_off_button, in onCreate()
83 R.string.switch_wifi_lockdown_on_button, in onCreate()
[all …]
DTurnOffWorkActivity.java36 import com.android.cts.verifier.R;
57 super(R.layout.provisioning_byod, in TurnOffWorkActivity()
58 R.string.provisioning_byod_turn_off_work, in TurnOffWorkActivity()
59 R.string.provisioning_byod_turn_off_work_info, in TurnOffWorkActivity()
60 R.string.provisioning_byod_turn_off_work_instructions); in TurnOffWorkActivity()
67 mPrepareTestButton.setText(R.string.provisioning_byod_turn_off_work_prepare_button); in onCreate()
99 R.string.provisioning_byod_turn_off_work_prepare_notifications, in setupTests()
101 R.string.provisioning_byod_turn_off_work_prepare_notifications_instruction, in setupTests()
105 R.string.provisioning_byod_turn_off_work_turned_off, in setupTests()
110 R.string.provisioning_byod_turn_off_work_turned_off_toast, in setupTests()
[all …]
/cts/tests/tests/widget/src/android/widget/cts/
DRemoteViewsTest.java21 import android.widget.cts.R;
85 mRemoteViews = new RemoteViews(PACKAGE_NAME, R.layout.remoteviews_good); in setUp()
92 new RemoteViews(PACKAGE_NAME, R.layout.remoteviews_good); in testConstructor()
100 mRemoteViews = new RemoteViews(null, R.layout.remoteviews_good); in testGetPackage()
105 assertEquals(R.layout.remoteviews_good, mRemoteViews.getLayoutId()); in testGetLayoutId()
107 mRemoteViews = new RemoteViews(PACKAGE_NAME, R.layout.listview_layout); in testGetLayoutId()
108 assertEquals(R.layout.listview_layout, mRemoteViews.getLayoutId()); in testGetLayoutId()
118 View view = mResult.findViewById(R.id.remoteView_chronometer); in testSetViewVisibility()
121 mRemoteViews.setViewVisibility(R.id.remoteView_chronometer, View.INVISIBLE); in testSetViewVisibility()
125 mRemoteViews.setViewVisibility(R.id.remoteView_chronometer, View.GONE); in testSetViewVisibility()
[all …]
/cts/tests/tests/theme/src/android/theme/cts/
DDeviceDefaultTest.java34 assertActionBar(android.R.style.Theme_DeviceDefault); in testGetActionBar_DeviceDefault()
38 assertNoActionBar(android.R.style.Theme_DeviceDefault_Dialog); in testGetActionBar_DeviceDefault_Dialog()
42 assertNoActionBar(android.R.style.Theme_DeviceDefault_Dialog_MinWidth); in testGetActionBar_DeviceDefault_MinWidth()
46 assertNoActionBar(android.R.style.Theme_DeviceDefault_Dialog_NoActionBar); in testGetActionBar_DeviceDefault_Dialog_NoActionBar()
50 assertNoActionBar(android.R.style.Theme_DeviceDefault_Dialog_NoActionBar_MinWidth); in testGetActionBar_DeviceDefault_Dialog_NoActionBar_MinWidth()
54 assertActionBarWhenLarge(android.R.style.Theme_DeviceDefault_DialogWhenLarge); in testGetActionBar_DeviceDefault_DialogWhenLarge()
58 assertNoActionBar(android.R.style.Theme_DeviceDefault_DialogWhenLarge_NoActionBar); in testGetActionBar_DeviceDefault_DialogWhenLarge_NoActionBar()
63 assertNoActionBar(android.R.style.Theme_DeviceDefault_InputMethod); in testGetActionBar_DeviceDefault_InputMethod()
67 assertActionBar(android.R.style.Theme_DeviceDefault_Light); in testGetActionBar_DeviceDefault_Light()
71 assertActionBar(android.R.style.Theme_DeviceDefault_Light_DarkActionBar); in testGetActionBar_DeviceDefault_Light_DarkActionBar()
[all …]
/cts/tests/app/src/android/app/cts/
DFragmentReplaceTest.java20 import android.app.stubs.R;
45 .add(R.id.content, new TestFragment(R.layout.fragment_a)) in testReplaceFragment()
49 assertNotNull(mActivity.findViewById(R.id.textA)); in testReplaceFragment()
50 assertNull(mActivity.findViewById(R.id.textB)); in testReplaceFragment()
51 assertNull(mActivity.findViewById(R.id.textC)); in testReplaceFragment()
54 .add(R.id.content, new TestFragment(R.layout.fragment_b)) in testReplaceFragment()
58 assertNotNull(mActivity.findViewById(R.id.textA)); in testReplaceFragment()
59 assertNotNull(mActivity.findViewById(R.id.textB)); in testReplaceFragment()
60 assertNull(mActivity.findViewById(R.id.textC)); in testReplaceFragment()
63 .replace(R.id.content, new TestFragment(R.layout.fragment_c)) in testReplaceFragment()
[all …]
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/
DAccessibilityViewTreeReportingTest.java24 import android.accessibilityservice.cts.R;
46 getNodeByText(uiAutomation, R.string.firstFrameLayout); in testDescendantsOfNotImportantViewReportedInOrder1()
51 AccessibilityNodeInfo firstTextView = getNodeByText(uiAutomation, R.string.firstTextView); in testDescendantsOfNotImportantViewReportedInOrder1()
55 AccessibilityNodeInfo firstEditText = getNodeByText(uiAutomation, R.string.firstEditText); in testDescendantsOfNotImportantViewReportedInOrder1()
59 AccessibilityNodeInfo firstButton = getNodeByText(uiAutomation, R.string.firstButton); in testDescendantsOfNotImportantViewReportedInOrder1()
67 getNodeByText(uiAutomation, R.string.secondFrameLayout); in testDescendantsOfNotImportantViewReportedInOrder2()
72 AccessibilityNodeInfo secondTextView = getNodeByText(uiAutomation, R.string.secondTextView); in testDescendantsOfNotImportantViewReportedInOrder2()
76 AccessibilityNodeInfo secondEditText = getNodeByText(uiAutomation, R.string.secondEditText); in testDescendantsOfNotImportantViewReportedInOrder2()
80 AccessibilityNodeInfo secondButton = getNodeByText(uiAutomation, R.string.secondButton); in testDescendantsOfNotImportantViewReportedInOrder2()
88 getNodeByText(uiAutomation, R.string.rootLinearLayout); in testDescendantsOfNotImportantViewReportedInOrder3()
[all …]
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DFontRenderingTests.java32 import android.uirendering.cts.R;
73 R.drawable.hello1); in testDefaultFont()
80 R.drawable.bold1); in testBoldFont()
87 R.drawable.italic1); in testItalicFont()
94 R.drawable.bolditalic1); in testBoldItalicFont()
101 R.drawable.medium1); in testMediumFont()
109 R.drawable.black1); in testMediumBoldFont()
116 R.drawable.mediumitalic1); in testMediumItalicFont()
123 R.drawable.blackitalic1); in testMediumBoldItalicFont()
130 R.drawable.light1); in testLightFont()
[all …]
/cts/tests/tests/transition/src/android/transition/cts/
DTransitionTest.java51 startTransition(R.layout.scene1); in testAddListener()
62 Scene scene = Scene.getSceneForLayout(mSceneRoot, R.layout.scene2, mActivity); in testAddListener()
84 startTransition(R.layout.scene1); in testRemoveListener()
98 enterScene(R.layout.scene4); in testAddTargetId()
101 mTransition.addTarget(R.id.holder); in testAddTargetId()
102 mTransition.addTarget(R.id.hello); in testAddTargetId()
104 startTransition(R.layout.scene1); in testAddTargetId()
106 assertEquals(R.id.hello, mTargets.get(0).getId()); in testAddTargetId()
111 enterScene(R.layout.scene4); in testRemoveTargetId()
112 mTransition.addTarget(R.id.holder); in testRemoveTargetId()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/deskclock/
DDeskClockTestsActivity.java13 import com.android.cts.verifier.R;
72 R.string.dc_show_alarms_test,
73 R.string.dc_show_alarms_test_info,
75 R.string.dc_show_alarms_button,
79 R.string.dc_set_alarm_with_ui_test,
80 R.string.dc_set_alarm_with_ui_test_info,
82 R.string.dc_set_alarm_button,
86 R.string.dc_start_alarm_test,
87 R.string.dc_start_alarm_test_info,
89 R.string.dc_set_alarm_button,
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/nfc/
DNfcDialogs.java19 import com.android.cts.verifier.R;
32 .setIcon(android.R.drawable.ic_dialog_alert) in createNotEnabledDialog()
33 .setTitle(R.string.nfc_not_enabled) in createNotEnabledDialog()
34 .setMessage(R.string.nfc_not_enabled_message) in createNotEnabledDialog()
35 .setPositiveButton(R.string.nfc_settings, new DialogInterface.OnClickListener() { in createNotEnabledDialog()
47 .setIcon(android.R.drawable.ic_dialog_alert)
48 .setTitle(R.string.ndef_push_not_enabled)
49 .setMessage(R.string.ndef_push_not_enabled_message)
50 … .setPositiveButton(R.string.ndef_push_settings, new DialogInterface.OnClickListener() {
61 String baseString = context.getString(R.string.nfc_hce_tap_reader_message);
[all …]

12345678910>>...30