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/
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 …]
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()
/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()
/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/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/hostsidetests/devicepolicy/app/PackageInstaller/src/com/android/cts/packageinstaller/
DManualPackageInstallTest.java108 UiObject2 button = mDevice.findObject(INSTALL_BUTTON_SELECTOR); in automateInstallClick() local
109 assertNotNull("Install button not found", button); in automateInstallClick()
110 button.click(); in automateInstallClick()
118 UiObject2 button = mDevice.findObject(getPopUpButtonSelector()); in automateDismissInstallBlockedDialog() local
119 assertNotNull("OK button not found", button); in automateDismissInstallBlockedDialog()
120 button.click(); in automateDismissInstallBlockedDialog()
/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/hostsidetests/devicepolicy/app/IntentSender/src/com/android/cts/intent/sender/
DSuspendPackageTest.java103 final UiObject2 button = device.findObject(getPopUpButtonSelector()); in dismissPolicyTransparencyDialog() local
104 assertNotNull("OK button not found", button); in dismissPolicyTransparencyDialog()
105 button.click(); in dismissPolicyTransparencyDialog()
113 final UiObject2 button = device.findObject(SUSPEND_BUTTON_SELECTOR); in dismissCustomDialog() local
114 assertNotNull("OK button not found", button); in dismissCustomDialog()
/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/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.java286 Button button = mView.findViewById(R.id.nls_action_button); in inflate() local
287 button.setEnabled(false); in inflate()
298 Button button = mView.findViewById(R.id.nls_action_button); in setUp() local
299 button.setEnabled(true); in setUp()
361 Button button = mView.findViewById(R.id.nls_action_button); in inflate() local
362 button.setEnabled(false); in inflate()
377 Button button = mView.findViewById(R.id.nls_action_button); in setUp() local
378 button.setEnabled(true); in setUp()
438 Button button = mView.findViewById(R.id.nls_action_button); in inflate() local
439 button.setEnabled(false); in inflate()
[all …]
/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/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/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/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DPermissionsTest.java208 UiObject2 button = mDevice.findObject(CRASH_POPUP_BUTTON_SELECTOR); in testPermissionPrompts()
209 if (button != null) { in testPermissionPrompts()
212 button.click(); in testPermissionPrompts()
413 UiObject2 button = mDevice.findObject(selector); in pressPermissionPromptButton() local
414 assertNotNull("Couldn't find button with resource id: " + resName, button); in pressPermissionPromptButton()
415 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/tests/tests/role/src/android/app/role/cts/
DRoleManagerTest.java346 UiObject2 button = sUiDevice.wait(Until.findObject(By.res(buttonId)), TIMEOUT_MILLIS); in clickButtonAndWaitForResult() local
347 if (button == null) { in clickButtonAndWaitForResult()
351 button.click(); in clickButtonAndWaitForResult()
447 UiObject2 button = sUiDevice.wait(Until.findObject(By.res("android:id/button1")), in allowRoleRequestForApp28() local
449 if (button == null) { in allowRoleRequestForApp28()
453 button.click(); in allowRoleRequestForApp28()
/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