/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/ |
D | CarUxRestrictionsConfigurationTest.java | 153 .setMode(UX_RESTRICTION_MODE_PASSENGER) in testBuilderValidation_PassengerModeCanSpecifySubsetOfSpeedRange() 382 .setMode(UX_RESTRICTION_MODE_PASSENGER)) in testJsonSerialization_UxRestrictionMode() 387 .setMode(UX_RESTRICTION_MODE_BASELINE)) in testJsonSerialization_UxRestrictionMode() 417 .setMode(UX_RESTRICTION_MODE_BASELINE)) in testJsonSerialization_ReadsV1() 421 .setMode(UX_RESTRICTION_MODE_BASELINE)) in testJsonSerialization_ReadsV1() 425 .setMode(UX_RESTRICTION_MODE_BASELINE)) in testJsonSerialization_ReadsV1() 429 .setMode(UX_RESTRICTION_MODE_BASELINE)) in testJsonSerialization_ReadsV1() 433 .setMode(UX_RESTRICTION_MODE_PASSENGER)) in testJsonSerialization_ReadsV1() 437 .setMode(UX_RESTRICTION_MODE_PASSENGER)) in testJsonSerialization_ReadsV1() 441 .setMode(UX_RESTRICTION_MODE_PASSENGER)) in testJsonSerialization_ReadsV1() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/ |
D | AvailableMediaBluetoothDeviceUpdaterTest.java | 108 mAudioManager.setMode(AudioManager.MODE_IN_CALL); in onAudioModeChanged_hfpDeviceConnected_inCall_addPreference() 121 mAudioManager.setMode(AudioManager.MODE_NORMAL); in onAudioModeChanged_hfpDeviceConnected_notInCall_removePreference() 134 mAudioManager.setMode(AudioManager.MODE_IN_CALL); in onAudioModeChanged_a2dpDeviceConnected_inCall_removePreference() 147 mAudioManager.setMode(AudioManager.MODE_NORMAL); in onAudioModeChanged_a2dpDeviceConnected_notInCall_addPreference() 160 mAudioManager.setMode(AudioManager.MODE_NORMAL); in onProfileConnectionStateChanged_a2dpDeviceConnected_notInCall_addPreference() 173 mAudioManager.setMode(AudioManager.MODE_IN_CALL); in onProfileConnectionStateChanged_a2dpDeviceConnected_inCall_removePreference() 186 mAudioManager.setMode(AudioManager.MODE_NORMAL); in onProfileConnectionStateChanged_hfpDeviceConnected_notInCall_removePreference() 199 mAudioManager.setMode(AudioManager.MODE_IN_CALL); in onProfileConnectionStateChanged_hfpDeviceConnected_inCall_addPreference() 213 mAudioManager.setMode(AudioManager.MODE_NORMAL); in onProfileConnectionStateChanged_hearingAidDeviceConnected_notInCall_addPreference() 226 mAudioManager.setMode(AudioManager.MODE_IN_CALL); in onProfileConnectionStateChanged_hearingAidDeviceConnected_inCall_addPreference()
|
D | ConnectedBluetoothDeviceUpdaterTest.java | 107 mAudioManager.setMode(AudioManager.MODE_NORMAL); in onAudioModeChanged_hfpDeviceConnected_notInCall_addPreference() 120 mAudioManager.setMode(AudioManager.MODE_IN_CALL); in onAudioModeChanged_hfpDeviceConnected_inCall_removePreference() 133 mAudioManager.setMode(AudioManager.MODE_NORMAL); in onAudioModeChanged_a2dpDeviceConnected_notInCall_removePreference() 146 mAudioManager.setMode(AudioManager.MODE_IN_CALL); in onAudioModeChanged_a2dpDeviceConnected_inCall_addPreference() 159 mAudioManager.setMode(AudioManager.MODE_IN_CALL); in onProfileConnectionStateChanged_a2dpDeviceConnected_inCall_addPreference() 172 mAudioManager.setMode(AudioManager.MODE_NORMAL); in onProfileConnectionStateChanged_a2dpDeviceConnected_notInCall_removePreference() 185 mAudioManager.setMode(AudioManager.MODE_IN_CALL); in onProfileConnectionStateChanged_hfpDeviceConnected_inCall_removePreference() 198 mAudioManager.setMode(AudioManager.MODE_NORMAL); in onProfileConnectionStateChanged_hfpDeviceConnected_notInCall_addPreference() 212 mAudioManager.setMode(AudioManager.MODE_IN_CALL); in onProfileConnectionStateChanged_hearingAidDeviceConnected_inCall_removePreference() 226 mAudioManager.setMode(AudioManager.MODE_NORMAL); in onProfileConnectionStateChanged_hearingAidDeviceConnected_notInCall_removePreference()
|
/packages/modules/Connectivity/tests/cts/net/src/android/net/rtp/cts/ |
D | AudioGroupTest.java | 50 mAudioManager.setMode(AudioManager.MODE_IN_COMMUNICATION); in setUp() 55 mStreamA.setMode(RtpStream.MODE_NORMAL); in setUp() 62 mStreamB.setMode(RtpStream.MODE_NORMAL); in setUp() 81 mAudioManager.setMode(AudioManager.MODE_NORMAL); in tearDown() 123 mGroup.setMode(AudioGroup.MODE_NORMAL); in testSetMode() 126 mGroup.setMode(AudioGroup.MODE_MUTED); in testSetMode() 132 mGroup.setMode(AudioGroup.MODE_NORMAL); in testSetMode() 135 mGroup.setMode(AudioGroup.MODE_MUTED); in testSetMode()
|
/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 | 176 mAudioManager.setMode(AudioManager.MODE_IN_COMMUNICATION); in setActiveBluetoothDevice_btDeviceWithHisyncId_shouldSetBtDeviceActive() 191 mAudioManager.setMode(AudioManager.MODE_IN_COMMUNICATION); in setActiveBluetoothDevice_btDeviceWithoutHisyncId_shouldSetBtDeviceActive() 206 mAudioManager.setMode(AudioManager.MODE_IN_COMMUNICATION); in setActiveBluetoothDevice_setNull_shouldSetNullToBothProfiles() 220 mAudioManager.setMode(AudioManager.MODE_NORMAL); in setActiveBluetoothDevice_inNormalMode_shouldNotSetActiveDeviceToHeadsetProfile() 249 mAudioManager.setMode(AudioManager.MODE_IN_COMMUNICATION); in updateState_oneHeadsetsAvailableAndActivated_shouldSetDeviceName() 271 mAudioManager.setMode(AudioManager.MODE_IN_COMMUNICATION); in updateState_moreThanOneHfpBtDevicesAreAvailable_shouldSetActivatedDeviceName() 293 mAudioManager.setMode(AudioManager.MODE_IN_COMMUNICATION); in updateState_withAvailableDevicesWiredHeadsetActivated_shouldSetDefaultSummary() 313 mAudioManager.setMode(AudioManager.MODE_IN_COMMUNICATION); in updateState_noAvailableHeadsetBtDevices_shouldSetDefaultSummary() 332 mAudioManager.setMode(AudioManager.MODE_IN_COMMUNICATION); in updateState_oneHapBtDeviceAreAvailable_shouldSetActivatedDeviceName() 357 mAudioManager.setMode(AudioManager.MODE_IN_COMMUNICATION); in updateState_moreThanOneHapBtDevicesAreAvailable_shouldSetActivatedDeviceName() [all …]
|
D | MediaOutputPreferenceControllerTest.java | 218 mAudioManager.setMode(AudioManager.MODE_NORMAL); in updateState_withConnectedBtDevice_withoutActiveBtDevice_setDefaultSummary() 239 mAudioManager.setMode(AudioManager.MODE_NORMAL); in updateState_withActiveBtDevice_setActivatedDeviceName() 259 mAudioManager.setMode(AudioManager.MODE_NORMAL); in updateState_withActiveHADevice_setActivatedDeviceName() 315 mAudioManager.setMode(AudioManager.MODE_NORMAL); in updateState_notInCall_preferenceVisible() 329 mAudioManager.setMode(AudioManager.MODE_IN_COMMUNICATION); in updateState_inCall_preferenceInvisible()
|
/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/apps/Settings/tests/robotests/src/com/android/settings/media/ |
D | MediaOutputIndicatorSliceTest.java | 142 mAudioManager.setMode(AudioManager.MODE_NORMAL); in getSlice_withConnectedDevice_verifyMetadata() 158 mAudioManager.setMode(AudioManager.MODE_NORMAL); in getSlice_noConnectedDevice_returnErrorSlice() 172 mAudioManager.setMode(AudioManager.MODE_IN_COMMUNICATION); in getSlice_audioModeIsInCommunication_returnErrorSlice() 186 mAudioManager.setMode(AudioManager.MODE_RINGTONE); in getSlice_audioModeIsRingtone_returnErrorSlice() 200 mAudioManager.setMode(AudioManager.MODE_IN_CALL); in getSlice_audioModeIsInCall_returnErrorSlice() 254 mAudioManager.setMode(AudioManager.MODE_NORMAL); in isVisible_allConditionMatched_returnTrue() 266 mAudioManager.setMode(AudioManager.MODE_NORMAL); in isVisible_noActiveSession_returnFalse()
|
D | MediaDeviceUpdateWorkerTest.java | 189 mAudioManager.setMode(AudioManager.MODE_IN_CALL); in onReceive_inCallState_shouldNotifyChange() 203 mAudioManager.setMode(AudioManager.MODE_NORMAL); in onReceive_notInCallState_doNothing()
|
/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() 209 verify(mAudioManager).setMode(AudioManager.MODE_RINGTONE); in testDoNotRingTwiceWhenHfpConnected() 247 verify(mAudioManager).setMode(AudioManager.MODE_RINGTONE); in testStartRingingAfterHfpConnectedIfNotAlreadyPlaying()
|
/packages/services/Car/tests/carservice_test/src/com/android/car/ |
D | CarUxRestrictionsManagerServiceTest.java | 234 .setMode(UX_RESTRICTION_MODE_BASELINE)) in testLoadConfig_SupportsLegacyV1() 239 .setMode(UX_RESTRICTION_MODE_BASELINE)) in testLoadConfig_SupportsLegacyV1() 244 .setMode(UX_RESTRICTION_MODE_BASELINE)) in testLoadConfig_SupportsLegacyV1() 249 .setMode(UX_RESTRICTION_MODE_BASELINE)) in testLoadConfig_SupportsLegacyV1() 254 .setMode(UX_RESTRICTION_MODE_PASSENGER)) in testLoadConfig_SupportsLegacyV1() 259 .setMode(UX_RESTRICTION_MODE_PASSENGER)) in testLoadConfig_SupportsLegacyV1() 264 .setMode(UX_RESTRICTION_MODE_PASSENGER)) in testLoadConfig_SupportsLegacyV1() 269 .setMode(UX_RESTRICTION_MODE_PASSENGER)) in testLoadConfig_SupportsLegacyV1()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/ |
D | BatteryUtilsTest.java | 347 verify(mAppOpsManager).setMode(AppOpsManager.OP_RUN_IN_BACKGROUND, UID, LOW_SDK_PACKAGE, in testSetForceAppStandby_forcePreOApp_forceTwoRestrictions() 349 verify(mAppOpsManager).setMode(AppOpsManager.OP_RUN_ANY_IN_BACKGROUND, UID, LOW_SDK_PACKAGE, in testSetForceAppStandby_forcePreOApp_forceTwoRestrictions() 359 verify(mAppOpsManager, never()).setMode(AppOpsManager.OP_RUN_IN_BACKGROUND, UID, in testSetForceAppStandby_forceOApp_forceOneRestriction() 362 verify(mAppOpsManager).setMode(AppOpsManager.OP_RUN_ANY_IN_BACKGROUND, UID, in testSetForceAppStandby_forceOApp_forceOneRestriction() 475 verify(mAppOpsManager).setMode(AppOpsManager.OP_RUN_ANY_IN_BACKGROUND, UID, in clearForceAppStandby_appRestricted_clearAndReturnTrue() 484 verify(mAppOpsManager, never()).setMode(AppOpsManager.OP_RUN_ANY_IN_BACKGROUND, UID, in clearForceAppStandby_appInvalid_returnFalse() 495 verify(mAppOpsManager, never()).setMode(AppOpsManager.OP_RUN_ANY_IN_BACKGROUND, UID, in clearForceAppStandby_appUnrestricted_returnFalse()
|
/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() 373 mAudioManager.setMode(AudioManager.MODE_RINGTONE); in tryStartRinging() 461 mAudioManager.setMode(AudioManager.MODE_IN_CALL); in enter() 542 mAudioManager.setMode(AudioManager.MODE_IN_COMMUNICATION); in enter() 619 mAudioManager.setMode(mMostRecentMode); in enter()
|
/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/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/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/src/com/android/settings/development/ |
D | MockLocationAppPreferenceController.java | 116 mAppsOpsManager.setMode(AppOpsManager.OP_MOCK_LOCATION, ai.uid, in writeMockLocation() 154 mAppsOpsManager.setMode(AppOpsManager.OP_MOCK_LOCATION, ai.uid, in removeMockLocationForApp()
|
/packages/apps/Settings/src/com/android/settings/applications/ |
D | UsageAccessDetails.java | 127 mAppOpsManager.setMode(OP_GET_USAGE_STATS, uid, mPackageName, newAppOpMode); in setHasAccess() 131 mAppOpsManager.setMode(OP_LOADER_USAGE_STATS, uid, mPackageName, newAppOpMode); in setHasAccess()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/ |
D | MockLocationAppPreferenceControllerTest.java | 114 verify(mAppOpsManager).setMode(anyInt(), anyInt(), eq(newAppName), in onActivityResult_fooPrevAppBarNewApp_shouldRemoveFooAndSetBarAsMockLocationApp() 116 verify(mAppOpsManager).setMode(anyInt(), anyInt(), eq(prevAppName), in onActivityResult_fooPrevAppBarNewApp_shouldRemoveFooAndSetBarAsMockLocationApp()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/ |
D | AvailableMediaDeviceGroupControllerTest.java | 194 mAudioManager.setMode(AudioManager.MODE_IN_CALL); in setTitle_inCallState_showCallStateTitle() 203 mAudioManager.setMode(AudioManager.MODE_NORMAL); in setTitle_notInCallState_showMediaStateTitle()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/ |
D | CarAudioDeviceInfoTest.java | 58 AudioGain gainWithChannelMode = new GainBuilder().setMode(AudioGain.MODE_CHANNELS).build(); in constructor_requiresJointModeGain() 251 GainBuilder setMode(int mode) { in setMode() method in CarAudioDeviceInfoTest.GainBuilder
|
/packages/apps/Settings/src/com/android/settings/accessibility/ |
D | MagnificationModePreferenceController.java | 193 setMode(modeInfo.mMagnificationMode); in onMagnificationModeDialogPositiveButtonClicked() 199 private void setMode(int mode) { in setMode() method in MagnificationModePreferenceController
|
/packages/services/Car/tests/UxRestrictionsSample/src/com/google/android/car/uxr/sample/ |
D | MainActivity.java | 250 .setMode(UX_RESTRICTION_MODE_PASSENGER) in onConfirm() 259 .setMode(UX_RESTRICTION_MODE_PASSENGER) in onConfirm()
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/ |
D | IpSecServiceParameterizedTest.java | 421 ipSecConfig.setMode(IpSecTransform.MODE_TRANSPORT); in testCreateTransportModeTransformWithEncap() 447 ipSecConfig.setMode(IpSecTransform.MODE_TUNNEL); in testCreateTunnelModeTransformWithEncap() 888 ipSecConfig.setMode(IpSecTransform.MODE_TUNNEL); in verifyApplyTunnelModeTransformCommon() 928 ipSecConfig.setMode(IpSecTransform.MODE_TUNNEL); in testApplyTunnelModeTransformWithClosedSpi()
|