Home
last modified time | relevance | path

Searched refs:button (Results 1 – 25 of 50) 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()
86 Button button = (Button) item.findViewById(R.id.user_action_button); in createAndAttachUserItem() local
87 button.setVisibility(View.VISIBLE); in createAndAttachUserItem()
88 button.setText(buttonTextId); in createAndAttachUserItem()
89 button.setOnClickListener(l); in createAndAttachUserItem()
102 Button button = item.findViewById(R.id.user_action_button); in createAndAttachUserItem() local
103 button.setVisibility(View.VISIBLE); in createAndAttachUserItem()
[all …]
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/
DAccessibilityWindowQueryTest.java186 AccessibilityNodeInfo button = sUiAutomation.getRootInActiveWindow() in testFindByContentDescription() local
189 assertNotNull(button); in testFindByContentDescription()
358 AccessibilityNodeInfo button = sUiAutomation in testPerformActionSetAndClearFocus() local
361 assertFalse(button.isFocused()); in testPerformActionSetAndClearFocus()
364 assertTrue(button.performAction(ACTION_FOCUS)); in testPerformActionSetAndClearFocus()
367 button = sUiAutomation.getRootInActiveWindow() in testPerformActionSetAndClearFocus()
369 assertTrue(button.isFocused()); in testPerformActionSetAndClearFocus()
372 assertTrue(button.performAction(ACTION_CLEAR_FOCUS)); in testPerformActionSetAndClearFocus()
375 button = sUiAutomation.getRootInActiveWindow() in testPerformActionSetAndClearFocus()
377 assertFalse(button.isFocused()); in testPerformActionSetAndClearFocus()
[all …]
DAccessibilityEndToEndTest.java221 final Button button = (Button) mActivity.findViewById(R.id.button); in testTypeViewClickedAccessibilityEvent() local
232 button.performClick(); in testTypeViewClickedAccessibilityEvent()
259 final Button button = (Button) mActivity.findViewById(R.id.button); in testTypeViewLongClickedAccessibilityEvent() local
270 button.performLongClick(); in testTypeViewLongClickedAccessibilityEvent()
299 final Button button = (Button) mActivity.findViewById(R.id.buttonWithTooltip); in testTypeViewFocusedAccessibilityEvent() local
303 () -> mActivity.runOnUiThread(() -> button.requestFocus()), in testTypeViewFocusedAccessibilityEvent()
561 mActivity.findViewById(R.id.button).requestFocus()) in testPackageNameCannotBeFaked()
594 mActivity.findViewById(R.id.button).requestFocus()) in testPackageNameCannotBeFakedAppWidget()
635 mActivity.findViewById(R.id.button).performClick()) in testPackageNameCannotBeFakedAppWidget()
786 final AccessibilityNodeInfo button = sUiAutomation.getRootInActiveWindow() in testA11yActionTriggerMotionEventActionOutside() local
[all …]
DAccessibilityWindowReportingTest.java155 final Button button = new Button(mActivity); in testWindowAddedMovedAndRemoved_generatesEventsForAllThree() local
156 button.setText(R.string.button1); in testWindowAddedMovedAndRemoved_generatesEventsForAllThree()
158 () -> mActivity.getWindowManager().addView(button, paramsForTop)), in testWindowAddedMovedAndRemoved_generatesEventsForAllThree()
164 () -> mActivity.getWindowManager().updateViewLayout(button, paramsForBottom)), in testWindowAddedMovedAndRemoved_generatesEventsForAllThree()
169 () -> mActivity.getWindowManager().removeView(button)), in testWindowAddedMovedAndRemoved_generatesEventsForAllThree()
415 final Button button = new Button(mActivity); in showTopWindowAndWaitForItToShowUp() local
416 button.setText(R.string.button1); in showTopWindowAndWaitForItToShowUp()
418 () -> mActivity.getWindowManager().addView(button, paramsForTop)), in showTopWindowAndWaitForItToShowUp()
425 return button; in showTopWindowAndWaitForItToShowUp()
DAccessibilityOverlayTest.java128 final Button button = new Button(context); in addOverlayWindow() local
129 button.setText("Button"); in addOverlayWindow()
137 context.getSystemService(WindowManager.class).addView(button, params); in addOverlayWindow()
/cts/tests/tests/view/src/android/view/cts/
DTouchDelegateTestActivity.java65 final Button button = findViewById(R.id.button); in onCreate() local
75 button.getLocationInWindow(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/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DSimpleKeyguardService.java65 Button button = new Button(context); in createView() local
67 button.setTransformationMethod(null); in createView()
68 button.setText(DISMISS_BUTTON_LABEL); in createView()
69 button.setOnClickListener(ignored -> { in createView()
70 button.setText("Dismissing..."); in createView()
71 button.setEnabled(false); in createView()
80 rootView.addView(button); in createView()
/cts/tests/autofillservice/src/android/autofillservice/cts/testcore/
DOneTimeCompoundButtonListener.java35 private final CompoundButton button; field in OneTimeCompoundButtonListener
38 public OneTimeCompoundButtonListener(String name, CompoundButton button, in OneTimeCompoundButtonListener() argument
41 this.button = button; in OneTimeCompoundButtonListener()
54 final boolean actual = button.isChecked(); in assertAutoFilled()
/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/tests/controls/src/android/controls/cts/
DCtsControlsService.java103 ControlButton button = new ControlButton(isOn, isOn ? "On" : "Off"); in buildSwitch() local
104 ControlTemplate template = new ToggleTemplate("toggle", button); in buildSwitch()
119 ControlButton button = new ControlButton(isStarted, desc); in buildMower() local
120 ControlTemplate template = new ToggleTemplate("toggle", button); in buildMower()
137 ControlButton button = new ControlButton(isLocked, desc); in buildLock() local
138 ControlTemplate template = new ToggleTemplate("toggle", button); in buildLock()
151 ControlButton button = new ControlButton(isLocked, desc); in buildGate() local
152 ControlTemplate template = new ToggleTemplate("toggle", button); in buildGate()
270 ControlButton button = new ControlButton(b.getNewState(), desc); in performControlAction() local
271 builder.setControlTemplate(new ToggleTemplate("toggle", button)); in performControlAction()
[all …]
/cts/hostsidetests/devicepolicy/app/PackageInstaller/src/com/android/cts/packageinstaller/
DManualPackageInstallTest.java118 UiObject2 button = mDevice.findObject(INSTALL_BUTTON_SELECTOR); in automateInstallClick() local
119 assertNotNull("Install button not found", button); in automateInstallClick()
120 button.click(); in automateInstallClick()
129 UiObject2 button = mDevice.findObject(getPopUpButtonSelector()); in automateDismissInstallBlockedDialog() local
130 assertNotNull("OK button not found", button); in automateDismissInstallBlockedDialog()
131 button.click(); in automateDismissInstallBlockedDialog()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2021-0305/src/android/security/cts/CVE_2021_0305/
DDeviceTest.java101 String button; in testClick() local
113 button = o.getText(); in testClick()
114 Log.d("CVE", "button:" + button); in testClick()
116 if(button==null){ in testClick()
121 switch(button){ in testClick()
/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/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/apps/CtsVerifier/src/com/android/cts/verifier/notifications/
DNotificationListenerVerifierActivity.java375 Button button = mView.findViewById(R.id.nls_action_button); in inflate() local
376 button.setEnabled(false); in inflate()
387 Button button = mView.findViewById(R.id.nls_action_button); in setUp() local
388 button.setEnabled(true); in setUp()
450 Button button = mView.findViewById(R.id.nls_action_button); in inflate() local
451 button.setEnabled(false); in inflate()
466 Button button = mView.findViewById(R.id.nls_action_button); in setUp() local
467 button.setEnabled(true); in setUp()
528 Button button = mView.findViewById(R.id.nls_action_button); in inflate() local
529 button.setEnabled(false); in inflate()
[all …]
DInteractiveVerifierActivity.java215 View button = item.findViewById(R.id.nls_action_button); in markItem() local
229 button.setClickable(false); in markItem()
230 button.setEnabled(false); in markItem()
235 button.setClickable(false); in markItem()
236 button.setEnabled(false); in markItem()
256 Button button = (Button) item.findViewById(R.id.nls_action_button); in createUserItem() local
257 button.setText(actionId); in createUserItem()
258 button.setTag(actionId); in createUserItem()
266 View button = item.findViewById(R.id.nls_action_button); in createAutoItem() local
267 button.setVisibility(View.GONE); in createAutoItem()
DConditionProviderVerifierActivity.java666 Button button = mView.findViewById(R.id.nls_action_button); in inflate() local
667 button.setEnabled(false); in inflate()
680 Button button = mView.findViewById(R.id.nls_action_button); in setUp() local
681 button.setEnabled(true); in setUp()
743 Button button = mView.findViewById(R.id.nls_action_button); in inflate() local
744 button.setEnabled(false); in inflate()
757 Button button = mView.findViewById(R.id.nls_action_button); in setUp() local
758 button.setEnabled(true); in setUp()
820 Button button = mView.findViewById(R.id.nls_action_button); in inflate() local
821 button.setEnabled(false); in inflate()
[all …]
/cts/hostsidetests/devicepolicy/app/IntentSender/src/com/android/cts/intent/sender/
DSuspendPackageTest.java139 final UiObject2 button = device.findObject(getPopUpButtonSelector()); in dismissPolicyTransparencyDialog() local
140 assertWithMessage("OK button").that(button).isNotNull(); in dismissPolicyTransparencyDialog()
141 button.click(); in dismissPolicyTransparencyDialog()
149 final UiObject2 button = device.findObject(SUSPEND_BUTTON_SELECTOR); in dismissCustomDialog() local
150 assertWithMessage("OK button").that(button).isNotNull(); in dismissCustomDialog()
/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/hostsidetests/devicepolicy/app/common/src/com/android/cts/devicepolicy/
DPermissionUtils.java173 UiObject2 button = mDevice.findObject(selector); in pressPermissionPromptButton() local
175 possiblePkg, button != null)); in pressPermissionPromptButton()
176 if (button != null) { in pressPermissionPromptButton()
178 button.click(); in pressPermissionPromptButton()
/cts/tests/tests/widget/src/android/widget/cts/
DRadioGroupTest.java367 RadioButton button = new RadioButton(mActivity); in testOnFinishInflate() local
368 button.setId(checkId); in testOnFinishInflate()
369 radioGroup.addView(button, new LinearLayout.LayoutParams( in testOnFinishInflate()
376 assertFalse(button.isChecked()); in testOnFinishInflate()
378 assertTrue(button.isChecked()); in testOnFinishInflate()
383 button = new RadioButton(mActivity); in testOnFinishInflate()
384 radioGroup.addView(button, new LinearLayout.LayoutParams( in testOnFinishInflate()
391 assertFalse(button.isChecked()); in testOnFinishInflate()
396 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()
/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);

12