Home
last modified time | relevance | path

Searched refs:button (Results 1 – 25 of 39) sorted by relevance

12

/cts/apps/CtsVerifier/src/com/android/cts/verifier/tv/
DTvAppVerifierActivity.java61 View button = item.findViewById(R.id.user_action_button); in setButtonEnabled() local
62 button.setFocusable(enabled); in setButtonEnabled()
63 button.setClickable(enabled); in setButtonEnabled()
64 button.setEnabled(enabled); in setButtonEnabled()
85 Button button = (Button) item.findViewById(R.id.user_action_button); in createUserItem() local
86 button.setVisibility(View.VISIBLE); in createUserItem()
87 button.setText(buttonTextId); in createUserItem()
88 button.setOnClickListener(l); in createUserItem()
101 Button button = (Button) item.findViewById(R.id.user_action_button); in createUserItem() local
102 button.setVisibility(View.VISIBLE); in createUserItem()
[all …]
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/
DAccessibilityWindowQueryTest.java173 AccessibilityNodeInfo button = sUiAutomation.getRootInActiveWindow() in testFindByContentDescription() local
176 assertNotNull(button); in testFindByContentDescription()
353 AccessibilityNodeInfo button = sUiAutomation in testPerformActionSetAndClearFocus() local
356 assertFalse(button.isFocused()); in testPerformActionSetAndClearFocus()
359 assertTrue(button.performAction(ACTION_FOCUS)); in testPerformActionSetAndClearFocus()
362 button = sUiAutomation.getRootInActiveWindow() in testPerformActionSetAndClearFocus()
364 assertTrue(button.isFocused()); in testPerformActionSetAndClearFocus()
367 assertTrue(button.performAction(ACTION_CLEAR_FOCUS)); in testPerformActionSetAndClearFocus()
370 button = sUiAutomation.getRootInActiveWindow() in testPerformActionSetAndClearFocus()
372 assertFalse(button.isFocused()); in testPerformActionSetAndClearFocus()
[all …]
DAccessibilityEndToEndTest.java210 final Button button = (Button) mActivity.findViewById(R.id.button); in testTypeViewClickedAccessibilityEvent() local
221 button.performClick(); in testTypeViewClickedAccessibilityEvent()
248 final Button button = (Button) mActivity.findViewById(R.id.button); in testTypeViewLongClickedAccessibilityEvent() local
259 button.performLongClick(); in testTypeViewLongClickedAccessibilityEvent()
288 final Button button = (Button) mActivity.findViewById(R.id.buttonWithTooltip); in testTypeViewFocusedAccessibilityEvent() local
292 () -> mActivity.runOnUiThread(() -> button.requestFocus()), in testTypeViewFocusedAccessibilityEvent()
549 mActivity.findViewById(R.id.button).requestFocus()) in testPackageNameCannotBeFaked()
582 mActivity.findViewById(R.id.button).requestFocus()) in testPackageNameCannotBeFakedAppWidget()
623 mActivity.findViewById(R.id.button).performClick()) in testPackageNameCannotBeFakedAppWidget()
772 final AccessibilityNodeInfo button = sUiAutomation.getRootInActiveWindow() in testA11yActionTriggerMotionEventActionOutside() local
[all …]
DAccessibilityWindowReportingTest.java131 final Button button = new Button(mActivity); in testWindowAddedMovedAndRemoved_generatesEventsForAllThree() local
132 button.setText(R.string.button1); in testWindowAddedMovedAndRemoved_generatesEventsForAllThree()
134 () -> mActivity.getWindowManager().addView(button, paramsForTop)), in testWindowAddedMovedAndRemoved_generatesEventsForAllThree()
140 () -> mActivity.getWindowManager().updateViewLayout(button, paramsForBottom)), in testWindowAddedMovedAndRemoved_generatesEventsForAllThree()
145 () -> mActivity.getWindowManager().removeView(button)), in testWindowAddedMovedAndRemoved_generatesEventsForAllThree()
303 final Button button = new Button(mActivity); in showTopWindowAndWaitForItToShowUp() local
304 button.setText(R.string.button1); in showTopWindowAndWaitForItToShowUp()
306 () -> mActivity.getWindowManager().addView(button, paramsForTop)), in showTopWindowAndWaitForItToShowUp()
313 return button; in showTopWindowAndWaitForItToShowUp()
DAccessibilityOverlayTest.java74 final Button button = new Button(mService); in testA11yServiceShowsOverlay_shouldAppear() local
75 button.setText("Button"); in testA11yServiceShowsOverlay_shouldAppear()
86 mService.getSystemService(WindowManager.class).addView(button, params); in testA11yServiceShowsOverlay_shouldAppear()
/cts/tests/tests/view/src/android/view/cts/
DTouchDelegateTestActivity.java65 final Button button = findViewById(R.id.button); in onCreate() local
75 button.getLocationOnScreen(buttonLocation); in onCreate()
80 button.getHitRect(rect); in onCreate()
82 parent.setTouchDelegate(new TouchDelegate(rect, button)); in onCreate()
89 button.setOnClickListener(v -> mButtonClickCount++); in onCreate()
90 button.setOnTouchListener((v, event) -> { in onCreate()
94 button.setOnHoverListener((v, event) -> { in onCreate()
DView_DefaultFocusHighlightTest.java64 Button button = (Button) activity.findViewById(R.id.button); in testSettersAndGetters() local
70 assertTrue(button.getDefaultFocusHighlightEnabled()); in testSettersAndGetters()
76 button.setDefaultFocusHighlightEnabled(false); in testSettersAndGetters()
82 assertFalse(button.getDefaultFocusHighlightEnabled()); in testSettersAndGetters()
98 Button button = (Button) activity.findViewById(R.id.button_to_inflate); in testInflating() local
105 assertFalse(button.getDefaultFocusHighlightEnabled()); in testInflating()
118 final Button button = (Button) activity.findViewById(R.id.button_to_test_highlight_needed); in testIsDefaultFocusHighlightNeeded() local
139 button.setDefaultFocusHighlightEnabled(true); in testIsDefaultFocusHighlightNeeded()
140 isNeeded = button.isDefaultFocusHighlightNeeded(drawables[i], drawables[j]); in testIsDefaultFocusHighlightNeeded()
144 button.setDefaultFocusHighlightEnabled(false); in testIsDefaultFocusHighlightNeeded()
[all …]
/cts/tests/autofillservice/src/android/autofillservice/cts/
DOneTimeCompoundButtonListener.java35 private final CompoundButton button; field in OneTimeCompoundButtonListener
38 OneTimeCompoundButtonListener(String name, CompoundButton button, in OneTimeCompoundButtonListener() argument
41 this.button = button; in OneTimeCompoundButtonListener()
54 final boolean actual = button.isChecked(); in assertAutoFilled()
DManualAuthenticationActivity.java49 findViewById(R.id.button).setOnClickListener((v) -> { in onCreate()
/cts/hostsidetests/devicepolicy/app/PackageInstaller/src/com/android/cts/packageinstaller/
DManualPackageInstallTest.java103 UiObject2 button = mDevice.findObject(INSTALL_BUTTON_SELECTOR); in automateInstallClick() local
104 assertNotNull("Install button not found", button); in automateInstallClick()
105 button.click(); in automateInstallClick()
113 UiObject2 button = mDevice.findObject(POPUP_BUTTON_SELECTOR); in automateDismissInstallBlockedDialog() local
114 assertNotNull("OK button not found", button); in automateDismissInstallBlockedDialog()
115 button.click(); in automateDismissInstallBlockedDialog()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/projection/widgets/
DProjectionWidgetActivity.java61 Button button; in onCreate() local
63 button = (Button) view.findViewById(R.id.up_button); in onCreate()
64 button.setOnClickListener(new InjectDPadClickListener(KeyEvent.KEYCODE_DPAD_UP)); in onCreate()
67 button = (Button) view.findViewById(R.id.down_button); in onCreate()
68 button.setOnClickListener(new InjectDPadClickListener(KeyEvent.KEYCODE_DPAD_DOWN)); in onCreate()
/cts/tests/tests/widget/src/android/widget/cts/util/
DListItemFactory.java119 final Button button = new Button(context); in horizontalButtonSlots() local
120 button.setText("left"); in horizontalButtonSlots()
121 ll.addView(button, lp); in horizontalButtonSlots()
127 final Button button = new Button(context); in horizontalButtonSlots() local
128 button.setText("center"); in horizontalButtonSlots()
129 ll.addView(button, lp); in horizontalButtonSlots()
135 final Button button = new Button(context); in horizontalButtonSlots() local
136 button.setText("right"); in horizontalButtonSlots()
137 ll.addView(button, lp); in horizontalButtonSlots()
154 public static View button(int position, Context context, String text, int desiredHeight) { in button() method in ListItemFactory
/cts/hostsidetests/devicepolicy/app/IntentSender/src/com/android/cts/intent/sender/
DSuspendPackageTest.java107 final UiObject2 button = device.findObject(POPUP_BUTTON_SELECTOR); in dismissPolicyTransparencyDialog() local
108 assertNotNull("OK button not found", button); in dismissPolicyTransparencyDialog()
109 button.click(); in dismissPolicyTransparencyDialog()
117 final UiObject2 button = device.findObject(SUSPEND_BUTTON_SELECTOR); in dismissCustomDialog() local
118 assertNotNull("OK button not found", button); in dismissCustomDialog()
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/activities/
DAccessibilityEndToEndActivity.java78 Button button = findViewById(R.id.button); in onCreate() local
81 button.getViewTreeObserver().addOnGlobalLayoutListener(setTouchDelegate(button, in onCreate()
82 () -> withTouchableAtRight.apply(button))::run); in onCreate()
/cts/tests/tests/preference/src/android/preference/cts/
DPreferenceWithHeaders.java43 Button button = new Button(this); in onCreate() local
44 button.setText("Some action"); in onCreate()
45 setListFooter(button); in onCreate()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/
DIntentDrivenTestActivity.java70 final Button button = new Button(this); in onCreate() local
71 buttons.addView(button); in onCreate()
72 button.setText(buttonInfo.mButtonText); in onCreate()
73 button.setTag(i); in onCreate()
74 button.setOnClickListener(this); in onCreate()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/notifications/
DInteractiveVerifierActivity.java211 View button = item.findViewById(R.id.nls_action_button); in markItem() local
225 button.setClickable(false); in markItem()
226 button.setEnabled(false); in markItem()
231 button.setClickable(false); in markItem()
232 button.setEnabled(false); in markItem()
252 Button button = (Button) item.findViewById(R.id.nls_action_button); in createUserItem() local
253 button.setText(actionId); in createUserItem()
254 button.setTag(actionId); in createUserItem()
262 View button = item.findViewById(R.id.nls_action_button); in createAutoItem() local
263 button.setVisibility(View.GONE); in createAutoItem()
DNotificationListenerVerifierActivity.java283 Button button = mView.findViewById(R.id.nls_action_button); in inflate() local
284 button.setEnabled(false); in inflate()
295 Button button = mView.findViewById(R.id.nls_action_button); in setUp() local
296 button.setEnabled(true); in setUp()
358 Button button = mView.findViewById(R.id.nls_action_button); in inflate() local
359 button.setEnabled(false); in inflate()
374 Button button = mView.findViewById(R.id.nls_action_button); in setUp() local
375 button.setEnabled(true); in setUp()
435 Button button = mView.findViewById(R.id.nls_action_button); in inflate() local
436 button.setEnabled(false); in inflate()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/usb/mtp/
DMtpHostTestActivity.java403 final Button button = (Button) view.findViewById(id);
404 button.setVisibility(View.VISIBLE);
405 button.setEnabled(false);
411 final Button button = (Button) view.findViewById(id);
412 button.setOnClickListener(listener);
418 final Button button = (Button) view.findViewById(id);
419 button.setEnabled(value);
/cts/tests/tests/widget/src/android/widget/cts/
DRadioGroupTest.java366 RadioButton button = new RadioButton(mActivity); in testOnFinishInflate() local
367 button.setId(checkId); in testOnFinishInflate()
368 radioGroup.addView(button, new LinearLayout.LayoutParams( in testOnFinishInflate()
375 assertFalse(button.isChecked()); in testOnFinishInflate()
377 assertTrue(button.isChecked()); in testOnFinishInflate()
382 button = new RadioButton(mActivity); in testOnFinishInflate()
383 radioGroup.addView(button, new LinearLayout.LayoutParams( in testOnFinishInflate()
390 assertFalse(button.isChecked()); in testOnFinishInflate()
395 assertFalse(button.isChecked()); in testOnFinishInflate()
DRelativeLayoutTest.java352 View button = mActivity.findViewById(R.id.button1); in testBaselineAlignment() local
353 assertTrue(button.getHeight() > 0); in testBaselineAlignment()
355 button = mActivity.findViewById(R.id.button2); in testBaselineAlignment()
356 assertTrue(button.getHeight() > 0); in testBaselineAlignment()
358 button = mActivity.findViewById(R.id.button3); in testBaselineAlignment()
359 assertTrue(button.getHeight() > 0); in testBaselineAlignment()
361 button = mActivity.findViewById(R.id.button4); in testBaselineAlignment()
362 assertTrue(button.getHeight() > 0); in testBaselineAlignment()
DFrameLayoutTest.java178 Button button = (Button) frameLayout.findViewById(R.id.framelayout_button); in testAccessMeasureAllChildren() local
179 WidgetTestUtils.assertScaledPixels(15, button.getMeasuredHeight(), mActivity); in testAccessMeasureAllChildren()
180 WidgetTestUtils.assertScaledPixels(50, button.getMeasuredWidth(), mActivity); in testAccessMeasureAllChildren()
181 assertEquals(button.getMeasuredHeight(), frameLayout.getMeasuredHeight()); in testAccessMeasureAllChildren()
182 assertEquals(button.getMeasuredWidth(), frameLayout.getMeasuredWidth()); in testAccessMeasureAllChildren()
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DPermissionsTest.java186 UiObject2 button = mDevice.findObject(CRASH_POPUP_BUTTON_SELECTOR); in testPermissionPrompts()
187 if (button != null) { in testPermissionPrompts()
190 button.click(); in testPermissionPrompts()
392 UiObject2 button = mDevice.findObject(selector); in pressPermissionPromptButton() local
393 assertNotNull("Couldn't find button with resource id: " + resName, button); in pressPermissionPromptButton()
394 button.click(); in pressPermissionPromptButton()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/car/
DCarDockTestActivity.java66 Button button = (Button) view.findViewById(R.id.car_mode); in onCreate() local
67 button.setOnClickListener(new OnClickListener() { in onCreate()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/vr/
DVrListenerVerifierActivity.java375 View button = item.findViewById(R.id.vr_action_button); in updateViews() local
379 button.setEnabled(true); in updateViews()
383 button.setEnabled(false); in updateViews()
393 button.setClickable(false); in updateViews()
394 button.setEnabled(false); in updateViews()

12