Home
last modified time | relevance | path

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

12

/cts/tests/tests/accessibilityservice/src/android/accessibilityservice/cts/
DAccessibilityWindowQueryTest.java73 AccessibilityNodeInfo button = getInstrumentation().getUiAutomation() in testFindByContentDescription() local
76 assertNotNull(button); in testFindByContentDescription()
302 AccessibilityNodeInfo button = getInstrumentation().getUiAutomation() in testPerformActionFocus() local
305 assertFalse(button.isFocused()); in testPerformActionFocus()
308 assertTrue(button.performAction(ACTION_FOCUS)); in testPerformActionFocus()
311 button = getInstrumentation().getUiAutomation().getRootInActiveWindow() in testPerformActionFocus()
313 assertTrue(button.isFocused()); in testPerformActionFocus()
319 AccessibilityNodeInfo button = getInstrumentation().getUiAutomation() in testPerformActionClearFocus() local
322 assertFalse(button.isFocused()); in testPerformActionClearFocus()
325 assertTrue(button.performAction(ACTION_FOCUS)); in testPerformActionClearFocus()
[all …]
DAccessibilityEndToEndTest.java109 final Button button = (Button) getActivity().findViewById(R.id.button); in testTypeViewClickedAccessibilityEvent() local
120 button.performClick(); in testTypeViewClickedAccessibilityEvent()
145 final Button button = (Button) getActivity().findViewById(R.id.button); in testTypeViewLongClickedAccessibilityEvent() local
156 button.performLongClick(); in testTypeViewLongClickedAccessibilityEvent()
183 final Button button = (Button) getActivity().findViewById(R.id.button); in testTypeViewFocusedAccessibilityEvent() local
194 button.requestFocus(); in testTypeViewFocusedAccessibilityEvent()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/tv/
DTvAppVerifierActivity.java65 View button = item.findViewById(R.id.user_action_button); in setButtonEnabled() local
66 button.setFocusable(enabled); in setButtonEnabled()
67 button.setClickable(enabled); in setButtonEnabled()
68 button.setEnabled(enabled); in setButtonEnabled()
89 Button button = (Button) item.findViewById(R.id.user_action_button); in createUserItem() local
90 button.setVisibility(View.VISIBLE); in createUserItem()
91 button.setText(buttonTextId); in createUserItem()
92 button.setOnClickListener(l); in createUserItem()
109 static boolean containsButton(View item, View button) { in containsButton() argument
110 return item.findViewById(R.id.user_action_button) == button; in containsButton()
/cts/tests/tests/widget/src/android/widget/cts/
DRadioButtonTest.java72 RadioButton button = new RadioButton(mContext); in testToggle() local
73 assertFalse(button.isChecked()); in testToggle()
75 button.toggle(); in testToggle()
76 assertTrue(button.isChecked()); in testToggle()
79 button.toggle(); in testToggle()
80 assertTrue(button.isChecked()); in testToggle()
DRelativeLayoutTest.java343 View button = mActivity.findViewById(R.id.button1); in testBaselineAlignment() local
344 assertTrue(button.getHeight() > 0); in testBaselineAlignment()
346 button = mActivity.findViewById(R.id.button2); in testBaselineAlignment()
347 assertTrue(button.getHeight() > 0); in testBaselineAlignment()
349 button = mActivity.findViewById(R.id.button3); in testBaselineAlignment()
350 assertTrue(button.getHeight() > 0); in testBaselineAlignment()
352 button = mActivity.findViewById(R.id.button4); in testBaselineAlignment()
353 assertTrue(button.getHeight() > 0); in testBaselineAlignment()
DRadioGroupTest.java349 RadioButton button = new RadioButton(mContext); in testOnFinishInflate() local
350 button.setId(checkId); in testOnFinishInflate()
351 radioGroup.addView(button, new LinearLayout.LayoutParams( in testOnFinishInflate()
358 assertFalse(button.isChecked()); in testOnFinishInflate()
360 assertTrue(button.isChecked()); in testOnFinishInflate()
365 button = new RadioButton(mContext); in testOnFinishInflate()
366 radioGroup.addView(button, new LinearLayout.LayoutParams( in testOnFinishInflate()
373 assertFalse(button.isChecked()); in testOnFinishInflate()
378 assertFalse(button.isChecked()); in testOnFinishInflate()
DCompoundButtonTest.java343 MockDrawable button = new MockDrawable(); in testButtonTint() local
346 view.setButtonDrawable(button); in testButtonTint()
347 assertFalse("No button tint applied by default", button.hasCalledSetTint()); in testButtonTint()
351 button.hasCalledSetTint()); in testButtonTint()
353 button.reset(); in testButtonTint()
355 view.setButtonDrawable(button); in testButtonTint()
357 button.hasCalledSetTint()); in testButtonTint()
DFrameLayoutTest.java179 Button button = (Button) frameLayout.findViewById(R.id.framelayout_button); in testAccessMeasureAllChildren() local
180 compareScaledPixels(15, button.getMeasuredHeight()); in testAccessMeasureAllChildren()
181 compareScaledPixels(50, button.getMeasuredWidth()); in testAccessMeasureAllChildren()
182 assertEquals(button.getMeasuredHeight(), frameLayout.getMeasuredHeight()); in testAccessMeasureAllChildren()
183 assertEquals(button.getMeasuredWidth(), frameLayout.getMeasuredWidth()); in testAccessMeasureAllChildren()
DRemoteViewsActivityTest.java69 assertTrue("Button not inflated", result.findViewById(R.id.button) != null); in testGood()
/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.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/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/tests/preference2/src/android/preference2/cts/
DPreferenceWithHeaders.java37 Button button = new Button(this); in onCreate() local
38 button.setText("Some action"); in onCreate()
39 setListFooter(button); in onCreate()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/notifications/
DInteractiveVerifierActivity.java189 View button = item.findViewById(R.id.nls_action_button); in markItem() local
203 button.setClickable(false); in markItem()
204 button.setEnabled(false); in markItem()
209 button.setClickable(false); in markItem()
210 button.setEnabled(false); in markItem()
230 Button button = (Button) item.findViewById(R.id.nls_action_button); in createUserItem() local
231 button.setText(actionId); in createUserItem()
232 button.setTag(actionId); in createUserItem()
240 View button = item.findViewById(R.id.nls_action_button); in createAutoItem() local
241 button.setVisibility(View.GONE); in createAutoItem()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/location/
DLocationModeTestActivity.java128 View button = item.findViewById(R.id.launch_settings); in createAutoItem() local
129 button.setVisibility(View.GONE); in createAutoItem()
141 View button = item.findViewById(R.id.launch_settings); in setItemState() local
142 button.setClickable(false); in setItemState()
143 button.setEnabled(false); in setItemState()
190 public void launchSettings(View button) { in launchSettings() argument
/cts/apps/CtsVerifier/src/com/android/cts/verifier/
DIntentDrivenTestActivity.java65 final Button button = new Button(this); in onCreate() local
66 buttons.addView(button); in onCreate()
67 button.setText(buttonInfo.mButtonText); in onCreate()
68 button.setTag(i); in onCreate()
69 button.setOnClickListener(this); in onCreate()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/security/
DCAInstallNotificationVerifierActivity.java125 View button = item.findViewById(R.id.ca_notify_do_something); in setItemState() local
126 button.setClickable(false); in setItemState()
127 button.setEnabled(false); in setItemState()
146 Button button = (Button) item.findViewById(R.id.ca_notify_do_something); in createUserItem() local
148 button.setText(buttonLabel); in createUserItem()
150 button.setOnClickListener(listener); in createUserItem()
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DPermissionsTest.java164 UiObject2 button = mDevice.findObject(CRASH_POPUP_BUTTON_SELECTOR); in testPermissionPrompts()
165 if (button != null) { in testPermissionPrompts()
168 button.click(); in testPermissionPrompts()
297 UiObject2 button = mDevice.findObject(selector); in pressPermissionPromptButton() local
298 assertNotNull("Couldn't find button with resource id: " + resName, button); in pressPermissionPromptButton()
299 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/uiautomator/test-apps/CtsUiAutomatorApp/src/com/android/cts/uiautomator/
DTest5DetailFragment.java71 Button button = (Button) rootView.findViewById(R.id.test_5_button1); in onCreateView() local
72 button.setOnClickListener(new Button.OnClickListener() { in onCreateView()
/cts/tests/tests/text/src/android/text/method/cts/
DPasswordTransformationMethodTest.java81 Button button = new Button(mActivity); in setUp()
86 layout.addView(button, new LayoutParams(LayoutParams.MATCH_PARENT, in setUp()
/cts/tests/tests/app/src/android/app/cts/
DAlertDialogTest.java141 private void performClick(final Button button) throws Throwable { in performClick() argument
144 button.performClick(); in performClick()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/base/
DBaseSensorTestActivity.java513 final Button button, in enableTestResultButton() argument
528 button.setText(textResId); in enableTestResultButton()
529 button.setOnClickListener(listener); in enableTestResultButton()
530 button.setVisibility(View.VISIBLE); in enableTestResultButton()
/cts/tests/uiautomator/src/com/android/cts/uiautomatortest/
DCtsUiAutomatorTest.java372 UiObject button = new UiObject(frameLayout.childSelector(gridLayout).childSelector( in testComplexSelectors() local
375 assertTrue("Toggle button value should be OFF", "OFF".equals(button.getText())); in testComplexSelectors()
376 button.click(); in testComplexSelectors()
377 assertTrue("Toggle button value should be ON", "ON".equals(button.getText())); in testComplexSelectors()
378 button.click(); in testComplexSelectors()
379 assertTrue("Toggle button value should be OFF", "OFF".equals(button.getText())); in testComplexSelectors()
/cts/hostsidetests/theme/app/src/android/theme/app/
DThemeDeviceActivity.java354 new Layout(R.layout.button, "button"),
355 new Layout(R.layout.button, "button_pressed",

12