Home
last modified time | relevance | path

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

12345678910>>...25

/cts/tests/tests/content/src/android/content/res/cts/
DFractionTest.java23 import com.android.cts.content.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 com.android.cts.content.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 …]
DPrimitiveTest.java24 import com.android.cts.content.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 …]
DTypedArrayTest.java19 import com.android.cts.content.R;
62 final int[] attrs = R.styleable.style1; in setUp()
63 mTypedArray = getContext().getTheme().obtainStyledAttributes(R.style.Whatever, attrs); in setUp()
77 assertTrue(mTypedArray.getBoolean(R.styleable.style1_type1, false)); in testAttrsMethod()
78 assertFalse(mTypedArray.getBoolean(R.styleable.style1_type2, true)); in testAttrsMethod()
80 assertEquals(EXPECTEDCLOLOR, mTypedArray.getColor(R.styleable.style1_type3, DEFINT)); in testAttrsMethod()
86 mTypedArray.getColorStateList(R.styleable.style1_type4). in testAttrsMethod()
92 mTypedArray.getDimension(R.styleable.style1_type5, DEFFLOAT)); in testAttrsMethod()
94 mTypedArray.getDimensionPixelOffset(R.styleable.style1_type6, DEFINT)); in testAttrsMethod()
96 mTypedArray.getLayoutDimension(R.styleable.style1_type6, "type6")); in testAttrsMethod()
[all …]
DResourcesTest.java19 import com.android.cts.content.R;
83 final String strGo = mResources.getString(R.string.go, "%1$s%%", 12); in testGetString()
88 final XmlPullParser parser = mResources.getXml(R.xml.test_color); in testObtainAttributes()
91 final TypedArray testTypedArray = mResources.obtainAttributes(set, R.styleable.Style1); in testObtainAttributes()
108 final TypedArray ta = mResources.obtainTypedArray(R.array.string); in testObtainTypedArray()
176 final float dim = mResources.getDimension(R.dimen.app_icon_size); in testGetDimension()
189 final int dim = mResources.getDimensionPixelOffset(R.dimen.app_icon_size); in testGetDimensionPixelOffset()
201 final ColorStateList colorStateList = mResources.getColorStateList(R.color.color1); in testGetColorStateList()
202 final int[] focusedState = {android.R.attr.state_focused}; in testGetColorStateList()
203 final int focusColor = colorStateList.getColorForState(focusedState, R.color.failColor); in testGetColorStateList()
[all …]
/cts/tests/tests/view/src/android/view/cts/
DMenuInflaterTest.java19 import com.android.cts.view.R;
70 mMenuInflater.inflate(com.android.cts.view.R.menu.browser, menu); in testInflate()
81 mMenuInflater.inflate(com.android.cts.view.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 …]
DContextThemeWrapperTest.java26 import com.android.cts.view.R;
48 new ContextThemeWrapper(getContext(), R.style.TextAppearance); in testConstructor()
58 contextThemeWrapper.setTheme(R.style.TextAppearance); in testAccessTheme()
60 contextThemeWrapper.getTheme().obtainStyledAttributes(R.styleable.TextAppearance); in testAccessTheme()
69 int themeres = R.style.TextAppearance; in testGetSystemService()
90 R.style.TextAppearance)); in testAttachBaseContext()
111 expected.applyStyle(R.style.TextAppearance, true); in assertEqualsTextAppearanceStyle()
112 TypedArray expectedTa = expected.obtainStyledAttributes(R.styleable.TextAppearance); in assertEqualsTextAppearanceStyle()
114 assertEquals(expectedTa.getColor(R.styleable.TextAppearance_textColor, defValue), in assertEqualsTextAppearanceStyle()
115 ta.getColor(R.styleable.TextAppearance_textColor, defValue)); in assertEqualsTextAppearanceStyle()
[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()
197 new Theme(android.R.style.Theme_Holo,
199 new Theme(android.R.style.Theme_Holo_Dialog,
201 new Theme(android.R.style.Theme_Holo_Dialog_MinWidth,
203 new Theme(android.R.style.Theme_Holo_Dialog_NoActionBar,
205 new Theme(android.R.style.Theme_Holo_Dialog_NoActionBar_MinWidth,
207 new Theme(android.R.style.Theme_Holo_DialogWhenLarge,
209 new Theme(android.R.style.Theme_Holo_DialogWhenLarge_NoActionBar,
211 new Theme(android.R.style.Theme_Holo_InputMethod,
[all …]
/cts/tests/tests/preference2/src/android/preference2/cts/
DPreferenceFromCodeActivity.java19 import com.android.cts.preference2.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.java34 import com.android.cts.graphics.R;
46 R.drawable.vector_icon_create,
47 R.drawable.vector_icon_delete,
48 R.drawable.vector_icon_heart,
49 R.drawable.vector_icon_schedule,
50 R.drawable.vector_icon_settings,
51 R.drawable.vector_icon_random_path_1,
52 R.drawable.vector_icon_random_path_2,
53 R.drawable.vector_icon_repeated_cq,
54 R.drawable.vector_icon_repeated_st,
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/
DByodFlowTestActivity.java33 import com.android.cts.verifier.R;
85 super(R.layout.provisioning_byod, in ByodFlowTestActivity()
86 R.string.provisioning_byod, R.string.provisioning_byod_info, in ByodFlowTestActivity()
87 R.string.provisioning_byod_instructions); in ByodFlowTestActivity()
96 mPrepareTestButton.setText(R.string.provisioning_byod_start); in onCreate()
164 R.string.provisioning_byod_profileowner, in setupTests()
177 R.string.provisioning_byod_workapps_visible, in setupTests()
179 R.string.provisioning_byod_workapps_visible_instruction, in setupTests()
181 R.drawable.badged_icon); in setupTests()
184 R.string.provisioning_byod_work_notification, in setupTests()
[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 …]
/cts/tests/tests/theme/src/android/theme/cts/
DDeviceDefaultTest.java33 assertActionBar(android.R.style.Theme_DeviceDefault); in testGetActionBar_DeviceDefault()
37 assertNoActionBar(android.R.style.Theme_DeviceDefault_Dialog); in testGetActionBar_DeviceDefault_Dialog()
41 assertNoActionBar(android.R.style.Theme_DeviceDefault_Dialog_MinWidth); in testGetActionBar_DeviceDefault_MinWidth()
45 assertNoActionBar(android.R.style.Theme_DeviceDefault_Dialog_NoActionBar); in testGetActionBar_DeviceDefault_Dialog_NoActionBar()
49 assertNoActionBar(android.R.style.Theme_DeviceDefault_Dialog_NoActionBar_MinWidth); in testGetActionBar_DeviceDefault_Dialog_NoActionBar_MinWidth()
53 assertActionBarWhenLarge(android.R.style.Theme_DeviceDefault_DialogWhenLarge); in testGetActionBar_DeviceDefault_DialogWhenLarge()
57 assertNoActionBar(android.R.style.Theme_DeviceDefault_DialogWhenLarge_NoActionBar); in testGetActionBar_DeviceDefault_DialogWhenLarge_NoActionBar()
61 assertNoActionBar(android.R.style.Theme_DeviceDefault_InputMethod); in testGetActionBar_DeviceDefault_InputMethod()
65 assertActionBar(android.R.style.Theme_DeviceDefault_Light); in testGetActionBar_DeviceDefault_Light()
69 assertActionBar(android.R.style.Theme_DeviceDefault_Light_DarkActionBar); in testGetActionBar_DeviceDefault_Light_DarkActionBar()
[all …]
/cts/tests/tests/widget/src/android/widget/cts/
DRemoteViewsTest.java21 import com.android.cts.widget.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 …]
DGalleryCtsActivity.java19 import com.android.cts.widget.R;
37 setContentView(R.layout.gallery_test); in onCreate()
39 Gallery gallery = (Gallery) findViewById(R.id.gallery_test); in onCreate()
75 R.drawable.faces,
76 R.drawable.scenery,
77 R.drawable.testimage,
78 R.drawable.faces,
79 R.drawable.scenery,
80 R.drawable.testimage,
81 R.drawable.faces,
[all …]
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DFontRenderingTests.java32 import com.android.cts.uirendering.R;
74 R.drawable.hello1); in testDefaultFont()
81 R.drawable.bold1); in testBoldFont()
88 R.drawable.italic1); in testItalicFont()
95 R.drawable.bolditalic1); in testBoldItalicFont()
102 R.drawable.medium1); in testMediumFont()
110 R.drawable.black1); in testMediumBoldFont()
117 R.drawable.mediumitalic1); in testMediumItalicFont()
124 R.drawable.blackitalic1); in testMediumBoldItalicFont()
131 R.drawable.light1); in testLightFont()
[all …]
/cts/tests/uiautomator/test-apps/CtsUiAutomatorApp/src/com/android/cts/uiautomator/
DTest2DetailFragment.java45 inflater.inflate(R.menu.test2_detail_activity, menu); in onCreateOptionsMenu()
51 builder.setTitle(R.string.dialog_title_result); in onOptionsItemSelected()
53 builder.setPositiveButton(R.string.OK, null); in onOptionsItemSelected()
61 View rootView = inflater.inflate(R.layout.test2_detail_fragment, container, false); in onCreateView()
63 mButton1 = (Button) rootView.findViewById(R.id.test2button1); in onCreateView()
64 mButton2 = (Button) rootView.findViewById(R.id.test2button2); in onCreateView()
65 mButton3 = (Button) rootView.findViewById(R.id.test2button3); in onCreateView()
66 mDynaButton = (Button) rootView.findViewById(R.id.test2dynaButton); in onCreateView()
72 builder.setTitle(R.string.dialog_title_result); in onCreateView()
73 builder.setPositiveButton(R.string.OK, null); in onCreateView()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/nfc/hce/
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 …]
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()
52 adapter.add(TestListItem.newTest(this, R.string.nfc_hce_dual_payment_reader, in onCreate()
56 adapter.add(TestListItem.newTest(this, R.string.nfc_hce_change_default_reader, in onCreate()
60 adapter.add(TestListItem.newTest(this, R.string.nfc_hce_foreground_payment_reader, in onCreate()
64 adapter.add(TestListItem.newTest(this, R.string.nfc_hce_single_non_payment_reader, in onCreate()
[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 …]
/cts/tests/tests/transition/src/android/transition/cts/
DTransitionTest.java18 import com.android.cts.transition.R;
37 startTransition(R.layout.scene1); in testAddListener()
48 Scene scene = Scene.getSceneForLayout(mSceneRoot, R.layout.scene2, mActivity); in testAddListener()
70 startTransition(R.layout.scene1); in testRemoveListener()
85 enterScene(R.layout.scene4); in testAddTargetId()
86 mTransition.addTarget(R.id.holder); in testAddTargetId()
87 mTransition.addTarget(R.id.hello); in testAddTargetId()
89 startTransition(R.layout.scene1); in testAddTargetId()
91 assertEquals(R.id.hello, mTargets.get(0).getId()); in testAddTargetId()
96 enterScene(R.layout.scene4); 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/location/
DLocationModeDeviceOnlyTestActivity.java21 import com.android.cts.verifier.R;
27 createUserItem(R.string.location_mode_turn_on); in createTestItems()
28 createUserItem(R.string.location_mode_select_device_only); in createTestItems()
29 createAutoItem(R.string.location_mode_secure_gps_on); in createTestItems()
30 createAutoItem(R.string.location_mode_secure_nlp_off); in createTestItems()
31 createAutoItem(R.string.location_mode_manager_gps_on); in createTestItems()
32 createAutoItem(R.string.location_mode_manager_nlp_off); in createTestItems()
37 setInfoResources(R.string.location_mode_device_only_test, in setInfoResources()
38 R.string.location_mode_device_only_info, -1); in setInfoResources()
DLocationModeHighAccuracyTestActivity.java21 import com.android.cts.verifier.R;
27 createUserItem(R.string.location_mode_turn_on); in createTestItems()
28 createUserItem(R.string.location_mode_select_high_accuracy); in createTestItems()
29 createAutoItem(R.string.location_mode_secure_gps_on); in createTestItems()
30 createAutoItem(R.string.location_mode_secure_nlp_on); in createTestItems()
31 createAutoItem(R.string.location_mode_manager_gps_on); in createTestItems()
32 createAutoItem(R.string.location_mode_manager_nlp_on); in createTestItems()
37 setInfoResources(R.string.location_mode_high_accuracy_test, in setInfoResources()
38 R.string.location_mode_high_accuracy_info, -1); in setInfoResources()
DLocationModeBatterySavingTestActivity.java21 import com.android.cts.verifier.R;
27 createUserItem(R.string.location_mode_turn_on); in createTestItems()
28 createUserItem(R.string.location_mode_select_battery_saving); in createTestItems()
29 createAutoItem(R.string.location_mode_secure_gps_off); in createTestItems()
30 createAutoItem(R.string.location_mode_secure_nlp_on); in createTestItems()
31 createAutoItem(R.string.location_mode_manager_gps_off); in createTestItems()
32 createAutoItem(R.string.location_mode_manager_nlp_on); in createTestItems()
37 setInfoResources(R.string.location_mode_battery_saving_test, in setInfoResources()
38 R.string.location_mode_battery_saving_info, -1); in setInfoResources()

12345678910>>...25