Home
last modified time | relevance | path

Searched refs:getMode (Results 1 – 25 of 106) sorted by relevance

12345

/packages/apps/UnifiedEmail/src/com/android/mail/ui/
DActionBarController.java113 return getMode() != ViewMode.UNKNOWN; in onCreateOptionsMenu()
117 switch (getMode()) { in getOptionsMenuId()
190 switch (getMode()) { in onViewModeChanged()
220 protected int getMode() { in getMode() method in ActionBarController
222 return mViewModeController.getMode(); in getMode()
263 switch (getMode()) { in onPrepareOptionsMenu()
337 if (ViewMode.isWaitingForSync(getMode())) { in setFolderAndAccount()
343 final boolean isShowingFolder = mIsOnTablet || ViewMode.isListMode(getMode()); in setFolderAndAccount()
DOnePaneController.java383 final int mode = mViewMode.getMode(); in handleBackPress()
424 final int mode = mViewMode.getMode(); in handleUpPress()
447 final int mode = mViewMode.getMode(); in transitionBackToConversationListMode()
471 final int mode = mViewMode.getMode(); in onUndoAvailable()
506 final int mode = mViewMode.getMode(); in onError()
553 return mViewMode.getMode() == ViewMode.CONVERSATION_LIST; in shouldShowSearchMenuItem()
DTwoPaneController.java318 if (mViewMode.getMode() != ViewMode.CONVERSATION_LIST) { in switchToDefaultInboxOrChangeAccount()
336 } else if (mViewMode.getMode() != ViewMode.CONVERSATION_LIST) { in onFolderSelected()
589 final int mode = mViewMode.getMode(); in showConversation()
777 int mode = mViewMode.getMode(); in popView()
852 final int mode = mViewMode.getMode(); in onUndoAvailable()
959 final int mode = mViewMode.getMode(); in shouldShowSearchMenuItem()
DAbstractActivityController.java889 final int mode = mViewMode.getMode(); in onFolderChanged()
939 || (mViewMode.getMode() != ViewMode.CONVERSATION_LIST)) { in changeFolder()
995 final int mode = mViewMode.getMode(); in loadAccountInbox()
1132 if (ViewMode.isSearchMode(mViewMode.getMode())) { in onActivityResult()
1180 !ViewMode.isSearchMode(mViewMode.getMode()) && visible ? View.VISIBLE : View.GONE); in onConversationListVisibilityChanged()
1432 if (mViewMode.getMode() != ViewMode.UNKNOWN) { in onStart()
1648 mActivity.showHelp(mAccount, mViewMode.getMode());
1973 final int viewMode = mViewMode.getMode();
2475 if (isConversationMode && mViewMode.getMode() == ViewMode.UNKNOWN) {
2648 mViewMode.getMode() == ViewMode.WAITING_FOR_ACCOUNT_INITIALIZATION;
[all …]
/packages/apps/UnifiedEmail/tests/src/com/android/mail/ui/
DViewModeTests.java41 assertEquals(ViewMode.CONVERSATION_LIST, second.getMode()); in testBundleSaveRestorePreserveState()
77 assertEquals(ViewMode.CONVERSATION_LIST, first.getMode()); in testMultipleTransitionsFail()
80 assertEquals(ViewMode.CONVERSATION_LIST, first.getMode()); in testMultipleTransitionsFail()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/
DSysUINavigationMode.java51 public static Mode getMode(Context context) { in getMode() method in SysUINavigationMode
52 return INSTANCE.get(context).getMode(); in getMode()
109 public Mode getMode() { in getMode() method in SysUINavigationMode
/packages/apps/Gallery2/src/com/android/photos/views/
DSquareImageView.java40 int widthMode = MeasureSpec.getMode(widthMeasureSpec); in onMeasure()
41 int heightMode = MeasureSpec.getMode(heightMeasureSpec); in onMeasure()
/packages/apps/PermissionController/src/com/android/packageinstaller/permission/ui/
DPreferenceImageView.java47 final int widthMode = MeasureSpec.getMode(widthMeasureSpec); in onMeasure()
57 final int heightMode = MeasureSpec.getMode(heightMeasureSpec); in onMeasure()
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/launcher3/uioverrides/
DRecentsUiFactory.java78 if (SysUINavigationMode.getMode(context) == NO_BUTTON) {
102 if (SysUINavigationMode.getMode(context) == NO_BUTTON) {
143 Mode mode = SysUINavigationMode.getMode(launcher); in createTouchControllers()
/packages/apps/LegacyCamera/src/com/android/camera/ui/
DControlPanelLayout.java50 mode = MeasureSpec.getMode(widthSpec); in onMeasure()
55 mode = MeasureSpec.getMode(heightSpec); in onMeasure()
DIndicatorControlWheelContainer.java128 int widthMode = MeasureSpec.getMode(widthSpec); in onMeasure()
129 int heightMode = MeasureSpec.getMode(heightSpec); in onMeasure()
/packages/apps/DeskClock/src/com/android/deskclock/widget/
DTextSizeHelper.java57 if (View.MeasureSpec.getMode(widthMeasureSpec) != View.MeasureSpec.UNSPECIFIED) { in onMeasure()
63 if (View.MeasureSpec.getMode(heightMeasureSpec) != View.MeasureSpec.UNSPECIFIED) { in onMeasure()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/widget/
DScrollController.java736 private int getMode(int mode) { in getMode() method in ScrollController
766 final int operationMode = getMode(mFlingMode); in fling()
786 final int operationMode = getMode(mScrollMode); in startScroll()
855 final int operationMode = getMode(mDragMode); in dragBy()
/packages/apps/Messaging/src/com/android/messaging/ui/
DAsyncImageView.java322 final int widthSpecMode = MeasureSpec.getMode(widthMeasureSpec); in onMeasure()
323 final int heightSpecMode = MeasureSpec.getMode(heightMeasureSpec); in onMeasure()
358 final int specMode = MeasureSpec.getMode(measureSpec); in resolveSize()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/utils/
DAdditionalSubtypeUtilsTests.java137 assertEquals(KEYBOARD_MODE, subtype.getMode()); in assertEnUsDvorak()
158 assertEquals(KEYBOARD_MODE, subtype.getMode()); in assertAzerty()
/packages/apps/Settings/src/com/android/settings/development/
DMockLocationAppPreferenceController.java137 if (packageOp.getOps().get(0).getMode() != AppOpsManager.MODE_ERRORED) { in removeAllMockLocations()
159 if (packageOp.getOps().get(0).getMode() == AppOpsManager.MODE_ALLOWED) { in getCurrentMockLocationApp()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/development/
DMockLocationAppPreferenceController.java137 if (packageOp.getOps().get(0).getMode() != AppOpsManager.MODE_ERRORED) { in removeAllMockLocations()
159 if (packageOp.getOps().get(0).getMode() == AppOpsManager.MODE_ALLOWED) { in getCurrentMockLocationApp()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/
DAddNetworkFragment.java82 mUIController = new WifiConfigController(this, rootView, null, getMode()); in onCreateView()
132 public int getMode() { in getMode() method in AddNetworkFragment
/packages/apps/Settings/src/com/android/settings/wifi/
DAddNetworkFragment.java82 mUIController = new WifiConfigController(this, rootView, null, getMode()); in onCreateView()
132 public int getMode() { in getMode() method in AddNetworkFragment
/packages/apps/SoundRecorder/src/com/android/soundrecorder/
DRecorder.java183 boolean isInCall = ((audioMngr.getMode() == AudioManager.MODE_IN_CALL) || in startRecording()
184 (audioMngr.getMode() == AudioManager.MODE_IN_COMMUNICATION)); in startRecording()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DRichInputMethodSubtype.java78 public String getMode() { in getMode() method in RichInputMethodSubtype
79 return mSubtype.getMode(); in getMode()
DRichInputMethodManager.java410 if (KEYBOARD_MODE.equals(subtype.getMode())) { in hasMultipleEnabledSubtypes()
543 mShortcutSubtype.getLocale() + ", " + mShortcutSubtype.getMode()))); in updateShortcutIme()
574 mShortcutSubtype.getLocale() + ", " + mShortcutSubtype.getMode()))); in updateShortcutIme()
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/quickstep/
DLauncherActivityControllerHelper.java86 if (dp.isVerticalBarLayout() && SysUINavigationMode.getMode(context) != Mode.NO_BUTTON) { in getSwipeUpDestinationAndLength()
227 if (SysUINavigationMode.getMode(activity) == Mode.NO_BUTTON) {
339 && SysUINavigationMode.getMode(activity) != Mode.NO_BUTTON) {
/packages/apps/Launcher3/src/com/android/launcher3/pageindicators/
DPageIndicatorDots.java233 int width = MeasureSpec.getMode(widthMeasureSpec) == MeasureSpec.EXACTLY ? in onMeasure()
235 int height= MeasureSpec.getMode(heightMeasureSpec) == MeasureSpec.EXACTLY ? in onMeasure()
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/uioverrides/
DUiFactory.java113 boolean swipeUpEnabled = SysUINavigationMode.INSTANCE.get(launcher).getMode() in onCreate()
240 if (SysUINavigationMode.getMode(l) == Mode.NO_BUTTON) { in getOverviewScaleAndTranslationForNormalState()

12345