Home
last modified time | relevance | path

Searched refs:setUsage (Results 1 – 25 of 99) sorted by relevance

1234

/frameworks/native/services/surfaceflinger/CompositionEngine/tests/
DRenderSurfaceTest.cpp91 EXPECT_CALL(*mNativeWindow, setUsage(GRALLOC_USAGE_HW_RENDER | GRALLOC_USAGE_HW_TEXTURE)) in TEST_F()
148 setUsage(GRALLOC_USAGE_HW_RENDER | GRALLOC_USAGE_HW_TEXTURE | in TEST_F()
158 EXPECT_CALL(*mNativeWindow, setUsage(GRALLOC_USAGE_HW_RENDER | GRALLOC_USAGE_HW_TEXTURE)) in TEST_F()
168 setUsage(GRALLOC_USAGE_HW_RENDER | GRALLOC_USAGE_HW_TEXTURE | in TEST_F()
171 EXPECT_CALL(*mNativeWindow, setUsage(GRALLOC_USAGE_HW_RENDER | GRALLOC_USAGE_HW_TEXTURE)) in TEST_F()
183 setUsage(GRALLOC_USAGE_HW_RENDER | GRALLOC_USAGE_HW_TEXTURE | in TEST_F()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DNotificationChannelExtractorTest.java158 .setUsage(USAGE_NOTIFICATION_RINGTONE) in testAudioAttributes_callStyleCanUseCallUsage()
182 .setUsage(USAGE_NOTIFICATION_RINGTONE) in testAudioAttributes_nonCallStyleCannotUseCallUsage()
203 .setUsage(USAGE_ALARM) in testAudioAttributes_alarmCategoryCanUseAlarmUsage()
223 .setUsage(USAGE_ALARM) in testAudioAttributes_nonAlarmCategoryCannotUseAlarmUsage()
244 .setUsage(USAGE_MEDIA) in testAudioAttributes_noMediaUsage()
265 .setUsage(USAGE_UNKNOWN) in testAudioAttributes_noUnknownUsage()
/frameworks/base/core/java/android/os/
DVibrationAttributes.java259 return new VibrationAttributes.Builder().setUsage(usage).build(); in createForUsage()
505 setUsage(audio); in Builder()
509 private void setUsage(@NonNull AudioAttributes audio) { in setUsage() method in VibrationAttributes.Builder
573 public @NonNull Builder setUsage(@Usage int usage) { in setUsage() method in VibrationAttributes.Builder
/frameworks/base/core/jni/
Dandroid_media_AudioAttributes.cpp57 jmethodID setUsage; member
123 env->CallObjectMethod(jAttributeBuilder.get(), gAudioAttributesBuilderMethods.setUsage, in nativeAudioAttributesToJavaAudioAttributes()
196 gAudioAttributesBuilderMethods.setUsage = GetMethodIDOrDie( in register_android_media_AudioAttributes()
/frameworks/base/services/tests/servicestests/src/com/android/server/audio/
DFadeConfigurationsTest.java83 new AudioAttributes.Builder().setUsage(USAGE_MEDIA).build();
85 new AudioAttributes.Builder().setUsage(USAGE_GAME).build();
87 new AudioAttributes.Builder().setUsage(USAGE_ASSISTANT).build();
282 return new AudioAttributes.Builder().setUsage(usage).build(); in createGenericAudioAttributesForUsage()
DFadeOutManagerTest.java58 new AudioAttributes.Builder().setUsage(USAGE_MEDIA).build();
60 new AudioAttributes.Builder().setUsage(USAGE_GAME).build();
/frameworks/native/services/surfaceflinger/CompositionEngine/mock/
DNativeWindow.cpp67 result = static_cast<NativeWindow*>(window)->setUsage(usage); in forwardPerform()
72 result = static_cast<NativeWindow*>(window)->setUsage(usage); in forwardPerform()
/frameworks/base/media/java/android/media/
DAudioPlaybackCaptureConfiguration.java182 mAudioMixingRuleBuilder.addRule(new AudioAttributes.Builder().setUsage(usage).build(), in addMatchingUsage()
217 .setUsage(usage) in excludeUsage()
DHwAudioSource.java260 .setUsage(AudioAttributes.USAGE_MEDIA) in build()
/frameworks/native/services/surfaceflinger/CompositionEngine/include/compositionengine/mock/
DNativeWindow.h48 MOCK_METHOD1(setUsage, int(uint64_t));
/frameworks/base/core/tests/coretests/src/android/os/
DVibrationAttributesTest.java32 .setUsage(VibrationAttributes.USAGE_ALARM) in testSimple()
/frameworks/base/services/core/java/com/android/server/media/
DAudioRoutingUtils.java30 new AudioAttributes.Builder().setUsage(AudioAttributes.USAGE_MEDIA).build();
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/
DNotificationChannels.java65 .setUsage(AudioAttributes.USAGE_NOTIFICATION_EVENT) in createAll()
131 new AudioAttributes.Builder().setUsage(AudioAttributes.USAGE_NOTIFICATION).build()); in createScreenshotChannel()
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/
DScreenshotSoundProvider.kt51 .setUsage(AudioAttributes.USAGE_ASSISTANCE_SONIFICATION) in getScreenshotSound()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/util/
DNotificationChannelController.java71 new AudioAttributes.Builder().setUsage(AudioAttributes.USAGE_NOTIFICATION).build()); in createAll()
157 new AudioAttributes.Builder().setUsage(AudioAttributes.USAGE_NOTIFICATION).build()); in migrateVoicemailNotificationSettings()
/frameworks/base/core/tests/vibrator/src/android/os/
DExternalVibrationTest.java36 .setUsage(AudioAttributes.USAGE_ASSISTANCE_SONIFICATION) in testSerialization()
DVibratorTest.java216 VibrationAttributes attributes = new VibrationAttributes.Builder().setUsage( in vibrate_withVibrationAttributes_usesGivenAttributes()
227 AudioAttributes audioAttributes = new AudioAttributes.Builder().setUsage( in vibrate_withAudioAttributes_createsVibrationAttributesWithSameUsage()
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/
DUdfpsHapticsSimulator.kt41 .setUsage(AudioAttributes.USAGE_ASSISTANCE_SONIFICATION)
/frameworks/base/services/tests/vibrator/src/com/android/server/vibrator/
DVibratorManagerServiceTest.java139 new AudioAttributes.Builder().setUsage(AudioAttributes.USAGE_ALARM).build();
141 new AudioAttributes.Builder().setUsage(AudioAttributes.USAGE_NOTIFICATION).build();
143 new VibrationAttributes.Builder().setUsage(VibrationAttributes.USAGE_ALARM).build();
145 new VibrationAttributes.Builder().setUsage(VibrationAttributes.USAGE_TOUCH).build();
147 new VibrationAttributes.Builder().setUsage(
150 new VibrationAttributes.Builder().setUsage(
153 new VibrationAttributes.Builder().setUsage(VibrationAttributes.USAGE_UNKNOWN).build();
773 .setUsage(AudioAttributes.USAGE_ASSISTANCE_ACCESSIBILITY).build(); in vibrate_withAudioAttributes_usesOriginalAudioUsageInAppOpsManager()
792 new VibrationAttributes.Builder().setUsage( in vibrate_withVibrationAttributes_usesCorrespondingAudioUsageInAppOpsManager()
795 new VibrationAttributes.Builder().setUsage( in vibrate_withVibrationAttributes_usesCorrespondingAudioUsageInAppOpsManager()
[all …]
DVibrationSettingsTest.java613 .setUsage(USAGE_TOUCH) in shouldIgnoreVibration_withKeyboardSettingsOff_shouldIgnoreKeyboardVibration()
622 .setUsage(USAGE_TOUCH) in shouldIgnoreVibration_withKeyboardSettingsOff_shouldIgnoreKeyboardVibration()
641 .setUsage(USAGE_TOUCH) in shouldIgnoreVibration_withKeyboardSettingsOn_shouldNotIgnoreKeyboardVibration()
659 .setUsage(USAGE_TOUCH) in shouldIgnoreVibration_noFixedKeyboardAmplitude_ignoresKeyboardTouchVibration()
943 new VibrationAttributes.Builder().setUsage(usage).setFlags(flags).build(), UID, in assertVibrationNotIgnoredForUsageAndFlagsAndDevice()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/template/
DAudioTestHarnessTemplateAndroidTest.java93 .setUsage(AudioAttributes.USAGE_MEDIA) in playAudioFile()
/frameworks/base/core/java/com/android/internal/notification/
DSystemNotificationChannels.java183 .setUsage(AudioAttributes.USAGE_NOTIFICATION_EVENT) in createAll()
192 .setUsage(AudioAttributes.USAGE_NOTIFICATION) in createAll()
/frameworks/base/services/core/java/com/android/server/notification/
DNotificationChannelExtractor.java104 .setUsage(USAGE_NOTIFICATION) in process()
/frameworks/base/tests/permission/src/com/android/framework/permission/tests/
DVibratorManagerServicePermissionTest.java58 .setUsage(VibrationAttributes.USAGE_ALARM)
/frameworks/base/media/tests/AudioPolicyTest/src/com/android/audiopolicytest/
DAudioPolicyDeathTestActivity.java54 .setUsage(AudioAttributes.USAGE_MEDIA).build(); in onCreate()

1234