Home
last modified time | relevance | path

Searched refs:setMode (Results 1 – 25 of 65) sorted by relevance

123

/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/
DCarUxRestrictionsConfigurationTest.java153 .setMode(UX_RESTRICTION_MODE_PASSENGER) in testBuilderValidation_PassengerModeCanSpecifySubsetOfSpeedRange()
406 .setMode(UX_RESTRICTION_MODE_PASSENGER)) in testJsonSerialization_UxRestrictionMode()
411 .setMode(UX_RESTRICTION_MODE_BASELINE)) in testJsonSerialization_UxRestrictionMode()
441 .setMode(UX_RESTRICTION_MODE_BASELINE)) in testJsonSerialization_ReadsV1()
445 .setMode(UX_RESTRICTION_MODE_BASELINE)) in testJsonSerialization_ReadsV1()
449 .setMode(UX_RESTRICTION_MODE_BASELINE)) in testJsonSerialization_ReadsV1()
453 .setMode(UX_RESTRICTION_MODE_BASELINE)) in testJsonSerialization_ReadsV1()
457 .setMode(UX_RESTRICTION_MODE_PASSENGER)) in testJsonSerialization_ReadsV1()
461 .setMode(UX_RESTRICTION_MODE_PASSENGER)) in testJsonSerialization_ReadsV1()
465 .setMode(UX_RESTRICTION_MODE_PASSENGER)) in testJsonSerialization_ReadsV1()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/
DAvailableMediaBluetoothDeviceUpdaterTest.java101 mAudioManager.setMode(AudioManager.MODE_IN_CALL); in onAudioModeChanged_hfpDeviceConnected_inCall_addPreference()
114 mAudioManager.setMode(AudioManager.MODE_NORMAL); in onAudioModeChanged_hfpDeviceConnected_notInCall_removePreference()
127 mAudioManager.setMode(AudioManager.MODE_IN_CALL); in onAudioModeChanged_a2dpDeviceConnected_inCall_removePreference()
140 mAudioManager.setMode(AudioManager.MODE_NORMAL); in onAudioModeChanged_a2dpDeviceConnected_notInCall_addPreference()
153 mAudioManager.setMode(AudioManager.MODE_NORMAL); in onProfileConnectionStateChanged_a2dpDeviceConnected_notInCall_addPreference()
166 mAudioManager.setMode(AudioManager.MODE_IN_CALL); in onProfileConnectionStateChanged_a2dpDeviceConnected_inCall_removePreference()
179 mAudioManager.setMode(AudioManager.MODE_NORMAL); in onProfileConnectionStateChanged_hfpDeviceConnected_notInCall_removePreference()
192 mAudioManager.setMode(AudioManager.MODE_IN_CALL); in onProfileConnectionStateChanged_hfpDeviceConnected_inCall_addPreference()
206 mAudioManager.setMode(AudioManager.MODE_NORMAL); in onProfileConnectionStateChanged_hearingAidDeviceConnected_notInCall_addPreference()
219 mAudioManager.setMode(AudioManager.MODE_IN_CALL); in onProfileConnectionStateChanged_hearingAidDeviceConnected_inCall_addPreference()
DConnectedBluetoothDeviceUpdaterTest.java101 mAudioManager.setMode(AudioManager.MODE_NORMAL); in onAudioModeChanged_hfpDeviceConnected_notInCall_addPreference()
114 mAudioManager.setMode(AudioManager.MODE_IN_CALL); in onAudioModeChanged_hfpDeviceConnected_inCall_removePreference()
127 mAudioManager.setMode(AudioManager.MODE_NORMAL); in onAudioModeChanged_a2dpDeviceConnected_notInCall_removePreference()
140 mAudioManager.setMode(AudioManager.MODE_IN_CALL); in onAudioModeChanged_a2dpDeviceConnected_inCall_addPreference()
153 mAudioManager.setMode(AudioManager.MODE_IN_CALL); in onProfileConnectionStateChanged_a2dpDeviceConnected_inCall_addPreference()
166 mAudioManager.setMode(AudioManager.MODE_NORMAL); in onProfileConnectionStateChanged_a2dpDeviceConnected_notInCall_removePreference()
179 mAudioManager.setMode(AudioManager.MODE_IN_CALL); in onProfileConnectionStateChanged_hfpDeviceConnected_inCall_removePreference()
192 mAudioManager.setMode(AudioManager.MODE_NORMAL); in onProfileConnectionStateChanged_hfpDeviceConnected_notInCall_addPreference()
206 mAudioManager.setMode(AudioManager.MODE_IN_CALL); in onProfileConnectionStateChanged_hearingAidDeviceConnected_inCall_removePreference()
220 mAudioManager.setMode(AudioManager.MODE_NORMAL); in onProfileConnectionStateChanged_hearingAidDeviceConnected_notInCall_removePreference()
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/
DAudioRecordView.java182 setMode(MODE_IDLE); in stopTouchHandling()
186 private void setMode(final int mode) { in setMode() method in AudioRecordView
244 setMode(MODE_STARTING); in onRecordButtonTouchDown()
255 setMode(MODE_RECORDING); in onRecordButtonTouchDown()
281 setMode(MODE_IDLE); in onRecordButtonTouchUp()
285 setMode(MODE_STOPPING); in onRecordButtonTouchUp()
293 setMode(MODE_IDLE); in onRecordButtonTouchUp()
326 setMode(MODE_IDLE); in onErrorWhileRecording()
341 setMode(MODE_IDLE); in onFinishedRecording()
/packages/apps/Settings/tests/robotests/src/com/android/settings/sound/
DHandsFreeProfileOutputPreferenceControllerTest.java175 mAudioManager.setMode(AudioManager.MODE_IN_COMMUNICATION); in setActiveBluetoothDevice_btDeviceWithHisyncId_shouldSetBtDeviceActive()
190 mAudioManager.setMode(AudioManager.MODE_IN_COMMUNICATION); in setActiveBluetoothDevice_btDeviceWithoutHisyncId_shouldSetBtDeviceActive()
205 mAudioManager.setMode(AudioManager.MODE_IN_COMMUNICATION); in setActiveBluetoothDevice_setNull_shouldSetNullToBothProfiles()
219 mAudioManager.setMode(AudioManager.MODE_NORMAL); in setActiveBluetoothDevice_inNormalMode_shouldNotSetActiveDeviceToHeadsetProfile()
247 mAudioManager.setMode(AudioManager.MODE_IN_COMMUNICATION); in updateState_oneHeadsetsAvailableAndActivated_shouldSetDeviceName()
268 mAudioManager.setMode(AudioManager.MODE_IN_COMMUNICATION); in updateState_moreThanOneHfpBtDevicesAreAvailable_shouldSetActivatedDeviceName()
290 mAudioManager.setMode(AudioManager.MODE_IN_COMMUNICATION); in updateState_withAvailableDevicesWiredHeadsetActivated_shouldSetDefaultSummary()
310 mAudioManager.setMode(AudioManager.MODE_IN_COMMUNICATION); in updateState_noAvailableHeadsetBtDevices_shouldSetDefaultSummary()
328 mAudioManager.setMode(AudioManager.MODE_IN_COMMUNICATION); in updateState_oneHapBtDeviceAreAvailable_shouldSetActivatedDeviceName()
352 mAudioManager.setMode(AudioManager.MODE_IN_COMMUNICATION); in updateState_moreThanOneHapBtDevicesAreAvailable_shouldSetActivatedDeviceName()
[all …]
DMediaOutputPreferenceControllerTest.java177 mAudioManager.setMode(AudioManager.MODE_NORMAL); in updateState_withoutConnectedBtDevice_preferenceInvisible()
194 mAudioManager.setMode(AudioManager.MODE_NORMAL); in updateState_withConnectedBtDevice_preferenceVisible()
217 mAudioManager.setMode(AudioManager.MODE_NORMAL); in updateState_withConnectedBtDevice_withoutActiveBtDevice_setDefaultSummary()
237 mAudioManager.setMode(AudioManager.MODE_NORMAL); in updateState_withActiveBtDevice_setActivatedDeviceName()
257 mAudioManager.setMode(AudioManager.MODE_NORMAL); in updateState_withConnectedHADevice_preferenceVisible()
280 mAudioManager.setMode(AudioManager.MODE_NORMAL); in updateState_withActiveHADevice_setActivatedDeviceName()
326 mAudioManager.setMode(AudioManager.MODE_IN_COMMUNICATION); in updateState_duringACall_shouldSetDefaultSummary()
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/util/
DThreadPool.java51 boolean setMode(int mode); in setMode() method
65 public boolean setMode(int mode) { in setMode() method in ThreadPool.JobContextStub
131 if (setMode(MODE_CPU)) { in run()
140 setMode(MODE_NONE); in run()
202 public boolean setMode(int mode) { in setMode() method in ThreadPool.Worker
/packages/services/Car/tests/carservice_test/src/com/android/car/
DCarUxRestrictionsManagerServiceTest.java207 .setMode(UX_RESTRICTION_MODE_BASELINE)) in testLoadConfig_SupportsLegacyV1()
212 .setMode(UX_RESTRICTION_MODE_BASELINE)) in testLoadConfig_SupportsLegacyV1()
217 .setMode(UX_RESTRICTION_MODE_BASELINE)) in testLoadConfig_SupportsLegacyV1()
222 .setMode(UX_RESTRICTION_MODE_BASELINE)) in testLoadConfig_SupportsLegacyV1()
227 .setMode(UX_RESTRICTION_MODE_PASSENGER)) in testLoadConfig_SupportsLegacyV1()
232 .setMode(UX_RESTRICTION_MODE_PASSENGER)) in testLoadConfig_SupportsLegacyV1()
237 .setMode(UX_RESTRICTION_MODE_PASSENGER)) in testLoadConfig_SupportsLegacyV1()
242 .setMode(UX_RESTRICTION_MODE_PASSENGER)) in testLoadConfig_SupportsLegacyV1()
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DCallAudioModeStateMachineTest.java96 verify(mAudioManager, never()).setMode(anyInt()); in testNoFocusWhenRingerSilenced()
134 verify(mAudioManager, never()).setMode(anyInt()); in testNoRingWhenDeviceIsAtEar()
164 verify(mAudioManager, never()).setMode(anyInt()); in testRegainFocusWhenHfpIsConnectedSilenced()
178 verify(mAudioManager).setMode(AudioManager.MODE_RINGTONE); in testRegainFocusWhenHfpIsConnectedSilenced()
/packages/services/Telecomm/src/com/android/server/telecom/
DCallAudioModeStateMachine.java232 mAudioManager.setMode(AudioManager.MODE_NORMAL); in enter()
295 mAudioManager.setMode(NEW_AUDIO_MODE_FOR_AUDIO_PROCESSING); in enter()
363 mAudioManager.setMode(AudioManager.MODE_RINGTONE); in tryStartRinging()
449 mAudioManager.setMode(AudioManager.MODE_IN_CALL); in enter()
530 mAudioManager.setMode(AudioManager.MODE_IN_COMMUNICATION); in enter()
607 mAudioManager.setMode(mMostRecentMode); in enter()
/packages/apps/Gallery/src/com/android/camera/
DViewImage.java343 setMode(MODE_NORMAL); in onSingleTapUp()
386 setMode(MODE_SLIDESHOW); in onCreateOptionsMenu()
403 setMode(MODE_NORMAL); in onCreateOptionsMenu()
458 setMode(MODE_NORMAL); in onPrepareOptionsMenu()
639 setMode(MODE_SLIDESHOW); in onCreate()
688 void setMode(int mode) { in setMode() method
855 setMode(MODE_NORMAL); in loadNextImage()
963 setMode(MODE_NORMAL); in onStop()
1180 mViewImage.setMode(ViewImage.MODE_NORMAL);
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/network/
DHttpUrlConnectionBuilderTests.java134 builder.setMode(MODE_UPLOAD_ONLY); in testSetMode_uploadOnly()
144 builder.setMode(MODE_DOWNLOAD_ONLY); in testSetMode_downloadOnly()
154 builder.setMode(MODE_BI_DIRECTIONAL); in testSetMode_bidirectional()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DBatteryUtilsTest.java580 verify(mAppOpsManager).setMode(AppOpsManager.OP_RUN_IN_BACKGROUND, UID, LOW_SDK_PACKAGE, in testSetForceAppStandby_forcePreOApp_forceTwoRestrictions()
582 verify(mAppOpsManager).setMode(AppOpsManager.OP_RUN_ANY_IN_BACKGROUND, UID, LOW_SDK_PACKAGE, in testSetForceAppStandby_forcePreOApp_forceTwoRestrictions()
591 verify(mAppOpsManager, never()).setMode(AppOpsManager.OP_RUN_IN_BACKGROUND, UID, in testSetForceAppStandby_forceOApp_forceOneRestriction()
594 verify(mAppOpsManager).setMode(AppOpsManager.OP_RUN_ANY_IN_BACKGROUND, UID, in testSetForceAppStandby_forceOApp_forceOneRestriction()
707 verify(mAppOpsManager).setMode(AppOpsManager.OP_RUN_ANY_IN_BACKGROUND, UID, in clearForceAppStandby_appRestricted_clearAndReturnTrue()
716 verify(mAppOpsManager, never()).setMode(AppOpsManager.OP_RUN_ANY_IN_BACKGROUND, UID, in clearForceAppStandby_appInvalid_returnFalse()
727 verify(mAppOpsManager, never()).setMode(AppOpsManager.OP_RUN_ANY_IN_BACKGROUND, UID, in clearForceAppStandby_appUnrestricted_returnFalse()
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DDownloadCache.java317 jc.setMode(ThreadPool.MODE_NETWORK); in run()
323 jc.setMode(ThreadPool.MODE_NETWORK); in run()
325 jc.setMode(ThreadPool.MODE_NONE); in run()
330 jc.setMode(ThreadPool.MODE_NONE); in run()
/packages/apps/Settings/tests/unit/src/com/android/settings/applications/
DAppOpsSettingsTest.java94 mAppOpsManager.setMode(mAppOpCode, uid, mPackageName, MODE_DEFAULT); in resetAppOpModeForAllProfiles()
167 mAppOpsManager.setMode(mAppOpCode, in testAppDetailScreenForAppOp()
189 mAppOpsManager.setMode(mAppOpCode, packageUid, mPackageName, fromAppOp); in testSwitchToggle()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/development/
DMockLocationAppPreferenceController.java109 mAppsOpsManager.setMode(AppOpsManager.OP_MOCK_LOCATION, ai.uid, in writeMockLocation()
147 mAppsOpsManager.setMode(AppOpsManager.OP_MOCK_LOCATION, ai.uid, in removeMockLocationForApp()
/packages/apps/Settings/src/com/android/settings/development/
DMockLocationAppPreferenceController.java115 mAppsOpsManager.setMode(AppOpsManager.OP_MOCK_LOCATION, ai.uid, in writeMockLocation()
153 mAppsOpsManager.setMode(AppOpsManager.OP_MOCK_LOCATION, ai.uid, in removeMockLocationForApp()
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/
DMockLocationAppPreferenceControllerTest.java115 verify(mAppOpsManager).setMode(anyInt(), anyInt(), eq(newAppName), in onActivityResult_fooPrevAppBarNewApp_shouldRemoveFooAndSetBarAsMockLocationApp()
117 verify(mAppOpsManager).setMode(anyInt(), anyInt(), eq(prevAppName), in onActivityResult_fooPrevAppBarNewApp_shouldRemoveFooAndSetBarAsMockLocationApp()
/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/
DAvailableMediaDeviceGroupControllerTest.java192 mAudioManager.setMode(AudioManager.MODE_IN_CALL); in setTitle_inCallState_showCallStateTitle()
201 mAudioManager.setMode(AudioManager.MODE_NORMAL); in setTitle_notInCallState_showMediaStateTitle()
/packages/services/Car/tests/UxRestrictionsSample/src/com/google/android/car/uxr/sample/
DMainActivity.java221 .setMode(UX_RESTRICTION_MODE_PASSENGER) in onConfirm()
230 .setMode(UX_RESTRICTION_MODE_PASSENGER) in onConfirm()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/applications/specialaccess/
DAppStateAppOpsBridgeTest.java239 mAppOpsManager.setMode(APP_OP_CODE, packageInfo2.applicationInfo.uid, in loadsAppOpExtraInfo_multipleProfiles()
284 mAppOpsManager.setMode(APP_OP_CODE, packageInfo.applicationInfo.uid, in addPackageWithPermission()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/homepage/contextualcards/slices/
DSliceFullCardRendererHelper.java54 cardHolder.sliceView.setMode(SliceView.MODE_LARGE); in bindView()
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/slices/
DSliceFullCardRendererHelper.java54 cardHolder.sliceView.setMode(SliceView.MODE_LARGE); in bindView()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/apps/specialaccess/
DWriteSettings.java88 mAppOpsManager.setMode(AppOpsManager.OP_WRITE_SETTINGS, in setWriteSettingsAccess()
DAppUsageAccess.java105 mAppOpsManager.setMode(AppOpsManager.OP_GET_USAGE_STATS, in setAppUsageAccess()

123