/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/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/hostsidetests/devicepolicy/app/common/src/com/android/cts/devicepolicy/ |
D | PermissionUtils.java | 184 UiObject2 button = findPermissionPromptButton(device, expectedAction, resNames); in pressPermissionPromptButton() local 185 Log.d(LOG_TAG, "Clicking on '" + button.getText() + "'"); in pressPermissionPromptButton() 186 button.click(); in pressPermissionPromptButton() 223 UiObject2 button = device.findObject(selector); in findPermissionPromptButton() local 225 possiblePkg, button != null)); in findPermissionPromptButton() 226 if (button != null) { in findPermissionPromptButton() 227 return button; in findPermissionPromptButton() 266 UiObject2 button = device.findObject(selector); in findPermissionPromptButtonAutomotive() local 267 Log.d(LOG_TAG, "button: " + button + (button == null ? "" : " (" + button.getText() + ")")); in findPermissionPromptButtonAutomotive() 269 .that(button).isNotNull(); in findPermissionPromptButtonAutomotive() [all …]
|
/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/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/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/devicepolicy/app/IntentSender/src/com/android/cts/intent/sender/ |
D | SuspendPackageTest.java | 135 final UiObject2 button = device.findObject(getPopUpButtonSelector()); in dismissPolicyTransparencyDialog() local 136 assertWithMessage("OK button").that(button).isNotNull(); in dismissPolicyTransparencyDialog() 137 button.click(); in dismissPolicyTransparencyDialog() 143 final UiObject2 button = device.findObject(getPopUpButtonSelector()); in dismissPolicyTransparencyDialog() local 144 assertWithMessage("OK button").that(button).isNotNull(); in dismissPolicyTransparencyDialog() 145 button.click(); in dismissPolicyTransparencyDialog() 153 final UiObject2 button = device.findObject(SUSPEND_BUTTON_SELECTOR); in dismissCustomDialog() local 154 assertWithMessage("OK button").that(button).isNotNull(); in dismissCustomDialog()
|
/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/hostsidetests/securitybulletin/test-apps/CVE-2021-0591/src/android/security/cts/CVE_2021_0591/ |
D | DeviceTest.java | 78 String button; in testClick() local 81 button = o.getText(); in testClick() 82 if (button == null) { in testClick() 85 if (button.matches("ALLOW|YES|Allow|Yes")) { in testClick()
|
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/ |
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/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/ |
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/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);
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/notifications/ |
D | InteractiveVerifierActivity.java | 265 Button button = item.findViewById(R.id.nls_action_button); in createUserItem() local 266 button.setText(actionId); in createUserItem() 267 button.setTag(actionId); in createUserItem() 275 View button = item.findViewById(R.id.nls_action_button); in createAutoItem() local 276 button.setVisibility(View.GONE); in createAutoItem() 291 Button button = item.findViewById(R.id.nls_action_button); in createUserAndPassFailItem() local 292 button.setVisibility(View.VISIBLE); in createUserAndPassFailItem() 293 button.setText(actionId); in createUserAndPassFailItem() 294 button.setTag(actionId); in createUserAndPassFailItem()
|
D | NotificationListenerVerifierActivity.java | 360 Button button = mView.findViewById(R.id.nls_action_button); in inflate() local 361 button.setEnabled(false); in inflate() 372 Button button = mView.findViewById(R.id.nls_action_button); in setUp() local 373 button.setEnabled(true); in setUp() 435 Button button = mView.findViewById(R.id.nls_action_button); in inflate() local 436 button.setEnabled(false); in inflate() 451 Button button = mView.findViewById(R.id.nls_action_button); in setUp() local 452 button.setEnabled(true); in setUp() 513 Button button = mView.findViewById(R.id.nls_action_button); in inflate() local 514 button.setEnabled(false); in inflate() [all …]
|
/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/displaycutout/ |
D | DisplayCutoutTestActivity.java | 139 final Button button = (Button) v; in onButtonClicked() local 140 final int buttonNumber = Integer.valueOf((button.getText()).toString()); in onButtonClicked() 149 button.setTextColor(Color.BLUE); in onButtonClicked()
|