Home
last modified time | relevance | path

Searched refs:setMode (Results 1 – 25 of 67) 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()
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/
DAvailableMediaBluetoothDeviceUpdaterTest.java108 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()
DConnectedBluetoothDeviceUpdaterTest.java107 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/
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.java176 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 …]
DMediaOutputPreferenceControllerTest.java218 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/
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.java142 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()
DMediaDeviceUpdateWorkerTest.java189 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/
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()
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/
DCarUxRestrictionsManagerServiceTest.java234 .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/
DBatteryUtilsTest.java347 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/
DCallAudioModeStateMachine.java232 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/
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/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/src/com/android/settings/development/
DMockLocationAppPreferenceController.java116 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/
DUsageAccessDetails.java127 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/
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/tests/robotests/src/com/android/settings/connecteddevice/
DAvailableMediaDeviceGroupControllerTest.java194 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/
DCarAudioDeviceInfoTest.java58 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/
DMagnificationModePreferenceController.java193 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/
DMainActivity.java250 .setMode(UX_RESTRICTION_MODE_PASSENGER) in onConfirm()
259 .setMode(UX_RESTRICTION_MODE_PASSENGER) in onConfirm()
/packages/modules/Connectivity/tests/unit/java/com/android/server/
DIpSecServiceParameterizedTest.java421 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()

123