/cts/hostsidetests/securitybulletin/test-apps/CVE-2021-0523/src/android/security/cts/CVE_2021_0523/ |
D | PocService.java | 37 public static Button mButton; field in PocService 78 if (mWindowManager != null && mButton != null) { in onDestroy() 79 mWindowManager.removeView(mButton); in onDestroy() 86 mButton = new Button(getApplicationContext()); in showFloatingWindow() 87 mButton.setBackgroundColor(Color.parseColor("#BEBEBE")); // R-BE G-BE B-BE in showFloatingWindow() 88 mWindowManager.addView(mButton, mLayoutParams); in showFloatingWindow() 89 mButton.setOnTouchListener(new FloatingOnTouchListener()); in showFloatingWindow() 96 mButton.setTag(mButton.getVisibility()); in showFloatingWindow()
|
/cts/hostsidetests/securitybulletin/test-apps/BUG-183613671/src/android/security/cts/BUG_183613671/ |
D | OverlayService.java | 35 public Button mButton; field in OverlayService 76 if (mWindowManager != null && mButton != null) { in onDestroy() 77 mWindowManager.removeView(mButton); in onDestroy() 87 mButton = new Button(getApplicationContext()); in showFloatingWindow() 88 mButton.setText(getResources().getString(R.string.tapjacking_text)); in showFloatingWindow() 89 mButton.setTag(mButton.getVisibility()); in showFloatingWindow() 90 mWindowManager.addView(mButton, mLayoutParams); in showFloatingWindow()
|
/cts/hostsidetests/securitybulletin/test-apps/BUG-183963253/src/android/security/cts/BUG_183963253/ |
D | OverlayService.java | 35 public Button mButton; field in OverlayService 76 if (mWindowManager != null && mButton != null) { in onDestroy() 77 mWindowManager.removeView(mButton); in onDestroy() 87 mButton = new Button(getApplicationContext()); in showFloatingWindow() 88 mButton.setText(getResources().getString(R.string.tapjacking_text)); in showFloatingWindow() 89 mButton.setTag(mButton.getVisibility()); in showFloatingWindow() 90 mWindowManager.addView(mButton, mLayoutParams); in showFloatingWindow()
|
/cts/hostsidetests/securitybulletin/test-apps/CVE-2021-0586/src/android/security/cts/CVE_2021_0586/ |
D | PocService.java | 36 public static Button mButton; field in PocService 78 if (mWindowManager != null && mButton != null) { in onDestroy() 79 mWindowManager.removeView(mButton); in onDestroy() 86 mButton = new Button(getApplicationContext()); in showFloatingWindow() 87 mButton.setText(getResources().getString(R.string.overlay_button)); in showFloatingWindow() 88 mWindowManager.addView(mButton, mLayoutParams); in showFloatingWindow() 95 mButton.setTag(mButton.getVisibility()); in showFloatingWindow()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/telecom/ |
D | CtsVerifierInCallUi.java | 33 Button mButton; field in CtsVerifierInCallUi 52 mButton = view.findViewById(R.id.telecom_default_dialer_end_button); in onCreate() 53 if (mButton == null) { in onCreate() 59 mButton.setOnClickListener(v -> { in onCreate()
|
/cts/tests/tests/animation/src/android/animation/cts/ |
D | LayoutAnimationActivity.java | 28 Button mButton; field in LayoutAnimationActivity 34 mButton = (Button) findViewById(R.id.button1); in onCreate() 36 mButton.setOnClickListener(new OnClickListener(){ in onCreate()
|
D | LayoutAnimationTest.java | 60 private Button mButton; field in LayoutAnimationTest 74 mButton = (Button)mActivity.findViewById(R.id.button1); in setup() 240 mActivityRule.runOnUiThread(mButton::callOnClick); in clickButton()
|
/cts/tests/tests/text/src/android/text/method/cts/ |
D | TransformationMethodTest.java | 62 private Button mButton; field in TransformationMethodTest 79 mButton = new Button(mActivity); in setup() 80 mButton.setFocusableInTouchMode(true); in setup() 85 layout.addView(mButton, new LayoutParams(LayoutParams.MATCH_PARENT, in setup() 109 mActivityRule.runOnUiThread(() -> mButton.requestFocus()); in testOnFocusChanged()
|
/cts/tests/tests/view/src/android/view/cts/ |
D | ViewTreeObserverTest.java | 63 private Button mButton; field in ViewTreeObserverTest 77 mButton = (Button) mActivity.findViewById(R.id.button1); in setup() 169 CtsTouchUtils.emulateTapOnViewCenter(mInstrumentation, mActivityRule, mButton); in testAddOnTouchModeChangeListener() 171 mViewTreeObserver = mButton.getViewTreeObserver(); in testAddOnTouchModeChangeListener() 177 mActivityRule.runOnUiThread(mButton::requestFocusFromTouch); in testAddOnTouchModeChangeListener() 279 CtsTouchUtils.emulateTapOnViewCenter(mInstrumentation, mActivityRule, mButton); in testRemoveOnTouchModeChangeListener() 281 mViewTreeObserver = mButton.getViewTreeObserver(); in testRemoveOnTouchModeChangeListener() 286 mActivityRule.runOnUiThread(mButton::requestFocusFromTouch); in testRemoveOnTouchModeChangeListener() 293 mActivityRule.runOnUiThread(mButton::requestFocusFromTouch); in testRemoveOnTouchModeChangeListener()
|
D | GestureDetectorCtsActivity.java | 41 private Button mButton; field in GestureDetectorCtsActivity 62 mButton = new Button(this); in onCreate() 73 mViewGroup.addView(mButton); in onCreate()
|
/cts/tests/app/src/android/app/cts/ |
D | AlertDialog_BuilderTest.java | 72 private Button mButton; field in AlertDialog_BuilderTest 170 mButton = mDialog.getButton(DialogInterface.BUTTON_POSITIVE); in testSetPositiveButtonWithParamInt() 171 mButton.performClick(); in testSetPositiveButtonWithParamInt() 176 assertEquals(mContext.getText(android.R.string.yes), mButton.getText()); in testSetPositiveButtonWithParamInt() 192 mButton = mDialog.getButton(DialogInterface.BUTTON_POSITIVE); in testSetPositiveButtonWithParamCharSequence() 193 mButton.performClick(); in testSetPositiveButtonWithParamCharSequence() 197 assertEquals(mContext.getText(android.R.string.yes), mButton.getText()); in testSetPositiveButtonWithParamCharSequence() 213 mButton = mDialog.getButton(DialogInterface.BUTTON_NEGATIVE); in testSetNegativeButtonWithParamCharSequence() 214 mButton.performClick(); in testSetNegativeButtonWithParamCharSequence() 218 assertEquals(mTitle, mButton.getText()); in testSetNegativeButtonWithParamCharSequence() [all …]
|