Home
last modified time | relevance | path

Searched refs:mMode (Results 1 – 25 of 53) sorted by relevance

123

/packages/apps/PermissionController/src/com/android/packageinstaller/role/model/
DAppOp.java49 private final int mMode; field in AppOp
54 mMode = mode; in AppOp()
68 return mMode; in getMode()
83 return Permissions.setAppOpMode(packageName, mName, mMode, context); in grant()
118 + ", mMode=" + mMode in toString()
131 return mMode == appOp.mMode in equals()
138 return Objects.hash(mName, mMaxTargetSdkVersion, mMode); in hashCode()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/
DSysUINavigationMode.java65 private Mode mMode; field in SysUINavigationMode
76 Mode oldMode = mMode; in SysUINavigationMode()
78 if (mMode != oldMode) { in SysUINavigationMode()
89 mMode = m; in initializeMode()
96 listener.onNavigationModeChanged(mMode); in dispatchModeChange()
102 return mMode; in addModeChangeListener()
110 return mMode; in getMode()
/packages/apps/Car/Media/src/com/android/car/media/
DMediaActivity.java107 private Mode mMode; field in MediaActivity
176 if (mMode == Mode.SEARCHING) {
263 mMode = localViewModel.getSavedMode(); in onCreate()
415 } else if (mMode == Mode.FATAL_ERROR) { in handlePlaybackState()
611 return mMode == Mode.SEARCHING ? mSearchFragment : mBrowseFragment; in getCurrentBrowseFragment()
615 if (mMode == mode) { in changeMode()
617 Log.i(TAG, "Mode " + mMode + " change is ignored"); in changeMode()
626 Log.i(TAG, "Changing mode from: " + mMode + " to: " + mode); in changeModeInternal()
630 Mode oldMode = mMode; in changeModeInternal()
632 mMode = mode; in changeModeInternal()
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/network/
DPrivateDnsModeDialogPreference.java102 String mMode; field in PrivateDnsModeDialogPreference
169 mMode = getModeFromSettings(context.getContentResolver()); in onBindDialogView()
177 mRadioGroup.check(PRIVATE_DNS_MAP.getOrDefault(mMode, R.id.private_dns_mode_opportunistic)); in onBindDialogView()
196 if (mMode.equals(PRIVATE_DNS_MODE_PROVIDER_HOSTNAME)) { in onClick()
203 SettingsEnums.ACTION_PRIVATE_DNS_MODE, mMode); in onClick()
204 Settings.Global.putString(context.getContentResolver(), MODE_KEY, mMode); in onClick() local
212 mMode = PRIVATE_DNS_MODE_OFF; in onCheckedChanged()
215 mMode = PRIVATE_DNS_MODE_OPPORTUNISTIC; in onCheckedChanged()
218 mMode = PRIVATE_DNS_MODE_PROVIDER_HOSTNAME; in onCheckedChanged()
268 final boolean modeProvider = PRIVATE_DNS_MODE_PROVIDER_HOSTNAME.equals(mMode); in updateDialogInfo()
/packages/apps/Settings/src/com/android/settings/network/
DPrivateDnsModeDialogPreference.java102 String mMode; field in PrivateDnsModeDialogPreference
169 mMode = getModeFromSettings(context.getContentResolver()); in onBindDialogView()
177 mRadioGroup.check(PRIVATE_DNS_MAP.getOrDefault(mMode, R.id.private_dns_mode_opportunistic)); in onBindDialogView()
196 if (mMode.equals(PRIVATE_DNS_MODE_PROVIDER_HOSTNAME)) { in onClick()
203 SettingsEnums.ACTION_PRIVATE_DNS_MODE, mMode); in onClick()
204 Settings.Global.putString(context.getContentResolver(), MODE_KEY, mMode); in onClick() local
211 mMode = PRIVATE_DNS_MODE_OFF; in onCheckedChanged()
213 mMode = PRIVATE_DNS_MODE_OPPORTUNISTIC; in onCheckedChanged()
215 mMode = PRIVATE_DNS_MODE_PROVIDER_HOSTNAME; in onCheckedChanged()
264 final boolean modeProvider = PRIVATE_DNS_MODE_PROVIDER_HOSTNAME.equals(mMode); in updateDialogInfo()
/packages/inputmethods/LeanbackIME/src/com/android/inputmethod/leanback/
DLeanbackSuggestionsFactory.java44 private int mMode; field in LeanbackSuggestionsFactory
55 mMode = MODE_DEFAULT; in onStartInput()
58 mMode = MODE_AUTO_COMPLETE; in onStartInput()
66 mMode = MODE_DOMAIN; in onStartInput()
98 return (mMode == MODE_DOMAIN); in shouldSuggestionsAmend()
112 if (mMode == MODE_DOMAIN) { in createSuggestions()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/
DKeyboardId.java77 public final int mMode; field in KeyboardId
92 mMode = params.mMode; in KeyboardId()
108 id.mMode, in computeHashCode()
129 && other.mMode == mMode in equals()
198 modeName(mMode), in toString()
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/quickstep/
DTouchInteractionService.java299 private Mode mMode = Mode.THREE_BUTTONS; field in TouchInteractionService
362 if (!mMode.hasGestures || mISystemUiProxy == null) { in initInputMonitor()
389 if (!mMode.hasGestures) { in initTouchBounds()
396 if (mMode == Mode.NO_BUTTON) { in initTouchBounds()
437 if (mMode.hasGestures != newMode.hasGestures) { in onNavigationModeChanged()
444 mMode = newMode; in onNavigationModeChanged()
449 if (mMode == Mode.NO_BUTTON) { in onNavigationModeChanged()
522 if (mMode.hasGestures) { in onDestroy()
560 } else if (mIsUserUnlocked && mMode == Mode.NO_BUTTON in onInputEvent()
615 if (mMode == Mode.NO_BUTTON) { in newConsumer()
[all …]
/packages/apps/Car/libs/EncryptionRunner/src/android/car/encryptionrunner/
DUkey2EncryptionRunner.java67 private int mMode = Mode.UNKNOWN; field in Ukey2EncryptionRunner
72 mMode = Mode.CLIENT; in initHandshake()
95 mMode = Mode.SERVER; in respondToInitRequest()
257 switch (mMode) { in authenticateReconnection()
284 "Encountered unexpected role during authenticateReconnection: " + mMode); in authenticateReconnection()
309 switch (mMode) { in initReconnectAuthentication()
322 "Encountered unexpected role during authenticateReconnection: " + mMode); in initReconnectAuthentication()
DDummyEncryptionRunner.java56 private int mMode; field in DummyEncryptionRunner
63 mMode = Mode.CLIENT; in initHandshake()
75 mMode = Mode.SERVER; in respondToInitRequest()
97 switch (mMode) { in continueHandshake()
126 throw new IllegalStateException("unexpected role: " + mMode); in continueHandshake()
/packages/apps/Camera2/src/com/android/camera/stats/
DCaptureSessionStatsCollector.java33 protected Integer mMode; field in CaptureSessionStatsCollector
118 mMode = mode; in decorateAtTimeCaptureRequest()
159 mMode, mFilename, mExifInterface, mIsFrontFacing, in photoCaptureDoneEvent()
170 return (mMode != null) && in isCompleteForPhotoCaptureEvent()
189 return (mMode != null); in isValidForPhotoCaptureEvent()
/packages/apps/Messaging/src/com/android/messaging/ui/
DAudioAttachmentView.java87 private final int mMode; field in AudioAttachmentView
93 mMode = typedAttributes.getInt(R.styleable.AudioAttachmentView_layoutMode, in AudioAttachmentView()
99 setWillNotDraw(mMode != LAYOUT_MODE_SUB_COMPACT); in AudioAttachmentView()
147 Assert.equals(LAYOUT_MODE_SUB_COMPACT, mMode); in updateChronometerVisibility()
300 if (mMode != LAYOUT_MODE_SUB_COMPACT) { in onDraw()
342 if (mMode == LAYOUT_MODE_SUB_COMPACT) { in updateVisualStyle()
358 switch (mMode) { in initializeViewsForMode()
DVideoThumbnailView.java59 private final int mMode; field in VideoThumbnailView
82 mMode = typedAttributes.getInt(R.styleable.VideoThumbnailView_mode, MODE_IMAGE_THUMBNAIL); in VideoThumbnailView()
88 if (mMode == MODE_PLAYABLE_VIDEO) { in VideoThumbnailView()
135 if (mMode == MODE_PLAYABLE_VIDEO) { in VideoThumbnailView()
208 Assert.equals(MODE_PLAYABLE_VIDEO, mMode); in start()
/packages/apps/Car/Dialer/src/com/android/car/dialer/ui/dialpad/
DDialpadFragment.java95 private int mMode; field in DialpadFragment
126 mMode = getArguments().getInt(DIALPAD_MODE_KEY); in onCreate()
127 L.d(TAG, "onCreate mode: %s", mMode); in onCreate()
143 mMode == MODE_EMERGENCY ? R.style.TextAppearance_EmergencyDialNumber in onCreateView()
194 if (mMode == MODE_DIAL) { in setupToolbar()
239 mMode == MODE_DIAL ? R.string.dial_a_number in presentDialedNumber()
266 getView().setPadding(0, mMode == MODE_DIAL ? toolbarHeight : 0, 0, 0); in onToolbarHeightChange()
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/quickstep/util/
DNavBarPosition.java34 private final SysUINavigationMode.Mode mMode; field in NavBarPosition
38 mMode = SysUINavigationMode.getMode(context); in NavBarPosition()
43 return mMode != NO_BUTTON && mDisplayRotation == Surface.ROTATION_90; in isRightEdge()
47 return mMode != NO_BUTTON && mDisplayRotation == Surface.ROTATION_270; in isLeftEdge()
/packages/services/Car/car-lib/src/android/car/drivingstate/
DCarUxRestrictionsConfiguration.java776 drivingStateRestrictions.mMode, mode -> new RestrictionModeContainer()); in setUxRestrictions()
780 drivingStateRestrictions.mMode, drivingStateRestrictions.mReqOpt, in setUxRestrictions()
1043 private String mMode = UX_RESTRICTION_MODE_BASELINE; field in CarUxRestrictionsConfiguration.DrivingStateRestrictions
1073 mMode = Objects.requireNonNull(mode, "mode must not be null"); in setMode()
1089 .append("Mode: ").append(mMode) in toString()
1103 final String mMode; field in CarUxRestrictionsConfiguration.RestrictionsPerSpeedRange
1119 mMode = Objects.requireNonNull(mode, "mode must not be null"); in RestrictionsPerSpeedRange()
1131 return Objects.hash(mMode, mReqOpt, mRestrictions, mSpeedRange); in hashCode()
1143 return Objects.equals(mMode, other.mMode) in equals()
1152 .append("[Mode is ").append(mMode) in toString()
[all …]
/packages/apps/Settings/src/com/android/settings/development/
DAdbWirelessDialog.java69 private final int mMode; field in AdbWirelessDialog
88 mMode = mode; in AdbWirelessDialog()
95 mController = new AdbWirelessDialogController(this, mView, mMode); in onCreate()
135 return mMode; in getMode()
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/
DPrivateDnsModeDialogPreferenceTest.java96 assertThat(mPreference.mMode).isEqualTo(PRIVATE_DNS_MODE_OFF); in testOnCheckedChanged_dnsModeOff_disableEditText()
104 assertThat(mPreference.mMode).isEqualTo(PRIVATE_DNS_MODE_OPPORTUNISTIC); in testOnCheckedChanged_dnsModeOpportunistic_disableEditText()
112 assertThat(mPreference.mMode).isEqualTo(PRIVATE_DNS_MODE_PROVIDER_HOSTNAME); in testOnCheckedChanged_dnsModeProvider_enableEditText()
164 mPreference.mMode = ConnectivityManager.PRIVATE_DNS_MODE_OPPORTUNISTIC; in testOnClick_positiveButtonClicked_saveData()
178 mPreference.mMode = ConnectivityManager.PRIVATE_DNS_MODE_OPPORTUNISTIC; in testOnClick_negativeButtonClicked_doNothing()
/packages/services/Car/EncryptionRunner/src/android/car/encryptionrunner/
DDummyEncryptionRunner.java52 private int mMode; field in DummyEncryptionRunner
59 mMode = Mode.CLIENT; in initHandshake()
71 mMode = Mode.SERVER; in respondToInitRequest()
93 switch(mMode) { in continueHandshake()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/inputmethod/
DUserDictionaryAddWordContents.java53 private final int mMode; // Either MODE_EDIT or MODE_INSERT field in UserDictionaryAddWordContents
76 mMode = args.getInt(EXTRA_MODE); // default return value for #getInt() is 0 = MODE_EDIT in UserDictionaryAddWordContents()
86 mMode = MODE_EDIT; in UserDictionaryAddWordContents()
111 if (MODE_EDIT == mMode && !TextUtils.isEmpty(mOldWord)) { in delete()
122 if (MODE_EDIT == mMode && !TextUtils.isEmpty(mOldWord)) { in apply()
/packages/apps/Settings/src/com/android/settings/inputmethod/
DUserDictionaryAddWordContents.java53 private final int mMode; // Either MODE_EDIT or MODE_INSERT field in UserDictionaryAddWordContents
76 mMode = args.getInt(EXTRA_MODE); // default return value for #getInt() is 0 = MODE_EDIT in UserDictionaryAddWordContents()
86 mMode = MODE_EDIT; in UserDictionaryAddWordContents()
111 if (MODE_EDIT == mMode && !TextUtils.isEmpty(mOldWord)) { in delete()
122 if (MODE_EDIT == mMode && !TextUtils.isEmpty(mOldWord)) { in apply()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/
DWifiDialog.java52 private final int mMode; field in WifiDialog
73 mMode = mode; in WifiDialog()
88 mController = new WifiConfigController(this, mView, mAccessPoint, mMode); in onCreate()
167 return mMode; in getMode()
/packages/apps/Settings/src/com/android/settings/wifi/
DWifiDialog.java53 private final int mMode; field in WifiDialog
84 mMode = mode; in WifiDialog()
99 mController = new WifiConfigController(this, mView, mAccessPoint, mMode); in onCreate()
178 return mMode; in getMode()
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/util/
DThreadPool.java117 private int mMode; field in ThreadPool.Worker
204 ResourceCounter rc = modeToCounter(mMode); in setMode()
206 mMode = MODE_NONE; in setMode()
214 mMode = mode; in setMode()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/userdictionary/
DUserDictionaryAddWordContents.java64 private final int mMode; // Either MODE_EDIT or MODE_INSERT field in UserDictionaryAddWordContents
98 mMode = args.getInt(EXTRA_MODE); // default return value for #getInt() is 0 = MODE_EDIT in UserDictionaryAddWordContents()
107 mMode = MODE_EDIT; in UserDictionaryAddWordContents()
132 if (MODE_EDIT == mMode && !TextUtils.isEmpty(mOldWord)) { in delete()
144 if (MODE_EDIT == mMode && !TextUtils.isEmpty(mOldWord)) { in apply()

123