Home
last modified time | relevance | path

Searched refs:mCancelButton (Results 1 – 18 of 18) sorted by relevance

/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/widget/picker/search/
DWidgetsSearchBarControllerTest.java52 private ImageButton mCancelButton; field in WidgetsSearchBarControllerTest
64 mCancelButton = new ImageButton(context); in setUp()
66 mSearchAlgorithm, mEditText, mCancelButton, mSearchModeListener); in setUp()
96 assertEquals(mCancelButton.getVisibility(), View.VISIBLE); in afterTextChanged_shouldShowCancelButton()
119 assertEquals(mCancelButton.getVisibility(), View.GONE); in afterTextChanged_empty_shouldHideCancelButton()
124 mCancelButton.performClick(); in cancelSearch_shouldInformSearchModeListenerToClearResultsAndExitSearch()
131 mCancelButton.performClick(); in cancelSearch_shouldCancelSearch()
139 mCancelButton.performClick(); in cancelSearch_shouldClearSearchBar()
/packages/apps/Launcher3/src/com/android/launcher3/widget/picker/search/
DWidgetsSearchBarController.java47 protected ImageButton mCancelButton; field in WidgetsSearchBarController
59 mCancelButton = cancelButton; in WidgetsSearchBarController()
60 mCancelButton.setOnClickListener(v -> clearSearchResult()); in WidgetsSearchBarController()
70 mCancelButton.setVisibility(GONE); in afterTextChanged()
75 mCancelButton.setVisibility(VISIBLE); in afterTextChanged()
DLauncherWidgetsSearchBar.java37 private ImageButton mCancelButton; field in LauncherWidgetsSearchBar
57 mEditText, mCancelButton, searchModeListener); in initialize()
69 mCancelButton = findViewById(R.id.widgets_search_cancel_button); in onFinishInflate()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/
DButtonSwitcher.java48 private Button mCancelButton; field in ButtonSwitcher
72 mCancelButton = (Button)findViewById(R.id.dict_cancel_button); in onLayout()
90 return mCancelButton; in getButton()
121 mCancelButton.setTranslationX(STATUS_CANCEL == status ? 0 : width); in setButtonPositionWithoutAnimation()
154 mCancelButton.setOnClickListener(mOnClickListener); in setInternalOnClickListener()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/debug/
DContactsDumpActivity.java43 private Button mCancelButton; field in ContactsDumpActivity
59 mCancelButton = (Button) findViewById(R.id.cancel); in onCreate()
80 mCancelButton.setEnabled(false); in onClick()
139 mCancelButton.setEnabled(true); in onActivityResult()
/packages/apps/TvSystemUI/src/com/android/systemui/tv/sensorprivacy/
DTvSensorPrivacyChangedActivity.java63 private Button mCancelButton; field in TvSensorPrivacyChangedActivity
115 mCancelButton = findViewById(R.id.bottom_sheet_negative_button); in initUI()
117 mCancelButton.setText(android.R.string.cancel); in initUI()
118 mCancelButton.setOnClickListener(v -> finish()); in initUI()
147 mCancelButton.setText(android.R.string.ok); in updateUI()
DTvUnblockSensorActivity.java75 private Button mCancelButton; field in TvUnblockSensorActivity
159 mCancelButton = findViewById(com.android.systemui.tv.res.R.id.bottom_sheet_negative_button); in initUI()
161 mCancelButton.setText(android.R.string.cancel); in initUI()
162 mCancelButton.setOnClickListener(v -> finish()); in initUI()
224 mCancelButton.setText(android.R.string.ok); in updateUiForHardwareToggle()
/packages/providers/CalendarProvider/src/com/android/providers/calendar/
DCalendarDebugActivity.java48 private Button mCancelButton; field in CalendarDebugActivity
67 mCancelButton = (Button) findViewById(R.id.cancel); in onCreate()
90 mCancelButton.setEnabled(false); in onClick()
193 mCancelButton.setEnabled(true); in onActivityResult()
/packages/apps/Settings/src/com/android/settings/password/
DConfirmDeviceCredentialBaseFragment.java97 protected Button mCancelButton; field in ConfirmDeviceCredentialBaseFragment
198 mCancelButton = view.findViewById(R.id.cancelButton); in onViewCreated()
203 mCancelButton.setVisibility(showCancelButton || hasAlternateButton in onViewCreated()
206 mCancelButton.setText(mAlternateButtonText); in onViewCreated()
208 mCancelButton.setOnClickListener(v -> { in onViewCreated()
448 mCancelButton.setEnabled(!enable); in updateRemoteLockscreenValidationViews()
DConfirmLockPattern.java236 if (mCancelButton != null && TextUtils.isEmpty(mAlternateButtonText)) { in onViewCreated()
237 mCancelButton.setText(R.string.lockpassword_forgot_pattern); in onViewCreated()
301 mCancelButton.setAlpha(0f); in prepareEnterAnimation()
331 if (mCancelButton.getVisibility() == View.VISIBLE) { in getActiveViews()
332 result.add(new ArrayList<>(Collections.singletonList(mCancelButton))); in getActiveViews()
DConfirmLockPassword.java237 if (mCancelButton != null && TextUtils.isEmpty(mAlternateButtonText)) { in onViewCreated()
238 mCancelButton.setText(mIsAlpha in onViewCreated()
364 mCancelButton.setAlpha(0f); in prepareEnterAnimation()
376 if (mCancelButton.getVisibility() == View.VISIBLE) { in getActiveViews()
377 result.add(mCancelButton); in getActiveViews()
/packages/apps/Camera2/src/com/android/camera/ui/
DBottomBar.java70 private ImageButton mCancelButton; field in BottomBar
134 LayerDrawable layerDrawable = (LayerDrawable) mCancelButton.getBackground(); in setCancelBackgroundColor()
198 mCancelButton = in onFinishInflate()
200 mCancelButton.setOnTouchListener(new OnTouchListener() { in onFinishInflate()
412 mCancelButton.setBackground(applyCircleDrawableToShutterBackground( in setupShutterBackgroundForModeIndex()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/handheld/
DReviewPermissionsFragment.java90 private Button mCancelButton; field in ReviewPermissionsFragment
175 } else if (view == mCancelButton) { in onClick()
307 mCancelButton = mView.requireViewById(R.id.cancel_button); in bindUi()
308 mCancelButton.setOnClickListener(this); in bindUi()
/packages/apps/TV/tuner/src/com/android/tv/tuner/setup/
DScanFragment.java96 private Button mCancelButton; field in ScanFragment
117 mCancelButton = (Button) view.findViewById(R.id.tune_cancel); in onCreateView()
118 mCancelButton.setOnClickListener( in onCreateView()
216 mCancelButton.setEnabled(false); in finishScan()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/deviceadmin/
DDeviceAdminAdd.java108 Button mCancelButton; field in DeviceAdminAdd
383 mCancelButton = (Button) findViewById(R.id.cancel_button); in createAddDeviceAdminUi()
384 mCancelButton.setFilterTouchesWhenObscured(true); in createAddDeviceAdminUi()
385 mCancelButton.setOnClickListener(new View.OnClickListener() { in createAddDeviceAdminUi()
/packages/apps/Settings/src/com/android/settings/applications/specialaccess/deviceadmin/
DDeviceAdminAdd.java140 Button mCancelButton; field in DeviceAdminAdd
397 mCancelButton = (Button) findViewById(R.id.cancel_button); in onCreate()
398 mCancelButton.setFilterTouchesWhenObscured(true); in onCreate()
399 mCancelButton.setOnClickListener(new View.OnClickListener() { in onCreate()
/packages/apps/Settings/src/com/android/settings/wifi/addappnetworks/
DAddAppNetworksFragment.java115 Button mCancelButton; field in AddAppNetworksFragment
220 mCancelButton = view.findViewById(R.id.cancel); in onViewCreated()
225 mCancelButton.setOnClickListener(getCancelClickListener()); in onViewCreated()
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/addappnetworks/
DAddAppNetworksFragmentTest.java151 assertThat(mAddAppNetworksFragment.mCancelButton).isNotNull(); in launchFragment_shouldShowCancelButton()