Home
last modified time | relevance | path

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

1234

/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/
DConnectedBluetoothDeviceUpdaterTest.java124 mAudioManager.setMode(AudioManager.MODE_NORMAL); in onAudioModeChanged_hfpDeviceConnected_notInCall_addPreference()
136 mAudioManager.setMode(AudioManager.MODE_IN_CALL); in onAudioModeChanged_hfpDeviceConnected_inCall_removePreference()
148 mAudioManager.setMode(AudioManager.MODE_NORMAL); in onAudioModeChanged_a2dpDeviceConnected_notInCall_removePreference()
160 mAudioManager.setMode(AudioManager.MODE_IN_CALL); in onAudioModeChanged_a2dpDeviceConnected_inCall_addPreference()
172 mAudioManager.setMode(AudioManager.MODE_IN_CALL); in onProfileConnectionStateChanged_a2dpDeviceConnected_inCall_addPreference()
185 mAudioManager.setMode(AudioManager.MODE_IN_CALL); in onProfileConnectionStateChanged_deviceIsNotInList_inCall_invokesRemovePreference()
199 mAudioManager.setMode(AudioManager.MODE_NORMAL); in onProfileConnectionStateChanged_a2dpDeviceConnected_notInCall_removePreference()
212 mAudioManager.setMode(AudioManager.MODE_IN_CALL); in onProfileConnectionStateChanged_hfpDeviceConnected_inCall_removePreference()
225 mAudioManager.setMode(AudioManager.MODE_NORMAL); in onProfileConnectionStateChanged_hfpDeviceConnected_notInCall_addPreference()
239 mAudioManager.setMode(AudioManager.MODE_IN_CALL); in onProfileConnectionStateChanged_ashaHearingAidConnected_inCall_removePreference()
[all …]
DAvailableMediaBluetoothDeviceUpdaterTest.java141 mAudioManager.setMode(AudioManager.MODE_IN_CALL); in onAudioModeChanged_hfpDeviceConnected_inCall_addPreference()
153 mAudioManager.setMode(AudioManager.MODE_NORMAL); in onAudioModeChanged_hfpDeviceConnected_notInCall_removePreference()
165 mAudioManager.setMode(AudioManager.MODE_IN_CALL); in onAudioModeChanged_a2dpDeviceConnected_inCall_removePreference()
177 mAudioManager.setMode(AudioManager.MODE_NORMAL); in onAudioModeChanged_a2dpDeviceConnected_notInCall_addPreference()
189 mAudioManager.setMode(AudioManager.MODE_NORMAL); in onProfileConnectionStateChanged_a2dpDeviceConnected_notInCall_addPreference()
202 mAudioManager.setMode(AudioManager.MODE_IN_CALL); in onProfileConnectionStateChanged_a2dpDeviceConnected_inCall_removePreference()
215 mAudioManager.setMode(AudioManager.MODE_NORMAL); in onProfileConnectionStateChanged_hfpDeviceConnected_notInCall_removePreference()
228 mAudioManager.setMode(AudioManager.MODE_IN_CALL); in onProfileConnectionStateChanged_hfpDeviceConnected_inCall_addPreference()
241 mAudioManager.setMode(AudioManager.MODE_NORMAL); in onProfileConnectionStateChanged_ashaHearingAidConnected_notInCall_addPreference()
256 mAudioManager.setMode(AudioManager.MODE_IN_CALL); in onProfileConnectionStateChanged_ashaHearingAidConnected_inCall_addPreference()
[all …]
/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/
DCarUxRestrictionsConfigurationTest.java191 .setMode(UX_RESTRICTION_MODE_PASSENGER) in testBuilderValidation_PassengerModeCanSpecifySubsetOfSpeedRange()
420 .setMode(UX_RESTRICTION_MODE_PASSENGER)) in testJsonSerialization_UxRestrictionMode()
425 .setMode(UX_RESTRICTION_MODE_BASELINE)) in testJsonSerialization_UxRestrictionMode()
455 .setMode(UX_RESTRICTION_MODE_BASELINE)) in testJsonSerialization_ReadsV1()
459 .setMode(UX_RESTRICTION_MODE_BASELINE)) in testJsonSerialization_ReadsV1()
463 .setMode(UX_RESTRICTION_MODE_BASELINE)) in testJsonSerialization_ReadsV1()
467 .setMode(UX_RESTRICTION_MODE_BASELINE)) in testJsonSerialization_ReadsV1()
471 .setMode(UX_RESTRICTION_MODE_PASSENGER)) in testJsonSerialization_ReadsV1()
475 .setMode(UX_RESTRICTION_MODE_PASSENGER)) in testJsonSerialization_ReadsV1()
479 .setMode(UX_RESTRICTION_MODE_PASSENGER)) in testJsonSerialization_ReadsV1()
[all …]
/packages/modules/Connectivity/tests/cts/net/src/android/net/rtp/cts/
DAudioGroupTest.java50 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/
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.java203 mAudioManager.setMode(AudioManager.MODE_IN_COMMUNICATION); in setActiveBluetoothDevice_btDeviceWithHisyncId_shouldSetBtDeviceActive()
218 mAudioManager.setMode(AudioManager.MODE_IN_COMMUNICATION); in setActiveBluetoothDevice_btDeviceWithoutHisyncId_shouldSetBtDeviceActive()
233 mAudioManager.setMode(AudioManager.MODE_IN_COMMUNICATION); in setActiveBluetoothDevice_setNull_shouldSetNullToBothProfiles()
247 mAudioManager.setMode(AudioManager.MODE_NORMAL); in setActiveBluetoothDevice_inNormalMode_shouldNotSetActiveDeviceToHeadsetProfile()
275 mAudioManager.setMode(AudioManager.MODE_IN_COMMUNICATION); in updateState_oneHeadsetsAvailableAndActivated_shouldSetDeviceName()
296 mAudioManager.setMode(AudioManager.MODE_IN_COMMUNICATION); in updateState_moreThanOneHfpBtDevicesAreAvailable_shouldSetActivatedDeviceName()
318 mAudioManager.setMode(AudioManager.MODE_IN_COMMUNICATION); in updateState_withAvailableDevicesWiredHeadsetActivated_shouldSetDefaultSummary()
338 mAudioManager.setMode(AudioManager.MODE_IN_COMMUNICATION); in updateState_noAvailableHeadsetBtDevices_shouldSetDefaultSummary()
356 mAudioManager.setMode(AudioManager.MODE_IN_COMMUNICATION); in updateState_oneHapBtDeviceAreAvailable_shouldSetActivatedDeviceName()
380 mAudioManager.setMode(AudioManager.MODE_IN_COMMUNICATION); in updateState_moreThanOneHapBtDevicesAreAvailable_shouldSetActivatedDeviceName()
[all …]
DMediaOutputPreferenceControllerTest.java259 mAudioManager.setMode(AudioManager.MODE_NORMAL); in audioSharingStart_changeSummary()
277 mAudioManager.setMode(AudioManager.MODE_NORMAL); in updateState_withConnectedBtDevice_withoutActiveBtDevice_setDefaultSummary()
297 mAudioManager.setMode(AudioManager.MODE_NORMAL); in updateState_withActiveBtDevice_setActivatedDeviceName()
316 mAudioManager.setMode(AudioManager.MODE_NORMAL); in updateState_withActiveHADevice_setActivatedDeviceName()
331 mAudioManager.setMode(AudioManager.MODE_NORMAL); in updateState_withActiveLeAudioDevice_setActivatedDeviceName()
468 mAudioManager.setMode(AudioManager.MODE_NORMAL); in updateState_notInCall_preferenceVisible()
482 mAudioManager.setMode(AudioManager.MODE_IN_COMMUNICATION); in updateState_inCall_preferenceInvisible()
/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/apps/Settings/tests/robotests/src/com/android/settings/media/
DMediaOutputIndicatorSliceTest.java149 mAudioManager.setMode(AudioManager.MODE_NORMAL); in getSlice_withConnectedDevice_verifyMetadata()
166 mAudioManager.setMode(AudioManager.MODE_NORMAL); in getSlice_noConnectedDevice_returnErrorSlice()
181 mAudioManager.setMode(AudioManager.MODE_IN_COMMUNICATION); in getSlice_audioModeIsInCommunication_returnErrorSlice()
196 mAudioManager.setMode(AudioManager.MODE_RINGTONE); in getSlice_audioModeIsRingtone_returnErrorSlice()
211 mAudioManager.setMode(AudioManager.MODE_IN_CALL); in getSlice_audioModeIsInCall_returnErrorSlice()
293 mAudioManager.setMode(AudioManager.MODE_NORMAL); in isVisible_allConditionMatched_returnTrue()
306 mAudioManager.setMode(AudioManager.MODE_NORMAL); in isVisible_noActiveSession_returnFalse()
319 mAudioManager.setMode(AudioManager.MODE_NORMAL); in isVisible_noActiveSession_returnTrue()
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DCallAudioModeStateMachineTest.java111 verify(mAudioManager, never()).setMode(anyInt()); in testNoFocusWhenRingerSilenced()
145 verify(mAudioManager).setMode(eq(AudioManager.MODE_COMMUNICATION_REDIRECT)); in testSwitchToStreamingMode()
207 verify(mAudioManager, never()).setMode(anyInt()); in testNoRingWhenDeviceIsAtEar()
237 verify(mAudioManager, never()).setMode(anyInt()); in testRegainFocusWhenHfpIsConnectedSilenced()
251 verify(mAudioManager).setMode(AudioManager.MODE_RINGTONE); in testRegainFocusWhenHfpIsConnectedSilenced()
282 verify(mAudioManager).setMode(AudioManager.MODE_RINGTONE); in testDoNotRingTwiceWhenHfpConnected()
320 verify(mAudioManager).setMode(AudioManager.MODE_RINGTONE); in testStartRingingAfterHfpConnectedIfNotAlreadyPlaying()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/apps/specialaccess/
DAllFilesAccess.java65 .forEach(packageEntry -> setMode(entry, (Boolean) grant)); in bindPreference()
96 private void setMode(ApplicationsState.AppEntry entry, boolean grant) { in setMode() method in AllFilesAccess
98 .setMode(getAppOpsOpCode(), entry.info.uid, entry.info.packageName, in setMode()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DCarUxRestrictionsManagerServiceTest.java242 .setMode(UX_RESTRICTION_MODE_BASELINE)) in testLoadConfig_SupportsLegacyV1()
247 .setMode(UX_RESTRICTION_MODE_BASELINE)) in testLoadConfig_SupportsLegacyV1()
252 .setMode(UX_RESTRICTION_MODE_BASELINE)) in testLoadConfig_SupportsLegacyV1()
257 .setMode(UX_RESTRICTION_MODE_BASELINE)) in testLoadConfig_SupportsLegacyV1()
262 .setMode(UX_RESTRICTION_MODE_PASSENGER)) in testLoadConfig_SupportsLegacyV1()
267 .setMode(UX_RESTRICTION_MODE_PASSENGER)) in testLoadConfig_SupportsLegacyV1()
272 .setMode(UX_RESTRICTION_MODE_PASSENGER)) in testLoadConfig_SupportsLegacyV1()
277 .setMode(UX_RESTRICTION_MODE_PASSENGER)) in testLoadConfig_SupportsLegacyV1()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DBatteryUtilsTest.java314 .setMode( in testSetForceAppStandby_forcePreOApp_forceTwoRestrictions()
320 .setMode( in testSetForceAppStandby_forcePreOApp_forceTwoRestrictions()
334 .setMode( in testSetForceAppStandby_forceOApp_forceOneRestriction()
341 .setMode( in testSetForceAppStandby_forceOApp_forceOneRestriction()
393 .setMode( in clearForceAppStandby_appRestricted_clearAndReturnTrue()
406 .setMode( in clearForceAppStandby_appInvalid_returnFalse()
422 .setMode( in clearForceAppStandby_appUnrestricted_returnFalse()
/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/services/Telecomm/src/com/android/server/telecom/
DCallAudioModeStateMachine.java291 mAudioManager.setMode(AudioManager.MODE_NORMAL); in enter()
297 mAudioManager.setMode(AudioManager.MODE_NORMAL); in enter()
380 mAudioManager.setMode(NEW_AUDIO_MODE_FOR_AUDIO_PROCESSING); in enter()
477 mAudioManager.setMode(AudioManager.MODE_RINGTONE); in tryStartRinging()
577 mAudioManager.setMode(AudioManager.MODE_IN_CALL); in enter()
665 mAudioManager.setMode(AudioManager.MODE_IN_COMMUNICATION); in enter()
743 mAudioManager.setMode(AudioManager.MODE_COMMUNICATION_REDIRECT); in enter()
825 mAudioManager.setMode(mMostRecentMode); in enter()
/packages/modules/Permission/tests/cts/permission/src/android/permission/cts/
DNoAudioPermissionTest.java72 mAudioManager.setMode(AudioManager.MODE_NORMAL); in testSetMicrophoneMute()
75 mAudioManager.setMode(AudioManager.MODE_RINGTONE); in testSetMicrophoneMute()
/packages/apps/TvSettings/unbundle/java/com/android/tv/settings/unbundle/sdklib/
DAppOpsManagerCompat.java61 public void setMode(int code, int uid, String packageName, @AppOpsManager.Mode int mode) { in setMode() method in AppOpsManagerCompat
62 mAppOpsManager.setMode(code, uid, packageName, mode); in setMode()
/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/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/robotests/src/com/android/settings/development/
DMockLocationAppPreferenceControllerTest.java114 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/src/com/android/settings/development/
DMockLocationAppPreferenceController.java138 mAppsOpsManager.setMode(AppOpsManager.OP_MOCK_LOCATION, ai.uid, in writeMockLocation()
176 mAppsOpsManager.setMode(AppOpsManager.OP_MOCK_LOCATION, ai.uid, in removeMockLocationForApp()
/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/
DAvailableMediaDeviceGroupControllerTest.java309 mAudioManager.setMode(AudioManager.MODE_IN_CALL); in setTitle_inCallState_showCallStateTitle()
322 mAudioManager.setMode(AudioManager.MODE_NORMAL); in setTitle_notInCallState_notInAudioSharing_showMediaStateTitle()
335 mAudioManager.setMode(AudioManager.MODE_NORMAL); in setTitle_notInCallState_audioSharingFlagOff_showMediaStateTitle()
348 mAudioManager.setMode(AudioManager.MODE_NORMAL); in setTitle_notInCallState_inAudioSharing_showAudioSharingMediaStateTitle()
/packages/apps/Settings/src/com/android/settings/applications/
DUsageAccessDetails.java138 mAppOpsManager.setMode(OP_GET_USAGE_STATS, uid, mPackageName, newAppOpMode); in setHasAccess()
142 mAppOpsManager.setMode(OP_LOADER_USAGE_STATS, uid, mPackageName, newAppOpMode); in setHasAccess()
/packages/services/Car/car-builtin-lib/src/android/car/builtin/app/
DAppOpsManagerHelper.java48 appOpsManager.setMode(AppOpsManager.OP_TURN_SCREEN_ON, uid, packageName, mode); in setTurnScreenOnAllowed()
/packages/services/Car/service/src/com/android/car/power/
DScreenOffHandler.java259 info.setMode(DISPLAY_POWER_MODE_ALWAYS_ON); in initializeDefaultSettings()
264 info.setMode(DISPLAY_POWER_MODE_ALWAYS_ON); in initializeDefaultSettings()
291 info.setMode(mode); in updateSettingsLocked()
593 private void setMode(@DisplayPowerMode int mode) { in setMode() method in ScreenOffHandler.DisplayPowerInfo

1234