/frameworks/base/core/tests/coretests/src/android/widget/touchmode/ |
D | TouchModeFocusableTest.java | 35 private Button mButton; field in TouchModeFocusableTest 47 mButton = getActivity().getButton(); in setUp() 52 assertFalse("should not be in touch mode to start off", mButton.isInTouchMode()); in testPreconditions() 59 assertInTouchModeAfterTap(this, mButton); in testClickButtonEditTextKeepsFocus() 60 assertTrue("should be in touch mode", mButton.isInTouchMode()); in testClickButtonEditTextKeepsFocus() 67 getActivity().runOnUiThread(() -> mButton.requestFocus()); in testClickEditTextGivesItFocus() 69 assertTrue("button should have focus", mButton.isFocused()); in testClickEditTextGivesItFocus() 72 assertTrue("clicking edit text should have entered touch mode", mButton.isInTouchMode()); in testClickEditTextGivesItFocus() 81 getActivity().runOnUiThread(() -> mButton.requestFocus()); in testEnterTouchModeGivesFocusBackToFocusableInTouchMode() 85 mButton.isFocused()); in testEnterTouchModeGivesFocusBackToFocusableInTouchMode() [all …]
|
D | StartInTouchWithViewInFocusTest.java | 34 private Button mButton; field in StartInTouchWithViewInFocusTest 45 mButton = getActivity().getButton(); in setUp() 58 assertTrue("should have given focus to next view", mButton.isFocused()); in DISABLE_testKeyDownLeavesTouchModeAndGoesToNextView()
|
/frameworks/base/core/java/android/app/ |
D | MediaRouteActionProvider.java | 53 private MediaRouteButton mButton; field in MediaRouteActionProvider 94 if (mButton != null) { in setRouteTypes() 95 mButton.setRouteTypes(mRouteTypes); in setRouteTypes() 102 if (mButton != null) { in setExtendedSettingsClickListener() 103 mButton.setExtendedSettingsClickListener(listener); in setExtendedSettingsClickListener() 115 if (mButton != null) { in onCreateActionView() 121 mButton = new MediaRouteButton(mContext); in onCreateActionView() 122 mButton.setRouteTypes(mRouteTypes); in onCreateActionView() 123 mButton.setExtendedSettingsClickListener(mExtendedSettingsListener); in onCreateActionView() 124 mButton.setLayoutParams(new ViewGroup.LayoutParams( in onCreateActionView() [all …]
|
/frameworks/base/core/tests/coretests/src/android/widget/listview/ |
D | ListSetSelection.java | 31 private Button mButton; field in ListSetSelection 45 mButton = new Button(this); in onCreate() 46 mButton.setText("setSelection(0)"); in onCreate() 47 mButton.setOnClickListener(new View.OnClickListener() { in onCreate() 53 getListViewContainer().addView(mButton, new LinearLayout.LayoutParams( in onCreate() 60 return mButton; in getButton()
|
/frameworks/base/core/tests/coretests/src/android/widget/focus/ |
D | GoneParentFocusedChild.java | 34 private Button mButton; field in GoneParentFocusedChild 52 return mButton; in getButton() 71 mButton = new Button(this); in onCreate() 72 mButton.setLayoutParams(new LinearLayout.LayoutParams( in onCreate() 77 mGoneGroup.addView(mButton); in onCreate() 81 mButton.requestFocus(); in onCreate()
|
D | ListWithFooterViewAndNewLabelsTest.java | 29 private Button mButton; field in ListWithFooterViewAndNewLabelsTest 47 mButton = (Button) a.findViewById(R.id.button); in setUp() 54 assertNotNull(mButton); in FAILING_testPreconditions() 58 assertTrue(mButton.hasFocus()); in FAILING_testPreconditions()
|
/frameworks/base/tests/TransitionTests/src/com/android/transitiontests/ |
D | UniqueIds.java | 62 Button mButton; field in UniqueIds.ToggleScene 66 mButton = button; in ToggleScene() 70 if (mButton.getLeft() == 0) { in ToggleScene() 71 mButton.offsetLeftAndRight(500); in ToggleScene() 73 int width = mButton.getWidth(); in ToggleScene() 74 mButton.setLeft(0); in ToggleScene() 75 mButton.setRight(width); in ToggleScene()
|
D | CrossfadeMultiple.java | 41 Button mButton; field in CrossfadeMultiple 55 mButton = findViewById(R.id.button); in onCreate() 101 mButton.setText("A"); in sendMessage() 107 mButton.setText("B"); in sendMessage() 113 mButton.setText("C"); in sendMessage() 118 mButton.setLayoutParams(params); in sendMessage()
|
/frameworks/native/libs/gui/tests/ |
D | SamplingDemo.cpp | 41 mButton = client->createSurface(String8(name), 0, 0, PIXEL_FORMAT_RGBA_8888, in Button() 48 .setLayer(mButton, 0x7fffffff) in Button() 49 .setCrop_legacy(mButton, in Button() 51 .setPosition(mButton, samplingArea.left + BUTTON_PADDING, in Button() 53 .setColor(mButton, half3{1, 1, 1}) in Button() 54 .show(mButton) in Button() 99 .setColor(mButton, half3{complement, complement, complement}) in setColor() 110 sp<SurfaceControl> mButton; member in android::Button
|
/frameworks/base/core/tests/coretests/src/android/view/menu/ |
D | MenuWith1Item.java | 24 private Button mButton; field in MenuWith1Item 34 return mButton; in getButton() 41 mButton = new Button(this); in onCreate() 42 setContentView(mButton); in onCreate()
|
D | MenuLayout.java | 27 private Button mButton; field in MenuLayout 52 return mButton; in getButton() 59 mButton = new Button(this); in onCreate() 60 setContentView(mButton); in onCreate()
|
/frameworks/base/core/tests/coretests/src/android/widget/layout/linear/ |
D | BaselineAlignmentSpinnerButton.java | 30 private View mButton; field in BaselineAlignmentSpinnerButton 42 mButton = activity.findViewById(R.id.reminder_remove); in setUp() 48 assertNotNull(mButton); in testSetUpConditions() 53 ViewAsserts.assertBaselineAligned(mSpinner, mButton); in testChildrenAligned()
|
D | LLEditTextThenButton.java | 29 private Button mButton; field in LLEditTextThenButton 41 mButton = findViewById(R.id.button); in onCreate() 53 return mButton; in getButton()
|
/frameworks/base/packages/SettingsLib/ActionButtonsPreference/src/com/android/settingslib/widget/ |
D | ActionButtonsPreference.java | 89 mButton1Info.mButton = (Button) holder.findViewById(R.id.button1); in onBindViewHolder() 90 mButton2Info.mButton = (Button) holder.findViewById(R.id.button2); in onBindViewHolder() 91 mButton3Info.mButton = (Button) holder.findViewById(R.id.button3); in onBindViewHolder() 92 mButton4Info.mButton = (Button) holder.findViewById(R.id.button4); in onBindViewHolder() 361 private Button mButton; field in ActionButtonsPreference.ButtonInfo 369 mButton.setText(mText); in setUpButton() 370 mButton.setOnClickListener(mListener); in setUpButton() 371 mButton.setEnabled(mIsEnabled); in setUpButton() 372 mButton.setCompoundDrawablesWithIntrinsicBounds( in setUpButton() 376 mButton.setVisibility(View.VISIBLE); in setUpButton() [all …]
|
/frameworks/base/core/tests/coretests/src/android/view/ |
D | AccessibilityInteractionControllerTest.java | 67 private View mButton; field in AccessibilityInteractionControllerTest 87 mButton = mActivityRule.getActivity().findViewById(R.id.appNameBtn); in setUp() 102 mButton.isAccessibilityFocused()); in clearAccessibilityFocus_shouldClearFocus() 106 mButton.isAccessibilityFocused()); in clearAccessibilityFocus_shouldClearFocus() 113 mButton.isAccessibilityFocused()); in clearAccessibilityFocus_uiThread_shouldClearFocus() 118 mButton.isAccessibilityFocused()); in clearAccessibilityFocus_uiThread_shouldClearFocus()
|
/frameworks/base/core/tests/coretests/src/android/widget/espresso/ |
D | MouseUiController.java | 45 private final int mButton; field in MouseUiController 59 mButton = button; in MouseUiController() 72 event.setButtonState(mButton); in injectMotionEvent()
|
D | MouseClickAction.java | 40 private final int mButton; field in MouseClickAction 115 mButton = button; in MouseClickAction() 130 mViewClickAction.perform(new MouseUiController(uiController, mButton), view); in perform()
|