Home
last modified time | relevance | path

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

1234

/packages/modules/Connectivity/tests/cts/net/src/android/net/rtp/cts/
DAudioGroupTest.java124 assertEquals(mGroup.getMode(), AudioGroup.MODE_NORMAL); in testSetMode()
127 assertEquals(mGroup.getMode(), AudioGroup.MODE_MUTED); in testSetMode()
133 assertEquals(mGroup.getMode(), AudioGroup.MODE_NORMAL); in testSetMode()
136 assertEquals(mGroup.getMode(), AudioGroup.MODE_MUTED); in testSetMode()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/
DSysUINavigationMode.java60 public static Mode getMode(Context context) { in getMode() method in SysUINavigationMode
61 return INSTANCE.get(context).getMode(); in getMode()
185 public Mode getMode() { in getMode() method in SysUINavigationMode
DBaseActivityInterface.java24 import static com.android.quickstep.SysUINavigationMode.getMode;
353 return OverviewActionsView.getOverviewActionsBottomMarginPx(getMode(context), dp) in getOverviewActionsHeight()
354 + OverviewActionsView.getOverviewActionsTopMarginPx(getMode(context), dp) in getOverviewActionsHeight()
457 if (SysUINavigationMode.getMode(mActivity) == Mode.NO_BUTTON) { in createActivityInterface()
/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/Car/libs/encryption-runner/src/android/car/encryptionrunner/
DOobFakeEncryptionRunner.java33 switch (getMode()) { in continueHandshake()
54 throw new IllegalStateException("unexpected role: " + getMode()); in continueHandshake()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/views/
DOverviewActionsView.java149 updateVerticalMargin(SysUINavigationMode.getMode(getContext())); in onConfigurationChanged()
155 updateVerticalMargin(SysUINavigationMode.getMode(getContext())); in setInsets()
225 updateVerticalMargin(SysUINavigationMode.getMode(getContext())); in setDp()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/handheld/dashboard/
DPreferenceImageView.java47 final int widthMode = MeasureSpec.getMode(widthMeasureSpec); in onMeasure()
57 final int heightMode = MeasureSpec.getMode(heightMeasureSpec); in onMeasure()
/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.kt47 if (MeasureSpec.getMode(widthMeasureSpec) != MeasureSpec.UNSPECIFIED) { in onMeasure()
53 if (MeasureSpec.getMode(heightMeasureSpec) != MeasureSpec.UNSPECIFIED) { in onMeasure()
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/
DBaseQuickstepLauncher.java271 mActionsView.updateVerticalMargin(SysUINavigationMode.getMode(this)); in setupViews()
362 return SysUINavigationMode.getMode(this).hasGestures in getNormalOverviewScaleAndOffset()
400 Mode mode = SysUINavigationMode.getMode(this); in shouldBackButtonBeHidden()
418 if (SysUINavigationMode.getMode(this) == TWO_BUTTONS) { in onLauncherStateOrFocusChanged()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/util/
DQuickstepOnboardingPrefs.java54 .get(mLauncher).getMode().hasGestures; in QuickstepOnboardingPrefs()
90 if (SysUINavigationMode.getMode(launcher) == NO_BUTTON in QuickstepOnboardingPrefs()
/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.java324 final int widthSpecMode = MeasureSpec.getMode(widthMeasureSpec); in onMeasure()
325 final int heightSpecMode = MeasureSpec.getMode(heightMeasureSpec); in onMeasure()
360 final int specMode = MeasureSpec.getMode(measureSpec); in resolveSize()
/packages/apps/Settings/src/com/android/settings/development/
DMockLocationAppPreferenceController.java144 if (packageOp.getOps().get(0).getMode() != AppOpsManager.MODE_ERRORED) { in removeAllMockLocations()
167 if (packageOp.getOps().get(0).getMode() == AppOpsManager.MODE_ALLOWED) { in getCurrentMockLocationApp()
/packages/apps/Settings/tests/unit/src/com/android/settings/network/telephony/
DEnhanced4gBasePreferenceControllerTest.java101 doReturn(1).when(mController).getMode(); in setUp()
118 doReturn(2).when(mController).getMode(); in getAvailabilityStatus_modeMismatch_returnUnavailable()
/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/wifi/
DAddNetworkFragment.java83 mUIController = new WifiConfigController2(this, rootView, null, getMode()); in onCreateView()
132 public int getMode() { in getMode() method in AddNetworkFragment
DConfigureWifiEntryFragment.java114 mUiController = new WifiConfigController2(this, rootView, mWifiEntry, getMode()); in onCreateView()
144 public int getMode() { in getMode() method in ConfigureWifiEntryFragment
/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/Settings/src/com/android/settings/network/telephony/
DEnhanced4gBasePreferenceController.java198 protected int getMode() { in getMode() method in Enhanced4gBasePreferenceController
203 return m4gCurrentMode == getMode(); in isModeMatched()
DEnhanced4gCallingPreferenceController.java31 protected int getMode() { in getMode() method in Enhanced4gCallingPreferenceController
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/uioverrides/states/
DQuickstepAtomicAnimationFactory.java94 if (SysUINavigationMode.getMode(mActivity).hasGestures in prepareForAtomicAnimation()
136 if (SysUINavigationMode.getMode(mActivity).hasGestures) { in prepareForAtomicAnimation()
/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()

1234