/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/ |
D | CarUxRestrictionsConfigurationTest.java | 153 .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/ |
D | AvailableMediaBluetoothDeviceUpdaterTest.java | 101 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()
|
D | ConnectedBluetoothDeviceUpdaterTest.java | 101 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/ |
D | AudioRecordView.java | 182 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/ |
D | HandsFreeProfileOutputPreferenceControllerTest.java | 175 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 …]
|
D | MediaOutputPreferenceControllerTest.java | 177 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/ |
D | ThreadPool.java | 51 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/ |
D | CarUxRestrictionsManagerServiceTest.java | 207 .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/ |
D | CallAudioModeStateMachineTest.java | 96 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/ |
D | CallAudioModeStateMachine.java | 232 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/ |
D | ViewImage.java | 343 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/ |
D | HttpUrlConnectionBuilderTests.java | 134 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/ |
D | BatteryUtilsTest.java | 580 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/ |
D | DownloadCache.java | 317 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/ |
D | AppOpsSettingsTest.java | 94 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/ |
D | MockLocationAppPreferenceController.java | 109 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/ |
D | MockLocationAppPreferenceController.java | 115 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/ |
D | MockLocationAppPreferenceControllerTest.java | 115 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/ |
D | AvailableMediaDeviceGroupControllerTest.java | 192 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/ |
D | MainActivity.java | 221 .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/ |
D | AppStateAppOpsBridgeTest.java | 239 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/ |
D | SliceFullCardRendererHelper.java | 54 cardHolder.sliceView.setMode(SliceView.MODE_LARGE); in bindView()
|
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/slices/ |
D | SliceFullCardRendererHelper.java | 54 cardHolder.sliceView.setMode(SliceView.MODE_LARGE); in bindView()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/apps/specialaccess/ |
D | WriteSettings.java | 88 mAppOpsManager.setMode(AppOpsManager.OP_WRITE_SETTINGS, in setWriteSettingsAccess()
|
D | AppUsageAccess.java | 105 mAppOpsManager.setMode(AppOpsManager.OP_GET_USAGE_STATS, in setAppUsageAccess()
|