Home
last modified time | relevance | path

Searched refs:button2 (Results 1 – 25 of 45) sorted by relevance

12

/aosp12/frameworks/base/core/tests/coretests/src/android/view/
H A DIncludeTest.java42 final View button2 = activity.findViewById(R.id.included_button_overriden); in testIncluded() local
43 assertNotNull("The layout include_button was not included with overriden id", button2); in testIncluded()
51 final View button2 = activity.findViewById(R.id.included_button_overriden); in testIncludedWithLayoutParams() local
54 button1.getLayoutParams().width != button2.getLayoutParams().width); in testIncludedWithLayoutParams()
56 button1.getLayoutParams().height != button2.getLayoutParams().height); in testIncludedWithLayoutParams()
/aosp12/packages/apps/Car/RotaryController/tests/unit/src/com/android/car/rotary/
H A DNavigatorTest.java130 AccessibilityNodeInfo button2 = createNode("button2"); in testFindRotateTarget() local
137 assertThat(target.node).isEqualTo(button2); in testFindRotateTarget()
166 AccessibilityNodeInfo button2 = createNode("button2"); in testFindRotateTargetNoWrapAround() local
191 AccessibilityNodeInfo button2 = createNode("button2"); in testFindRotateTargetNoWrapAroundWithGenericFpv() local
214 AccessibilityNodeInfo button2 = createNode("button2"); in testFindRotateTargetNoWrapAround2() local
324 Button button2 = activity.findViewById(R.id.button2); in testFindRotateTargetSkipNodeThatCannotPerformFocus()
325 button2.setFocusable(false); in testFindRotateTargetSkipNodeThatCannotPerformFocus()
401 assertThat(target.node).isEqualTo(button2); in testFindRotateTargetSkipScrollableContainer()
702 assertThat(target).isEqualTo(button2); in testFindFocusableVisibleDescendantInDirectionForward()
743 assertThat(target).isEqualTo(button2); in testFindNextFocusableDescendantWithEmptyBounds()
[all …]
/aosp12/frameworks/base/tests/TransitionTests/src/com/android/transitiontests/
H A DDelayedTransition.java40 final Button button2 = (Button) findViewById(R.id.button2); in onCreate() local
52 button2.setLayoutParams(new LayoutParams(LayoutParams.WRAP_CONTENT, in onCreate()
59 button2.setLayoutParams(new LayoutParams(LayoutParams.WRAP_CONTENT, in onCreate()
H A DHierarchicalMove.java47 buttons[2] = (Button) findViewById(R.id.button2); in onCreate()
/aosp12/packages/apps/StorageManager/robotests/src/com/android/storagemanager/deletionhelper/
H A DConfirmDeletionDialogTest.java40 Button button2 = alertDialog.getDialog().findViewById(android.R.id.button2); in testOnCreateDialog_saysCorrectStrings() local
44 assertThat(button2.getText().toString()).isEqualTo("Cancel"); in testOnCreateDialog_saysCorrectStrings()
/aosp12/frameworks/base/core/tests/coretests/src/android/widget/listview/
H A DListViewHeightTest.java52 final Button button2 = (Button) mActivity.findViewById(R.id.button2); in testButtons() local
71 button2.performClick(); in testButtons()
H A DListViewHeight.java48 mButton2 = findViewById(R.id.button2); in onCreate()
/aosp12/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DTransformsAndAnimationsActivity.java36 Button button2; field in TransformsAndAnimationsActivity
59 button2 = findViewById(R.id.button2); in onCreate()
130 button2.startAnimation(alphaAnim); in onCreate()
152 button2.setLayerType(layerType, null); in setLayerType()
/aosp12/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accessories/
H A DAddAccessoryContentFragment.java107 String button2 = context.getResources().getString(R.string.accessories_pairing_button2); in getExtraInstructionContentDescription() local
109 || TextUtils.isEmpty(button2)) { in getExtraInstructionContentDescription()
113 .getString(R.string.accessories_add_bluetooth_inst_extra, button1, button2); in getExtraInstructionContentDescription()
/aosp12/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/widget/
H A DActionButtonsPreferenceTest.java67 assertThat(mRootView.findViewById(R.id.button2).getVisibility()) in onBindViewHolder_setTitle_shouldShowButtonByDefault()
86 assertThat(mRootView.findViewById(R.id.button2).getVisibility()) in onBindViewHolder_setIcon_shouldShowButtonByDefault()
100 assertThat(mRootView.findViewById(R.id.button2).getVisibility()) in onBindViewHolder_notSetTitleOrIcon_shouldNotShowButtonByDefault()
119 assertThat(mRootView.findViewById(R.id.button2).getVisibility()) in onBindViewHolder_setVisibleIsGoneAndSetTitle_shouldNotShowButton()
138 assertThat(mRootView.findViewById(R.id.button2).getVisibility()) in onBindViewHolder_setVisibleIsGoneAndSetIcon_shouldNotShowButton()
157 assertThat(mRootView.findViewById(R.id.button2).getVisibility()) in onBindViewHolder_setVisibility_shouldUpdateButtonVisibility()
173 assertThat(mRootView.findViewById(R.id.button2).getVisibility()) in onBindViewHolder_setVisibility_shouldUpdateButtonVisibility()
191 assertThat(mRootView.findViewById(R.id.button2).isEnabled()).isFalse(); in onBindViewHolder_setEnabled_shouldEnableButton()
207 assertThat(((Button) mRootView.findViewById(R.id.button2)).getText()) in onBindViewHolder_setText_shouldShowSameText()
H A DLayoutPreferenceTest.java76 mPreference.findViewById(android.R.id.button2).setEnabled(true); in disableSomeView_shouldMaintainStateAfterBind()
81 assertThat(mPreference.findViewById(android.R.id.button2).isEnabled()).isTrue(); in disableSomeView_shouldMaintainStateAfterBind()
/aosp12/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/common/
H A DActionButtonsPreferenceTest.java89 assertThat(mRootView.findViewById(R.id.button2).getVisibility()) in onBindViewHolder_setTitle_shouldShowButtonByDefault()
108 assertThat(mRootView.findViewById(R.id.button2).getVisibility()) in onBindViewHolder_setIcon_shouldShowButtonByDefault()
122 assertThat(mRootView.findViewById(R.id.button2).getVisibility()) in onBindViewHolder_notSetTitleOrIcon_shouldNotShowButtonByDefault()
141 assertThat(mRootView.findViewById(R.id.button2).getVisibility()) in onBindViewHolder_setVisibleIsGoneAndSetTitle_shouldNotShowButton()
160 assertThat(mRootView.findViewById(R.id.button2).getVisibility()) in onBindViewHolder_setVisibleIsGoneAndSetIcon_shouldNotShowButton()
179 assertThat(mRootView.findViewById(R.id.button2).getVisibility()) in onBindViewHolder_setVisibility_shouldUpdateButtonVisibility()
195 assertThat(mRootView.findViewById(R.id.button2).getVisibility()) in onBindViewHolder_setVisibility_shouldUpdateButtonVisibility()
217 assertThat(mRootView.findViewById(R.id.button2).isEnabled()).isFalse(); in onBindViewHolder_setEnabled_shouldEnableButton()
/aosp12/frameworks/opt/setupwizard/library/test/robotest/src/com/android/setupwizardlib/items/
H A DButtonItemTest.java108 final Button button2 = item.createButton(parent); in testCreateButtonTwice() local
109 assertWithMessage("createButton should be reused").that(button2).isSameAs(button); in testCreateButtonTwice()
111 .that(button2.getParent()) in testCreateButtonTwice()
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/
H A DZenModePanel.java708 final ImageView button2 = (ImageView) row.findViewById(android.R.id.button2); in bind() local
709 button2.setOnClickListener(new OnClickListener() { in bind()
725 button2.setVisibility(VISIBLE); in bind()
728 button2.setEnabled(mBucketIndex < MINUTE_BUCKETS.length - 1); in bind()
734 button2.setEnabled(!Objects.equals(condition.summary, maxCondition.summary)); in bind()
738 button2.setAlpha(button2.isEnabled() ? 1f : .5f); in bind()
741 button2.setVisibility(GONE); in bind()
748 Interaction.register(button2, mInteractionCallback); in bind()
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/widget/
H A DEntityHeaderControllerTest.java158 assertThat(view.findViewById(android.R.id.button2).getVisibility()).isEqualTo(View.GONE); in bindButton_hasEditClickListener_shouldShowButton()
177 assertThat(view.findViewById(android.R.id.button2).getVisibility()).isEqualTo(View.GONE); in bindButton_noEditClickListener_shouldNotShowButton()
198 assertThat(appLinks.findViewById(android.R.id.button2).getVisibility()) in bindButton_noAppInfo_shouldNotAttachClickListener()
269 assertThat(appLinks.findViewById(android.R.id.button2).getVisibility()) in bindButton_hasAppNotifIntent_shouldShowButton()
/aosp12/packages/apps/Settings/src/com/android/settings/widget/
H A DEntityHeaderController.java269 final ImageButton button2 = mHeader.findViewById(android.R.id.button2); in bindHeaderButtons() local
272 bindButton(button2, mAction2); in bindHeaderButtons()
/aosp12/frameworks/layoutlib/bridge/tests/res/testApp/MyApplication/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/android/layoutlib/test/myapplication/
H A DR$id.class ... action_settings public static final int button public static final int button2 public static final int checkBox public static final int checkedTextView ...
/aosp12/packages/apps/Launcher3/go/quickstep/src/com/android/quickstep/
H A DTaskOverlayFactoryGo.java345 Button button2 = view.findViewById(R.id.niu_actions_dialog_button_2); in showDialog() local
346 button2.setText(button2TextID); in showDialog()
347 button2.setOnClickListener(button2Callback); in showDialog()
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/
H A DQSDetailTest.java186 mQsDetail.requireViewById(android.R.id.button2).performClick(); in testMoreSettingsButton()
201 mQsDetail.requireViewById(android.R.id.button2).performClick(); in testNullAdapterClick()
/aosp12/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/testutils/
H A DDialogTestUtils.java45 com.android.internal.R.id.button2); in clickNegativeButton()
/aosp12/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/testutils/
H A DDialogTestUtils.java45 com.android.internal.R.id.button2); in clickNegativeButton()
/aosp12/frameworks/base/core/tests/coretests/src/android/widget/layout/linear/
H A DLLOfTwoFocusableInTouchMode.java42 mButton2 = findViewById(R.id.button2); in onCreate()
H A DBaselineAlignmentCenterGravityTest.java44 mButton2 = (Button) activity.findViewById(R.id.button2); in setUp()
/aosp12/frameworks/base/services/core/java/com/android/server/am/
H A DBaseErrorDialog.java79 b = (Button)findViewById(R.id.button2); in setEnabled()
/aosp12/packages/modules/Permission/PermissionController/src/android/support/wearable/view/
H A DAcceptDenyDialog.java91 mNegativeButton = (ImageButton) findViewById(android.R.id.button2); in AcceptDenyDialog()

12