Home
last modified time | relevance | path

Searched refs:getUsage (Results 1 – 25 of 124) sorted by relevance

12345

/frameworks/native/libs/renderengine/
DRenderEngine.cpp89 LOG_ALWAYS_FATAL_IF(!(buffer->getUsage() & GraphicBuffer::USAGE_HW_TEXTURE), in validateInputBufferUsage()
94 LOG_ALWAYS_FATAL_IF(!(buffer->getUsage() & GraphicBuffer::USAGE_HW_RENDER), in validateOutputBufferUsage()
112 (buffer && (buffer->getUsage() & GRALLOC_USAGE_PROTECTED)) || in updateProtectedContext()
115 return buffer && (buffer->getUsage() & GRALLOC_USAGE_PROTECTED); in updateProtectedContext()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DNotificationChannelExtractorTest.java172 assertThat(r.getAudioAttributes().getUsage()).isEqualTo(USAGE_NOTIFICATION_RINGTONE); in testAudioAttributes_callStyleCanUseCallUsage()
192 assertThat(r.getAudioAttributes().getUsage()).isEqualTo(USAGE_NOTIFICATION); in testAudioAttributes_nonCallStyleCannotUseCallUsage()
195 assertThat(channel.getAudioAttributes().getUsage()).isEqualTo(USAGE_NOTIFICATION_RINGTONE); in testAudioAttributes_nonCallStyleCannotUseCallUsage()
213 assertThat(r.getAudioAttributes().getUsage()).isEqualTo(USAGE_ALARM); in testAudioAttributes_alarmCategoryCanUseAlarmUsage()
233 assertThat(r.getAudioAttributes().getUsage()).isEqualTo(USAGE_NOTIFICATION); in testAudioAttributes_nonAlarmCategoryCannotUseAlarmUsage()
236 assertThat(channel.getAudioAttributes().getUsage()).isEqualTo(USAGE_ALARM); in testAudioAttributes_nonAlarmCategoryCannotUseAlarmUsage()
254 assertThat(r.getAudioAttributes().getUsage()).isEqualTo(USAGE_NOTIFICATION); in testAudioAttributes_noMediaUsage()
257 assertThat(channel.getAudioAttributes().getUsage()).isEqualTo(USAGE_MEDIA); in testAudioAttributes_noMediaUsage()
275 assertThat(r.getAudioAttributes().getUsage()).isEqualTo(USAGE_NOTIFICATION); in testAudioAttributes_noUnknownUsage()
278 assertThat(channel.getAudioAttributes().getUsage()).isEqualTo(USAGE_UNKNOWN); in testAudioAttributes_noUnknownUsage()
/frameworks/base/services/core/java/com/android/server/notification/
DNotificationChannelExtractor.java85 && attributes.getUsage() == AudioAttributes.USAGE_NOTIFICATION_RINGTONE) { in process()
90 && attributes.getUsage() == AudioAttributes.USAGE_ALARM) { in process()
95 && (attributes.getUsage() == AudioAttributes.USAGE_UNKNOWN in process()
96 || attributes.getUsage() == AudioAttributes.USAGE_MEDIA)) { in process()
/frameworks/native/libs/renderengine/include/renderengine/impl/
DExternalTexture.h50 uint64_t getUsage() const override { return getBuffer()->getUsage(); } in getUsage() function
/frameworks/ex/camera2/extensions/stub/src/main/java/androidx/camera/extensions/impl/advanced/
DImageReaderOutputConfigImpl.java45 long getUsage(); in getUsage() method
DOutputSurfaceImpl.java52 long getUsage(); in getUsage() method
/frameworks/ex/camera2/extensions/advancedSample/src/java/androidx/camera/extensions/impl/advanced/
DImageReaderOutputConfigImpl.java45 long getUsage(); in getUsage() method
DOutputSurfaceImpl.java52 long getUsage(); in getUsage() method
/frameworks/base/media/java/android/media/
DAudioPlaybackCaptureConfiguration.java96 criterion -> criterion.getAudioAttributes().getUsage()); in getMatchingUsages()
109 criterion -> criterion.getAudioAttributes().getUsage()); in getExcludeUsages()
/frameworks/base/core/java/android/os/
DVibrationAttributes.java287 public int getUsage() { in getUsage() method in VibrationAttributes
510 mOriginalAudioUsage = audio.getUsage(); in setUsage()
511 switch (audio.getUsage()) { in setUsage()
/frameworks/base/services/core/java/com/android/server/vibrator/
DHalVibration.java131 int vibrationUsage = callerInfo.attrs.getUsage(); in scaleEffects()
194 callerInfo.uid, vibrationType, callerInfo.attrs.getUsage(), mStatus, in getStatsInfo()
DVibrationStats.java175 mEndedByUsage = endedBy.attrs.getUsage(); in reportEnded()
191 mInterruptedUsage = callerInfo.attrs.getUsage(); in reportInterruptedAnotherVibration()
DVibratorManagerService.java791 effect = mVibrationScaler.scale(effect, vib.callerInfo.attrs.getUsage()); in updateAlwaysOnLocked()
883 vib.callerInfo.attrs.getUsage())) { in createVibrationStepConductor()
886 vib.callerInfo.uid, vib.callerInfo.attrs.getUsage(), in createVibrationStepConductor()
1082 int usage = vibration.callerInfo.attrs.getUsage(); in getVibrationImportance()
1160 if (attrs.getUsage() == VibrationAttributes.USAGE_UNKNOWN) { in shouldCancelVibration()
1166 return (usageFilter & attrs.getUsage()) == attrs.getUsage(); in shouldCancelVibration()
1289 int usage = attrs.getUsage(); in fixupVibrationAttributes()
1303 if ((usage == attrs.getUsage()) && (flags == attrs.getFlags())) { in fixupVibrationAttributes()
1694 externalVibration.getVibrationAttributes().getUsage(), mStatus, stats, in getStatsInfo()
1703 int usage = externalVibration.getVibrationAttributes().getUsage(); in isRepeating()
[all …]
/frameworks/base/core/tests/coretests/src/android/os/
DVibrationAttributesTest.java36 assertEquals(VibrationAttributes.USAGE_ALARM, attr.getUsage()); in testSimple()
/frameworks/native/libs/renderengine/include/renderengine/
DExternalTexture.h44 virtual uint64_t getUsage() const = 0;
/frameworks/av/services/oboeservice/
DAAudioServiceEndpoint.cpp66 result << " Usage: " << getUsage() << "\n"; in dump()
192 ? AAudioConvert_usageToInternal(params->getUsage()) in getAudioAttributesFrom()
/frameworks/base/core/java/android/webkit/
DWebStorage.java101 public long getUsage() { in getUsage() method in WebStorage.Origin
/frameworks/native/libs/gui/include/gui/fake/
DBufferData.h41 uint64_t getUsage() const override { return mOutUsage; } in getUsage() function
/frameworks/native/libs/renderengine/include/renderengine/mock/
DFakeExternalTexture.h47 uint64_t getUsage() const override { return mUsage; } in getUsage() function
/frameworks/base/libs/hostgraphics/ui/
DGraphicBuffer.h52 uint64_t getUsage() const { in getUsage() function
/frameworks/native/services/surfaceflinger/
DScreenCaptureRenderSurface.h54 bool isProtected() const override { return mBuffer->getUsage() & GRALLOC_USAGE_PROTECTED; } in isProtected()
/frameworks/base/services/tests/vibrator/src/com/android/server/vibrator/
DHapticFeedbackVibrationProviderTest.java296 assertThat(attrs.getUsage()).isEqualTo(VibrationAttributes.USAGE_COMMUNICATION_REQUEST); in testVibrationAttribute_biometricConstants_returnsCommunicationRequestUsage()
356 .that(attrs.getUsage()).isEqualTo(USAGE_TOUCH); in testVibrationAttribute_keyboardCategoryOff_isIme_notUseKeyboardCategory()
371 .that(attrs.getUsage()).isEqualTo(USAGE_TOUCH); in testVibrationAttribute_keyboardCategoryOn_notIme_notUseKeyboardCategory()
386 .that(attrs.getUsage()).isEqualTo(USAGE_TOUCH); in testVibrationAttribute_keyboardCategoryOn_isIme_useKeyboardCategory()
/frameworks/av/media/codec2/hal/client/
Doutput.cpp128 << ", usage 0x" << std::setw(16) << graphicBuffer->getUsage() in attachToBufferQueue()
281 if ((mBuffers[i]->getUsage() & consumerUsage) != consumerUsage) { in configure()
286 mBuffers[i]->getUsage() | consumerUsage, in configure()
291 __func__, mBuffers[i]->getUsage(), consumerUsage); in configure()
/frameworks/av/media/libaaudio/src/legacy/
DAudioStreamTrack.cpp81 bool usageBenefitsFromRaw = getUsage() == AAUDIO_USAGE_GAME || in open()
82 getUsage() == AAUDIO_USAGE_MEDIA; in open()
142 AAudioConvert_usageToInternal(builder.getUsage()); in open()
/frameworks/native/libs/gui/include/gui/
DLayerState.h99 virtual uint64_t getUsage() const { return buffer->getUsage(); } in getUsage() function

12345