/frameworks/av/media/libaudioclient/ |
D | AudioAttributes.cpp | 30 mAttributes.content_type = static_cast<audio_content_type_t>(parcel->readInt32()); in readFromParcel() 31 mAttributes.usage = static_cast<audio_usage_t>(parcel->readInt32()); in readFromParcel() 32 mAttributes.source = static_cast<audio_source_t>(parcel->readInt32()); in readFromParcel() 33 mAttributes.flags = static_cast<audio_flags_mask_t>(parcel->readInt32()); in readFromParcel() 41 std::strncpy(mAttributes.tags, tags.c_str(), AUDIO_ATTRIBUTES_TAGS_MAX_SIZE - 1); in readFromParcel() 43 strcpy(mAttributes.tags, ""); in readFromParcel() 52 parcel->writeInt32(static_cast<int32_t>(mAttributes.content_type)); in writeToParcel() 53 parcel->writeInt32(static_cast<int32_t>(mAttributes.usage)); in writeToParcel() 54 parcel->writeInt32(static_cast<int32_t>(mAttributes.source)); in writeToParcel() 55 parcel->writeInt32(static_cast<int32_t>(mAttributes.flags)); in writeToParcel() [all …]
|
D | AudioRecord.cpp | 83 mAnalyticsItem->setCString(MM_PREFIX "source", toString(record->mAttributes.source).c_str()); in gather() 91 mAnalyticsItem->setCString(MM_PREFIX "attributes", toString(record->mAttributes).c_str()); in gather() 265 memset(&mAttributes, 0, sizeof(audio_attributes_t)); in set() 266 mAttributes.source = inputSource; in set() 269 memcpy(&mAttributes, pAttributes, sizeof(audio_attributes_t)); in set() 271 __func__, mAttributes.source, mAttributes.flags, mAttributes.tags); in set() 666 mFlags, mOrigFlags, mAttributes.source); in dump() 743 input.attr = mAttributes; in createRecord_l()
|
D | AudioTrack.cpp | 188 toString(track->mAttributes.content_type).c_str()); in gather() 189 mAnalyticsItem->setCString(MM_PREFIX "usage", toString(track->mAttributes.usage).c_str()); in gather() 198 mAnalyticsItem->setCString(MM_PREFIX "attributes", toString(track->mAttributes).c_str()); in gather() 222 mAttributes.content_type = AUDIO_CONTENT_TYPE_UNKNOWN; in AudioTrack() 223 mAttributes.usage = AUDIO_USAGE_UNKNOWN; in AudioTrack() 224 mAttributes.flags = 0x0; in AudioTrack() 225 strcpy(mAttributes.tags, ""); in AudioTrack() 253 mAttributes = AUDIO_ATTRIBUTES_INITIALIZER; in AudioTrack() 286 mAttributes = AUDIO_ATTRIBUTES_INITIALIZER; in AudioTrack() 435 memcpy(&mAttributes, pAttributes, sizeof(audio_attributes_t)); in set() [all …]
|
/frameworks/av/drm/common/ |
D | DrmInfo.cpp | 41 return mAttributes.size(); in getCount() 45 mAttributes.add(key, value); in put() 50 if (NAME_NOT_FOUND != mAttributes.indexOfKey(key)) { in get() 51 return mAttributes.valueFor(key); in get() 57 return mAttributes.indexOfKey(key); in indexOfKey() 75 return (mIndex < mDrmInfo->mAttributes.size()); in hasNext() 79 const String8& key = mDrmInfo->mAttributes.keyAt(mIndex); in next() 103 return mIndex < mDrmInfo->mAttributes.size(); in hasNext() 107 String8& value = mDrmInfo->mAttributes.editValueAt(mIndex); in next()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/soap/ |
D | SppResponseMessage.java | 45 private Map<String, String> mAttributes; field in SppResponseMessage 91 mAttributes = new HashMap<>(); in SppResponseMessage() 95 mAttributes.put(attributeInfo.getName(), in SppResponseMessage() 123 return Collections.unmodifiableMap(mAttributes); in getAttributes() 128 return Objects.hash(mMessageType, mVersion, mSessionID, mStatus, mError, mAttributes); in hashCode() 141 && ((mAttributes == null) ? (that.mAttributes == null) : mAttributes.equals( in equals() 142 that.mAttributes)); in equals()
|
/frameworks/base/core/java/android/hardware/usb/ |
D | UsbEndpoint.java | 35 private final int mAttributes; field in UsbEndpoint 45 mAttributes = attributes; in UsbEndpoint() 93 return mAttributes; in getAttributes() 109 return mAttributes & UsbConstants.USB_ENDPOINT_XFERTYPE_MASK; in getType() 132 return "UsbEndpoint[mAddress=" + mAddress + ",mAttributes=" + mAttributes + in toString() 157 parcel.writeInt(mAttributes); in writeToParcel()
|
D | UsbConfiguration.java | 43 private final int mAttributes; field in UsbConfiguration 66 mAttributes = attributes; in UsbConfiguration() 96 return (mAttributes & ATTR_SELF_POWERED) != 0; in isSelfPowered() 106 return (mAttributes & ATTR_REMOTE_WAKEUP) != 0; in isRemoteWakeup() 117 return mAttributes; in getAttributes() 158 ",mName=" + mName + ",mAttributes=" + mAttributes + in toString() 193 parcel.writeInt(mAttributes); in writeToParcel()
|
/frameworks/base/media/java/android/media/ |
D | ExifInterface.java | 1343 private final HashMap[] mAttributes = new HashMap[EXIF_TAGS.length]; field in ExifInterface 1465 Object value = mAttributes[i].get(tag); in getExifAttribute() 1598 mAttributes[i].remove(tag); in setAttribute() 1627 mAttributes[i].put(tag, ExifAttribute.createByte(value)); in setAttribute() 1632 mAttributes[i].put(tag, ExifAttribute.createString(value)); in setAttribute() 1641 mAttributes[i].put(tag, in setAttribute() 1651 mAttributes[i].put(tag, in setAttribute() 1661 mAttributes[i].put(tag, in setAttribute() 1673 mAttributes[i].put(tag, in setAttribute() 1685 mAttributes[i].put(tag, in setAttribute() [all …]
|
D | PlayerBase.java | 58 protected AudioAttributes mAttributes; field in PlayerBase 102 mAttributes = attr; in PlayerBase() 128 new PlayerIdCard(mImplType, mAttributes, new IPlayerWrapper(this))); in baseRegisterPlayer() 148 boolean attributesChanged = (mAttributes != attr); in baseUpdateAudioAttributes() 149 mAttributes = attr; in baseUpdateAudioAttributes() 299 mAttributes.getUsage(), in updateAppOpsPlayAudio_sync() 351 if ((mAttributes.getAllFlags() & AudioAttributes.FLAG_BYPASS_INTERRUPTION_POLICY) != 0) { in isRestricted_sync() 355 if (((mAttributes.getAllFlags() & AudioAttributes.FLAG_AUDIBILITY_ENFORCED) != 0) in isRestricted_sync() 356 && (mAttributes.getUsage() == AudioAttributes.USAGE_ASSISTANCE_SONIFICATION)) { in isRestricted_sync() 540 public final AudioAttributes mAttributes; field in PlayerBase.PlayerIdCard [all …]
|
D | AudioFocusInfo.java | 36 private final @NonNull AudioAttributes mAttributes; field in AudioFocusInfo 62 mAttributes = aa == null ? new AudioAttributes.Builder().build() : aa; in AudioFocusInfo() 88 return mAttributes; in getAttributes() 142 mAttributes.writeToParcel(dest, flags); in writeToParcel() 155 return Objects.hash(mAttributes, mClientUid, mClientId, mPackageName, mGainRequest, mFlags); in hashCode() 167 if (!mAttributes.equals(other.mAttributes)) { in equals()
|
D | AudioTrack.java | 611 if (shouldEnablePowerSaving(mAttributes, format, bufferSizeInBytes, mode)) { in AudioTrack() 612 mAttributes = new AudioAttributes.Builder(mAttributes) in AudioTrack() 613 .replaceFlags((mAttributes.getAllFlags() in AudioTrack() 663 int initResult = native_setup(new WeakReference<AudioTrack>(this), mAttributes, in AudioTrack() 675 if ((mAttributes.getFlags() & AudioAttributes.FLAG_HW_AV_SYNC) != 0) { in AudioTrack() 799 private AudioAttributes mAttributes; field in AudioTrack.Builder 826 mAttributes = attributes; in setAudioAttributes() 960 if (mAttributes == null) { in build() 961 mAttributes = new AudioAttributes.Builder() in build() 967 mAttributes = new AudioAttributes.Builder(mAttributes) in build() [all …]
|
/frameworks/base/services/usb/java/com/android/server/usb/descriptors/ |
D | UsbEndpointDescriptor.java | 60 private int mAttributes; // 3:1 Various flags field in UsbEndpointDescriptor 93 return mAttributes; in getAttributes() 115 + Integer.toHexString(mAttributes & MASK_ATTRIBS_TRANSTYPE) in toAndroid() 116 + " sync:" + Integer.toHexString(mAttributes & MASK_ATTRIBS_SYNCTYPE) in toAndroid() 117 + " usage:" + Integer.toHexString(mAttributes & MASK_ATTRIBS_USEAGE)); in toAndroid() 119 return new UsbEndpoint(mEndpointAddress, mAttributes, mPacketSize, mInterval); in toAndroid() 125 mAttributes = stream.getUnsignedByte(); in parseRawDescriptors()
|
/frameworks/base/drm/java/android/drm/ |
D | DrmInfo.java | 40 private final HashMap<String, Object> mAttributes = new HashMap<String, Object>(); field in DrmInfo 98 mAttributes.put(key, value); in put() 109 return mAttributes.get(key); in get() 119 return mAttributes.keySet().iterator(); in keyIterator() 129 return mAttributes.values().iterator(); in iterator()
|
D | DrmEvent.java | 52 private HashMap<String, Object> mAttributes = new HashMap<String, Object>(); field in DrmEvent 72 mAttributes = attributes; in DrmEvent() 126 return mAttributes.get(key); in getAttribute()
|
/frameworks/av/media/libaudioclient/include/media/ |
D | AudioAttributes.h | 31 AudioAttributes(const audio_attributes_t &attributes) : mAttributes(attributes) {} in AudioAttributes() 35 mAttributes(attributes), mStreamType(stream), mGroupId(groupId) {} in AudioAttributes() 37 audio_attributes_t getAttributes() const { return mAttributes; } in getAttributes() 46 audio_attributes_t mAttributes = AUDIO_ATTRIBUTES_INITIALIZER;
|
/frameworks/av/services/audiopolicy/engine/common/src/ |
D | ProductStrategy.cpp | 48 androidAa.push_back({attr.mVolumeGroup, attr.mStream, attr.mAttributes}); in listAudioAttributes() 57 attrVector.push_back(attrGroup.mAttributes); in getAudioAttributes() 69 return AudioProductStrategy::attributesMatches(supportedAttr.mAttributes, attr); in matches() 78 return AudioProductStrategy::attributesMatches(supportedAttr.mAttributes, attr); }); in getStreamTypeForAttributes() 95 return iter != end(mAttributesVector) ? iter->mAttributes : AUDIO_ATTRIBUTES_INITIALIZER; in getAttributesForStreamType() 101 return attr.mAttributes == defaultAttr; }) != end(mAttributesVector); in isDefault() 126 if (AudioProductStrategy::attributesMatches(supportedAttr.mAttributes, attr)) { in getVolumeGroupForAttributes() 146 [](const auto &attr) {return attr.mAttributes == defaultAttr;}); in getDefaultVolumeGroup() 166 attr.mAttributes == defaultAttr ? "{ Any }" : android::toString(attr.mAttributes); in dump()
|
D | VolumeCurve.cpp | 115 if (!mAttributes.empty()) dst->appendFormat("%*s Attributes:", spaces, ""); in dump() 116 for (const auto &attributes : mAttributes) { in dump() 118 dst->appendFormat("%*s %s\n", attributes == mAttributes.front() ? 0 : spaces + 13, "", in dump()
|
/frameworks/base/core/java/android/print/ |
D | PrintJobInfo.java | 185 private PrintAttributes mAttributes; field in PrintJobInfo 223 mAttributes = other.mAttributes; in PrintJobInfo() 250 mAttributes = (PrintAttributes) parcel.readParcelable(null); in PrintJobInfo() 532 return mAttributes; in getAttributes() 543 mAttributes = attributes; in setAttributes() 677 parcel.writeParcelable(mAttributes, flags); in writeToParcel() 698 builder.append(", attributes: " + (mAttributes != null in toString() 699 ? mAttributes.toString() : null)); in toString() 812 mPrototype.mAttributes = attributes; in setAttributes()
|
D | PrintAttributes.java | 1393 private final PrintAttributes mAttributes = new PrintAttributes(); field in PrintAttributes.Builder 1402 mAttributes.setMediaSize(mediaSize); in setMediaSize() 1413 mAttributes.setResolution(resolution); in setResolution() 1425 mAttributes.setMinMargins(margins); in setMinMargins() 1439 mAttributes.setColorMode(colorMode); in setColorMode() 1454 mAttributes.setDuplexMode(duplexMode); in setDuplexMode() 1464 return mAttributes; in build()
|
/frameworks/base/tools/aapt/ |
D | XMLNode.cpp | 707 return mAttributes; in getAttributes() 713 for (size_t i=0; i<mAttributes.size(); i++) { in getAttribute() 714 const attribute_entry& ae(mAttributes.itemAt(i)); in getAttribute() 725 for (size_t i = 0; i < mAttributes.size(); i++) { in removeAttribute() 726 const attribute_entry& ae(mAttributes.itemAt(i)); in removeAttribute() 738 for (size_t i=0; i<mAttributes.size(); i++) { in editAttribute() 739 attribute_entry * ae = &mAttributes.editItemAt(i); in editAttribute() 836 mAttributes.add(e); in addAttribute() 837 mAttributeOrder.add(e.index, mAttributes.size()-1); in addAttribute() 848 if (index >= mAttributes.size()) { in removeAttribute() [all …]
|
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ |
D | LayoutParserWrapper.java | 49 private List<Attribute> mAttributes; field in LayoutParserWrapper 112 mAttributes = count > 0 ? new ArrayList<Attribute>(count) : in peekNext() 115 mAttributes.add(new Attribute(mDelegate.getAttributeNamespace(i), in peekNext() 127 mAttributes = null; in reset() 177 if (mAttributes == null) { in getAttributeValue() 184 for (Attribute attribute : mAttributes) { in getAttributeValue()
|
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/ |
D | BridgeLayoutParamsMapAttributes.java | 34 private final Map<String, String> mAttributes; field in BridgeLayoutParamsMapAttributes 37 mAttributes = attributes; in BridgeLayoutParamsMapAttributes() 43 return mAttributes.get(name); in getAttributeValue()
|
/frameworks/base/services/core/java/com/android/server/audio/ |
D | FocusRequester.java | 75 private final @NonNull AudioAttributes mAttributes; field in FocusRequester 94 mAttributes = aa; in FocusRequester() 111 mAttributes = afi.getAttributes(); in FocusRequester() 168 return mAttributes; in getAudioAttributes() 231 + " -- attr: " + mAttributes in dump() 489 return new AudioFocusInfo(mAttributes, mCallingUid, mClientId, mPackageName, in toAudioFocusInfo()
|
/frameworks/av/media/libmedia/ |
D | MediaCodecInfo.cpp | 146 return mAttributes; in getAttributes() 190 info->mAttributes = attributes; in FromParcel() 213 parcel->writeInt32(mAttributes); in writeToParcel() 239 : mAttributes((MediaCodecInfo::Attributes)0), in MediaCodecInfo() 257 mInfo->mAttributes = (MediaCodecInfo::Attributes)attributes; in setAttributes()
|
/frameworks/av/services/audiopolicy/engine/common/include/ |
D | VolumeCurve.h | 173 mAttributes.push_back(attr); in addAttributes() 175 AttributesVector getAttributes() const override { return mAttributes; } in getAttributes() 191 AttributesVector mAttributes; variable
|