/frameworks/base/tests/StatusBar/src/com/android/statusbartest/ |
D | NotificationBuilderTest.java | 63 setContentView(R.layout.notification_builder_test); in onCreate() 68 R.id.clear_1, in onCreate() 69 R.id.clear_2, in onCreate() 70 R.id.clear_3, in onCreate() 71 R.id.clear_4, in onCreate() 72 R.id.clear_5, in onCreate() 73 R.id.clear_6, in onCreate() 74 R.id.clear_7, in onCreate() 75 R.id.clear_8, in onCreate() 76 R.id.clear_9, in onCreate() [all …]
|
/frameworks/support/samples/SupportLeanbackDemos/src/com/example/android/leanback/ |
D | MainActivity.java | 41 GuidedStepFragment.addAsRoot(this, new StepFragment(), android.R.id.content); in onCreate() 48 String title = getString(R.string.main_title); in onCreateGuidance() 49 String breadcrumb = getString(R.string.main_breadcrumb); in onCreateGuidance() 53 R.drawable.ic_main_icon, context.getTheme()); in onCreateGuidance() 59 addAction(actions, BrowseActivity.class, R.string.browse, R.string.browse_description); in onCreateActions() 60 addAction(actions, BrowseSupportActivity.class, R.string.browse_support, in onCreateActions() 61 R.string.browse_support_description); in onCreateActions() 62 addAction(actions, SearchActivity.class, R.string.search, R.string.search_description); in onCreateActions() 63 …addAction(actions, SearchSupportActivity.class, R.string.search_support, R.string.search_support_d… in onCreateActions() 65 addAction(actions, DetailsActivity.class, R.string.details, in onCreateActions() [all …]
|
/frameworks/data-binding/samples/BindingDemo/app/src/main/java/com/android/example/bindingdemo/vo/ |
D | Users.java | 3 import com.android.example.bindingdemo.R; 7 R.drawable.emo_im_angel, 8 R.drawable.emo_im_cool, 9 R.drawable.emo_im_crying, 10 R.drawable.emo_im_embarrassed, 11 R.drawable.emo_im_foot_in_mouth, 12 R.drawable.emo_im_happy, 13 R.drawable.emo_im_kissing, 14 R.drawable.emo_im_laughing, 15 R.drawable.emo_im_lips_are_sealed, [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | WifiIcons.java | 19 import com.android.systemui.R; 23 { R.drawable.stat_sys_wifi_signal_0, 24 R.drawable.stat_sys_wifi_signal_1, 25 R.drawable.stat_sys_wifi_signal_2, 26 R.drawable.stat_sys_wifi_signal_3, 27 R.drawable.stat_sys_wifi_signal_4 }, 28 { R.drawable.stat_sys_wifi_signal_0_fully, 29 R.drawable.stat_sys_wifi_signal_1_fully, 30 R.drawable.stat_sys_wifi_signal_2_fully, 31 R.drawable.stat_sys_wifi_signal_3_fully, [all …]
|
D | AccessibilityContentDescriptions.java | 5 import com.android.systemui.R; 14 R.string.accessibility_no_phone, 15 R.string.accessibility_phone_one_bar, 16 R.string.accessibility_phone_two_bars, 17 R.string.accessibility_phone_three_bars, 18 R.string.accessibility_phone_signal_full 22 R.string.accessibility_no_data, 23 R.string.accessibility_data_one_bar, 24 R.string.accessibility_data_two_bars, 25 R.string.accessibility_data_three_bars, [all …]
|
D | TelephonyIcons.java | 19 import com.android.systemui.R; 25 static final int QS_DATA_G = R.drawable.ic_qs_signal_g; 26 static final int QS_DATA_3G = R.drawable.ic_qs_signal_3g; 27 static final int QS_DATA_E = R.drawable.ic_qs_signal_e; 28 static final int QS_DATA_H = R.drawable.ic_qs_signal_h; 29 static final int QS_DATA_1X = R.drawable.ic_qs_signal_1x; 30 static final int QS_DATA_4G = R.drawable.ic_qs_signal_4g; 31 static final int QS_DATA_4G_PLUS = R.drawable.ic_qs_signal_4g_plus; 32 static final int QS_DATA_LTE = R.drawable.ic_qs_signal_lte; 33 static final int QS_DATA_LTE_PLUS = R.drawable.ic_qs_signal_lte_plus; [all …]
|
/frameworks/support/graphics/drawable/static/src/android/support/graphics/drawable/ |
D | AndroidResources.java | 23 android.R.attr.name, android.R.attr.tint, android.R.attr.height, 24 android.R.attr.width, android.R.attr.alpha, android.R.attr.autoMirrored, 25 android.R.attr.tintMode, android.R.attr.viewportWidth, android.R.attr.viewportHeight 37 android.R.attr.name, android.R.attr.pivotX, android.R.attr.pivotY, 38 android.R.attr.scaleX, android.R.attr.scaleY, android.R.attr.rotation, 39 android.R.attr.translateX, android.R.attr.translateY 50 android.R.attr.name, android.R.attr.fillColor, android.R.attr.pathData, 51 android.R.attr.strokeColor, android.R.attr.strokeWidth, android.R.attr.trimPathStart, 52 android.R.attr.trimPathEnd, android.R.attr.trimPathOffset, android.R.attr.strokeLineCap, 53 android.R.attr.strokeLineJoin, android.R.attr.strokeMiterLimit, [all …]
|
/frameworks/base/tests/VectorDrawableTest/src/com/android/test/dynamic/ |
D | VectorDrawablePerformance.java | 38 R.drawable.vector_icon_filltype_nonzero, 39 R.drawable.vector_icon_filltype_evenodd, 40 R.drawable.vector_icon_gradient_1, 41 R.drawable.vector_icon_gradient_2, 42 R.drawable.vector_icon_gradient_3, 43 R.drawable.vector_icon_gradient_1_clamp, 44 R.drawable.vector_icon_gradient_2_repeat, 45 R.drawable.vector_icon_gradient_3_mirror, 46 R.drawable.vector_icon_state_list_simple, 47 R.drawable.vector_icon_state_list_theme, [all …]
|
D | VectorDrawableDupPerf.java | 21 R.drawable.vector_drawable04, 22 R.drawable.vector_drawable04, 23 R.drawable.vector_drawable04, 24 R.drawable.vector_drawable04, 25 R.drawable.vector_drawable04, 26 R.drawable.vector_drawable04, 27 R.drawable.vector_drawable04, 28 R.drawable.vector_drawable04, 29 R.drawable.vector_drawable04, 30 R.drawable.vector_drawable04, [all …]
|
D | VectorCheckbox.java | 29 R.drawable.vector_drawable01, 30 R.drawable.vector_drawable02, 31 R.drawable.vector_drawable03, 32 R.drawable.vector_drawable04, 33 R.drawable.vector_drawable05, 34 R.drawable.vector_drawable06, 35 R.drawable.vector_drawable07, 36 R.drawable.vector_drawable08, 37 R.drawable.vector_drawable09, 38 R.drawable.vector_drawable10, [all …]
|
D | BitmapDrawableDupe.java | 31 R.drawable.bitmap_drawable01, 32 R.drawable.bitmap_drawable01, 33 R.drawable.bitmap_drawable01, 34 R.drawable.bitmap_drawable01, 35 R.drawable.bitmap_drawable01, 36 R.drawable.bitmap_drawable01, 37 R.drawable.bitmap_drawable01, 38 R.drawable.bitmap_drawable01, 39 R.drawable.bitmap_drawable01, 40 R.drawable.bitmap_drawable01, [all …]
|
/frameworks/support/samples/SupportVectorDrawableDemos/src/com/example/android/support/vectordrawable/app/ |
D | SimpleStaticVectorDrawable.java | 30 import com.example.android.support.vectordrawable.R; 41 R.drawable.vector_drawable_scale0, 42 R.drawable.vector_drawable_scale1, 43 R.drawable.vector_drawable_scale2, 44 R.drawable.vector_drawable_scale3, 45 R.drawable.vector_drawable01, 46 R.drawable.vector_drawable02, 47 R.drawable.vector_drawable03, 48 R.drawable.vector_drawable04, 49 R.drawable.vector_drawable05, [all …]
|
/frameworks/base/core/tests/coretests/src/android/widget/ |
D | TextViewActivityMouseTest.java | 46 import com.android.frameworks.coretests.R; 70 onView(withId(R.id.textview)).perform(click()); in testSelectTextByDrag() 71 onView(withId(R.id.textview)).perform(typeTextIntoFocusedView(helloWorld)); in testSelectTextByDrag() 75 onView(withId(R.id.textview)).perform( in testSelectTextByDrag() 78 onView(withId(R.id.textview)).check(hasSelection("llo wor")); in testSelectTextByDrag() 80 onHandleView(com.android.internal.R.id.selection_start_handle) in testSelectTextByDrag() 82 onHandleView(com.android.internal.R.id.selection_end_handle) in testSelectTextByDrag() 85 onView(withId(R.id.textview)).perform(mouseClickOnTextAtIndex(helloWorld.indexOf("w"))); in testSelectTextByDrag() 86 onView(withId(R.id.textview)).check(hasSelection("")); in testSelectTextByDrag() 94 onView(withId(R.id.textview)).perform(click()); in testSelectTextByDrag_reverse() [all …]
|
D | TextViewActivityTest.java | 70 import com.android.frameworks.coretests.R; 93 onView(withId(R.id.textview)).perform(replaceText(helloWorld)); in testTypedTextIsOnScreen() 95 onView(withId(R.id.textview)).check(matches(withText(helloWorld))); in testTypedTextIsOnScreen() 100 onView(withId(R.id.textview)).perform(replaceText(helloWorld)); in testPositionCursorAtTextAtIndex() 101 onView(withId(R.id.textview)).perform(clickOnTextAtIndex(helloWorld.indexOf("world"))); in testPositionCursorAtTextAtIndex() 104 onView(withId(R.id.textview)).perform(pressKey(KeyEvent.KEYCODE_FORWARD_DEL)); in testPositionCursorAtTextAtIndex() 105 onView(withId(R.id.textview)).check(matches(withText("Hello orld!"))); in testPositionCursorAtTextAtIndex() 112 onView(withId(R.id.textview)).perform(replaceText(text)); in testPositionCursorAtTextAtIndex_arabic() 114 onView(withId(R.id.textview)).perform(clickOnTextAtIndex(0)); in testPositionCursorAtTextAtIndex_arabic() 115 onView(withId(R.id.textview)).check(hasInsertionPointerAtIndex(0)); in testPositionCursorAtTextAtIndex_arabic() [all …]
|
/frameworks/support/design/tests/src/android/support/design/widget/ |
D | NavigationViewTest.java | 70 import android.support.design.test.R; 96 private static final int[] MENU_CONTENT_ITEM_IDS = { R.id.destination_home, 97 R.id.destination_profile, R.id.destination_people, R.id.destination_settings }; 111 mDrawerLayout = (DrawerLayout) activity.findViewById(R.id.drawer_layout); in setUp() 112 mNavigationView = (NavigationTestView) mDrawerLayout.findViewById(R.id.start_drawer); in setUp() 115 onView(withId(R.id.drawer_layout)).perform(closeDrawer(GravityCompat.START)); in setUp() 119 mMenuStringContent.put(R.id.destination_home, res.getString(R.string.navigate_home)); in setUp() 120 mMenuStringContent.put(R.id.destination_profile, res.getString(R.string.navigate_profile)); in setUp() 121 mMenuStringContent.put(R.id.destination_people, res.getString(R.string.navigate_people)); in setUp() 122 mMenuStringContent.put(R.id.destination_settings, in setUp() [all …]
|
D | BottomNavigationViewTest.java | 46 import android.support.design.test.R; 68 private static final int[] MENU_CONTENT_ITEM_IDS = { R.id.destination_home, 69 R.id.destination_profile, R.id.destination_people }; 81 mBottomNavigation = (BottomNavigationView) activity.findViewById(R.id.bottom_navigation); in setUp() 85 mMenuStringContent.put(R.id.destination_home, res.getString(R.string.navigate_home)); in setUp() 86 mMenuStringContent.put(R.id.destination_profile, res.getString(R.string.navigate_profile)); in setUp() 87 mMenuStringContent.put(R.id.destination_people, res.getString(R.string.navigate_people)); in setUp() 128 onView(allOf(withText(mMenuStringContent.get(R.id.destination_profile)), in testNavigationSelectionListener() 129 isDescendantOfA(withId(R.id.bottom_navigation)), isDisplayed())).perform(click()); in testNavigationSelectionListener() 132 mBottomNavigation.getMenu().findItem(R.id.destination_profile)); in testNavigationSelectionListener() [all …]
|
/frameworks/base/tests/BiDiTests/src/com/android/bidi/ |
D | BiDiTestActivity.java | 63 ft.replace(R.id.testframe, fragment); in onListItemClick() 76 setContentView(R.layout.main); in onCreate() 78 mList = findViewById(R.id.testlist); in onCreate() 83 R.layout.custom_list_item, new String[]{"title"}, in onCreate() 84 new int[]{android.R.id.text1}); in onCreate() 102 addItem(result, "Basic", BiDiTestBasic.class, R.id.basic); in getTests() 104 addItem(result, "Canvas2", BiDiTestCanvas2.class, R.id.canvas2); in getTests() 106 addItem(result, "TextView LTR", BiDiTestTextViewLtr.class, R.id.textview_ltr); in getTests() 107 addItem(result, "TextView RTL", BiDiTestTextViewRtl.class, R.id.textview_rtl); in getTests() 108 addItem(result, "TextView LOC", BiDiTestTextViewLocale.class, R.id.textview_locale); in getTests() [all …]
|
/frameworks/support/graphics/drawable/static/tests/src/android/support/graphics/drawable/tests/ |
D | VectorDrawableTest.java | 34 import android.support.graphics.drawable.test.R; 55 R.drawable.vector_icon_create, 56 R.drawable.vector_icon_delete, 57 R.drawable.vector_icon_heart, 58 R.drawable.vector_icon_schedule, 59 R.drawable.vector_icon_settings, 60 R.drawable.vector_icon_random_path_1, 61 R.drawable.vector_icon_random_path_2, 62 R.drawable.vector_icon_repeated_cq, 63 R.drawable.vector_icon_repeated_st, [all …]
|
/frameworks/support/transition/src/android/support/transition/ |
D | Styleable.java | 30 android.R.attr.targetClass, 31 android.R.attr.targetId, 32 android.R.attr.excludeId, 33 android.R.attr.excludeClass, 34 android.R.attr.targetName, 35 android.R.attr.excludeName, 55 android.R.attr.fromScene, 56 android.R.attr.toScene, 57 android.R.attr.transition, 71 android.R.attr.interpolator, [all …]
|
/frameworks/support/v7/appcompat/src/android/support/v7/app/ |
D | NotificationCompatImplBase.java | 35 import android.support.v7.appcompat.R; 84 isDecoratedCustomView ? R.layout.notification_template_media_custom in generateContentViewMedia() 85 : R.layout.notification_template_media, in generateContentViewMedia() 92 view.removeAllViews(R.id.media_actions); in generateContentViewMedia() 103 view.addView(R.id.media_actions, button); in generateContentViewMedia() 107 view.setViewVisibility(R.id.end_padder, View.GONE); in generateContentViewMedia() 108 view.setViewVisibility(R.id.cancel_action, View.VISIBLE); in generateContentViewMedia() 109 view.setOnClickPendingIntent(R.id.cancel_action, cancelButtonIntent); in generateContentViewMedia() 110 view.setInt(R.id.cancel_action, "setAlpha", in generateContentViewMedia() 111 context.getResources().getInteger(R.integer.cancel_button_image_alpha)); in generateContentViewMedia() [all …]
|
/frameworks/support/v7/appcompat/tests/src/android/support/v7/widget/ |
D | AppCompatTextViewTest.java | 36 import android.support.v7.appcompat.test.R; 55 final String text1 = mResources.getString(R.string.sample_text1); in testAllCaps() 56 final String text2 = mResources.getString(R.string.sample_text2); in testAllCaps() 58 final AppCompatTextView textView1 = mContainer.findViewById(R.id.text_view_caps1); in testAllCaps() 59 final AppCompatTextView textView2 = mContainer.findViewById(R.id.text_view_caps2); in testAllCaps() 70 onView(withId(R.id.text_view_caps1)).perform( in testAllCaps() 71 setTextAppearance(R.style.TextStyleAllCapsOff)); in testAllCaps() 75 onView(withId(R.id.text_view_caps2)).perform( in testAllCaps() 76 setTextAppearance(R.style.TextStyleAllCapsOn)); in testAllCaps() 83 final String text = mResources.getString(R.string.sample_text2); in testAppCompatAllCapsFalseOnButton() [all …]
|
/frameworks/support/compat/tests/java/android/support/v4/widget/ |
D | TextViewCompatTest.java | 38 import android.support.compat.test.R; 81 mTextView = (TextView) mActivityTestRule.getActivity().findViewById(R.id.text_view); in setUp() 87 onView(withId(R.id.text_view)).perform(setMaxLines(maxLinesCount)); in testMaxLines() 92 onView(withId(R.id.text_view)).perform(setText(R.string.test_text_short)); in testMaxLines() 96 onView(withId(R.id.text_view)).perform(setText(R.string.test_text_medium)); in testMaxLines() 100 onView(withId(R.id.text_view)).perform(setText(R.string.test_text_long)); in testMaxLines() 108 onView(withId(R.id.text_view)).perform(setMinLines(minLinesCount)); in testMinLines() 113 onView(withId(R.id.text_view)).perform(setText(R.string.test_text_short)); in testMinLines() 117 onView(withId(R.id.text_view)).perform(setText(R.string.test_text_medium)); in testMinLines() 121 onView(withId(R.id.text_view)).perform(setText(R.string.test_text_long)); in testMinLines() [all …]
|
/frameworks/base/core/java/android/hardware/ |
D | SensorManager.java | 1175 public static boolean getRotationMatrix(float[] R, float[] I, in getRotationMatrix() argument 1214 if (R != null) { in getRotationMatrix() 1215 if (R.length == 9) { in getRotationMatrix() 1216 R[0] = Hx; R[1] = Hy; R[2] = Hz; in getRotationMatrix() 1217 R[3] = Mx; R[4] = My; R[5] = Mz; in getRotationMatrix() 1218 R[6] = Ax; R[7] = Ay; R[8] = Az; in getRotationMatrix() 1219 } else if (R.length == 16) { in getRotationMatrix() 1220 R[0] = Hx; R[1] = Hy; R[2] = Hz; R[3] = 0; in getRotationMatrix() 1221 R[4] = Mx; R[5] = My; R[6] = Mz; R[7] = 0; in getRotationMatrix() 1222 R[8] = Ax; R[9] = Ay; R[10] = Az; R[11] = 0; in getRotationMatrix() [all …]
|
/frameworks/support/compat/tests/java/android/support/v4/content/res/ |
D | ResourcesCompatTest.java | 30 import android.support.compat.test.R; 53 ResourcesCompat.getColor(mResources, R.color.text_color, null), in testGetColor() 60 yellowTheme.applyStyle(R.style.YellowTheme, true); in testGetColor() 62 ResourcesCompat.getColor(mResources, R.color.simple_themed_selector, in testGetColor() 66 lilacTheme.applyStyle(R.style.LilacTheme, true); in testGetColor() 68 ResourcesCompat.getColor(mResources, R.color.simple_themed_selector, in testGetColor() 76 ResourcesCompat.getColorStateList(mResources, R.color.complex_unthemed_selector, in testGetColorStateList() 82 new int[]{android.R.attr.state_focused}, 0)); in testGetColorStateList() 85 new int[]{android.R.attr.state_pressed}, 0)); in testGetColorStateList() 91 yellowTheme.applyStyle(R.style.YellowTheme, true); in testGetColorStateList() [all …]
|
/frameworks/support/samples/SupportDesignDemos/src/com/example/android/support/design/widget/ |
D | NavigationViewUsageBase.java | 19 import com.example.android.support.design.R; 38 mTextMessage = findViewById(R.id.message); in onCreate() 41 NavigationView navigation = findViewById(R.id.navigation); in onCreate() 43 navigation.inflateHeaderView(R.layout.design_navigation_header); in onCreate() 53 case R.id.navigation_item_1: in handleNavigationItemSelected() 56 case R.id.navigation_item_2: in handleNavigationItemSelected() 59 case R.id.navigation_item_3: in handleNavigationItemSelected() 62 case R.id.navigation_sub_item_1: in handleNavigationItemSelected() 63 showToast(R.string.navigation_sub_item_1); in handleNavigationItemSelected() 65 case R.id.navigation_sub_item_2: in handleNavigationItemSelected() [all …]
|