Home
last modified time | relevance | path

Searched refs:mUsage (Results 1 – 25 of 46) sorted by relevance

12

/frameworks/base/core/java/android/os/
DVibrationAttributes.java135 private final int mUsage; field in VibrationAttributes
141 mUsage = usage; in VibrationAttributes()
151 return mUsage & USAGE_CLASS_MASK; in getUsageClass()
159 return mUsage; in getUsage()
196 dest.writeInt(mUsage); in writeToParcel()
202 mUsage = src.readInt(); in VibrationAttributes()
227 return mUsage == rhs.mUsage && mFlags == rhs.mFlags; in equals()
232 return Objects.hash(mUsage, mFlags); in hashCode()
244 return usageToString(mUsage); in usageToString()
276 private int mUsage = USAGE_UNKNOWN; field in VibrationAttributes.Builder
[all …]
/frameworks/base/media/java/android/media/
DAudioAttributes.java506 private int mUsage = USAGE_UNKNOWN; field in AudioAttributes
534 if (isSystemUsage(mUsage)) { in getUsage()
537 return mUsage; in getUsage()
548 return mUsage; in getSystemUsage()
650 private int mUsage = USAGE_INVALID; field in AudioAttributes.Builder
681 mUsage = aa.mUsage; in Builder()
698 if (mUsage == USAGE_INVALID) { in build()
700 aa.mUsage = USAGE_UNKNOWN; in build()
702 aa.mUsage = mSystemUsage; in build()
706 aa.mUsage = mUsage; in build()
[all …]
/frameworks/av/media/libaaudio/src/core/
DAAudioStreamParameters.cpp46 mUsage = other.mUsage; in copyFrom()
122 switch (mUsage) { in validate()
142 ALOGD("usage not valid = %d", mUsage); in validate()
199 ALOGD("mUsage = %6d", mUsage); in dump()
DAAudioStreamParameters.h92 return mUsage; in getUsage()
96 mUsage = usage; in setUsage()
163 aaudio_usage_t mUsage = AAUDIO_UNSPECIFIED; variable
DAudioStream.h240 return mUsage; in getUsage()
548 mUsage = usage; in setUsage()
599 aaudio_usage_t mUsage = AAUDIO_UNSPECIFIED; variable
DAudioStream.cpp80 mUsage = builder.getUsage(); in open()
81 if (mUsage == AAUDIO_UNSPECIFIED) { in open()
82 mUsage = AAUDIO_USAGE_MEDIA; in open()
/frameworks/base/core/java/android/webkit/
DWebStorage.java67 private long mUsage = 0; field in WebStorage.Origin
74 mUsage = usage; in Origin()
109 return mUsage; in getUsage()
/frameworks/base/graphics/java/android/graphics/
DGraphicBuffer.java56 private final int mUsage; field in GraphicBuffer
95 mUsage = usage; in GraphicBuffer()
147 return mUsage; in getUsage()
286 dest.writeInt(mUsage); in writeToParcel()
/frameworks/av/media/libaaudio/examples/utils/
DAAudioArgsParser.h173 return mUsage; in getUsage()
177 mUsage = usage; in setUsage()
252 s_setUsage(builder, mUsage); in applyParameters()
253 } else if (mUsage != AAUDIO_UNSPECIFIED){ in applyParameters()
296 aaudio_usage_t mUsage = AAUDIO_UNSPECIFIED; variable
/frameworks/av/media/libaudioclient/
DAudioPolicy.cpp34 mValue.mUsage = usage; in AudioMixMatchCriterion()
46 mValue.mUsage = (audio_usage_t) parcel->readInt32(); in readFromParcel()
70 parcel->writeInt32(mValue.mUsage); in writeToParcel()
/frameworks/base/rs/java/android/renderscript/
DMesh.java197 int mUsage; field in Mesh.Builder
221 mUsage = usage; in Builder()
369 alloc = Allocation.createTyped(mRS, entry.t, mUsage); in create()
371 alloc = Allocation.createSized(mRS, entry.e, entry.size, mUsage); in create()
384 alloc = Allocation.createTyped(mRS, entry.t, mUsage); in create()
386 alloc = Allocation.createSized(mRS, entry.e, entry.size, mUsage); in create()
DAllocation.java63 int mUsage; field in Allocation
285 return mUsage; in getUsage()
406 mUsage = usage; in Allocation()
537 if ((mUsage & USAGE_SHARED) != 0) { in syncAll()
545 if ((mUsage & USAGE_SHARED) != 0) { in syncAll()
569 if ((mUsage & USAGE_IO_OUTPUT) == 0) { in ioSend()
588 if ((mUsage & USAGE_IO_INPUT) == 0) { in ioReceive()
2861 if (mByteBuffer == null || (mUsage & USAGE_IO_INPUT) != 0) { in getByteBuffer()
2867 if ((mUsage & USAGE_IO_INPUT) != 0) { in getByteBuffer()
2955 if ((mUsage & USAGE_IO_INPUT) == 0) { in setupBufferQueue()
[all …]
/frameworks/base/core/jni/
Dandroid_media_AudioAttributes.cpp44 jfieldID mUsage; // AudioAttributes.mUsage member
93 aa->usage = (audio_usage_t) env->GetIntField(jAudioAttributes, gAudioAttributesFields.mUsage); in nativeAudioAttributesFromJavaAudioAttributes()
185 gAudioAttributesFields.mUsage = GetFieldIDOrDie(env, audioAttributesClass, "mUsage", "I"); in register_android_media_AudioAttributes()
/frameworks/base/libs/hwui/renderthread/
DReliableSurface.cpp153 desc.usage = mUsage; in acquireFallbackBuffer()
245 rs->mUsage = va_arg(args, uint32_t); in hook_perform()
248 rs->mUsage = va_arg(args, uint64_t); in hook_perform()
DReliableSurface.h68 uint64_t mUsage = AHARDWAREBUFFER_USAGE_GPU_FRAMEBUFFER; variable
/frameworks/av/camera/ndk/ndk_vendor/tests/
DAImageReaderVendorTest.cpp352 mUsage(usage), in ImageReaderTestCase()
371 mWidth, mHeight, mFormat, mUsage, mMaxImages, &mImgReader); in initImageReader()
483 if ((outDesc.usage & mUsage) != mUsage) { in HandleImageAvailable()
485 outDesc.usage, mUsage); in HandleImageAvailable()
492 if (mUsage & AHARDWAREBUFFER_USAGE_CPU_READ_OFTEN) { in HandleImageAvailable()
524 uint64_t mUsage; member in __anon511359ea0111::ImageReaderTestCase
/frameworks/av/services/camera/libcameraservice/device3/
DCamera3Stream.cpp61 mUsage(0), in Camera3Stream()
120 return mUsage; in getUsage()
124 mUsage = usage; in setUsage()
262 mOldUsage = mUsage; in startConfiguration()
267 res = getEndpointUsage(&mUsage); in startConfiguration()
339 mOldUsage == mUsage && in finishConfiguration()
400 mUsage = mOldUsage; in cancelConfiguration()
/frameworks/av/media/codec2/sfplugin/
DInputSurfaceWrapper.h81 uint64_t mUsage; // consumer usage member
/frameworks/av/media/ndk/
DNdkImageReader.cpp269 mUsage(usage), in AImageReader()
285 mHalUsage = AHardwareBuffer_convertToGrallocUsageBits(mUsage); in init()
292 mWidth, mHeight, mFormat, mUsage, mMaxImages, getpid(), in init()
323 if (mUsage & AHARDWAREBUFFER_USAGE_PROTECTED_CONTENT) { in init()
487 *image = new AImage(this, mFormat, mUsage, buffer, buffer->mTimestamp, in acquireImageLocked()
490 *image = new AImage(this, mFormat, mUsage, buffer, buffer->mTimestamp, in acquireImageLocked()
DNdkImagePriv.h77 const uint64_t mUsage; // AHARDWAREBUFFER_USAGE_* flags. member
DNdkImage.cpp36 mReader(reader), mFormat(format), mUsage(usage), mBuffer(buffer), mLockedBuffer(nullptr), in AImage()
166 if ((mUsage & AHARDWAREBUFFER_USAGE_CPU_READ_OFTEN) == 0) { in lockImage()
168 __FUNCTION__, this, mUsage); in lockImage()
179 uint64_t grallocUsage = AHardwareBuffer_convertToGrallocUsageBits(mUsage); in lockImage()
/frameworks/rs/cpp/
DAllocation.cpp67 mUsage = usage; in Allocation()
170 if (!(mUsage & RS_ALLOCATION_USAGE_SHARED)) { in getPointer()
478 if ((mUsage & RS_ALLOCATION_USAGE_IO_OUTPUT) == 0) { in ioSendOutput()
488 if ((mUsage & RS_ALLOCATION_USAGE_IO_INPUT) == 0) { in ioGetInput()
500 if ((mUsage & RS_ALLOCATION_USAGE_IO_INPUT) == 0) { in getSurface()
511 if ((mUsage & RS_ALLOCATION_USAGE_IO_OUTPUT) == 0) { in setSurface()
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
DAudioPolicyMix.cpp58 UsageTypeConverter::toString(criterion.mValue.mUsage, ruleValue); in dump()
270 mix->mCriteria[j].mValue.mUsage); in mixMatch()
272 if (mix->mCriteria[j].mValue.mUsage == attributes.usage) { in mixMatch()
279 mix->mCriteria[j].mValue.mUsage); in mixMatch()
281 if (mix->mCriteria[j].mValue.mUsage == attributes.usage) { in mixMatch()
/frameworks/base/services/core/java/com/android/server/audio/
DAudioServiceEvents.java128 final int mUsage; field in AudioServiceEvents.ForceUseEvent
133 mUsage = usage; in ForceUseEvent()
141 .append(AudioSystem.forceUseUsageToString(mUsage)) in eventToString()
/frameworks/av/media/libaudioclient/include/media/
DAudioPolicy.h76 audio_usage_t mUsage; member

12