Home
last modified time | relevance | path

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

/packages/apps/Launcher3/robolectric_tests/src/com/android/launcher3/widget/picker/search/
DWidgetsSearchBarControllerTest.java53 private ImageButton mCancelButton; field in WidgetsSearchBarControllerTest
66 mCancelButton = new ImageButton(testActivity); in setUp()
68 mSearchAlgorithm, mEditText, mCancelButton, mSearchModeListener); in setUp()
103 assertEquals(mCancelButton.getVisibility(), View.VISIBLE); in afterTextChanged_shouldShowCancelButton()
126 assertEquals(mCancelButton.getVisibility(), View.GONE); in afterTextChanged_empty_shouldHideCancelButton()
131 mCancelButton.performClick(); in cancelSearch_shouldInformSearchModeListenerToClearResultsAndExitSearch()
138 mCancelButton.performClick(); in cancelSearch_shouldCancelSearch()
146 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/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.java76 protected Button mCancelButton; field in ConfirmDeviceCredentialBaseFragment
124 mCancelButton = view.findViewById(R.id.cancelButton); in onViewCreated()
128 mCancelButton.setVisibility(showCancelButton || hasAlternateButton in onViewCreated()
131 mCancelButton.setText(mFrpAlternateButtonText); in onViewCreated()
133 mCancelButton.setOnClickListener(v -> { in onViewCreated()
DConfirmLockPassword.java283 mCancelButton.setAlpha(0f); in prepareEnterAnimation()
295 if (mCancelButton.getVisibility() == View.VISIBLE) { in getActiveViews()
296 result.add(mCancelButton); in getActiveViews()
DConfirmLockPattern.java246 mCancelButton.setAlpha(0f); in prepareEnterAnimation()
275 if (mCancelButton.getVisibility() == View.VISIBLE) { in getActiveViews()
276 result.add(new ArrayList<>(Collections.singletonList(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.java76 private Button mCancelButton; field in ReviewPermissionsFragment
159 } else if (view == mCancelButton) { in onClick()
298 mCancelButton = getActivity().requireViewById(R.id.cancel_button); in bindUi()
299 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
382 mCancelButton = (Button) findViewById(R.id.cancel_button); in createAddDeviceAdminUi()
383 mCancelButton.setFilterTouchesWhenObscured(true); in createAddDeviceAdminUi()
384 mCancelButton.setOnClickListener(new View.OnClickListener() { in createAddDeviceAdminUi()
/packages/apps/Settings/src/com/android/settings/applications/specialaccess/deviceadmin/
DDeviceAdminAdd.java126 Button mCancelButton; field in DeviceAdminAdd
387 mCancelButton = (Button) findViewById(R.id.cancel_button); in onCreate()
388 mCancelButton.setFilterTouchesWhenObscured(true); in onCreate()
389 mCancelButton.setOnClickListener(new View.OnClickListener() { in onCreate()
/packages/apps/Settings/src/com/android/settings/wifi/addappnetworks/
DAddAppNetworksFragment.java113 Button mCancelButton; field in AddAppNetworksFragment
218 mCancelButton = view.findViewById(R.id.cancel); in onViewCreated()
223 mCancelButton.setOnClickListener(getCancelClickListener()); in onViewCreated()
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/addappnetworks/
DAddAppNetworksFragmentTest.java143 assertThat(mAddAppNetworksFragment.mCancelButton).isNotNull(); in launchFragment_shouldShowCancelButton()