/cts/apps/CtsVerifier/src/com/android/cts/verifier/tv/ |
D | TvAppVerifierActivity.java | 61 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/ |
D | AccessibilityWindowQueryTest.java | 186 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 …]
|
D | AccessibilityEndToEndTest.java | 221 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 …]
|
D | AccessibilityWindowReportingTest.java | 155 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()
|
D | AccessibilityOverlayTest.java | 128 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/ |
D | TouchDelegateTestActivity.java | 65 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()
|
D | View_DefaultFocusHighlightTest.java | 64 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/ |
D | SimpleKeyguardService.java | 65 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/ |
D | OneTimeCompoundButtonListener.java | 35 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/ |
D | ProjectionWidgetActivity.java | 61 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/ |
D | ListItemFactory.java | 119 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/ |
D | CtsControlsService.java | 103 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/ |
D | ManualPackageInstallTest.java | 118 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/ |
D | DeviceTest.java | 101 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/ |
D | PreferenceWithHeaders.java | 43 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/ |
D | AccessibilityEndToEndActivity.java | 78 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/ |
D | NotificationListenerVerifierActivity.java | 375 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 …]
|
D | InteractiveVerifierActivity.java | 215 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()
|
D | ConditionProviderVerifierActivity.java | 666 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/ |
D | SuspendPackageTest.java | 139 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/ |
D | IntentDrivenTestActivity.java | 70 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/ |
D | PermissionUtils.java | 173 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/ |
D | RadioGroupTest.java | 367 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()
|
D | RelativeLayoutTest.java | 352 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/ |
D | MtpHostTestActivity.java | 403 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);
|