Home
last modified time | relevance | path

Searched refs:attributes (Results 1 – 25 of 313) sorted by relevance

12345678910>>...13

/frameworks/av/media/libaudiousecasevalidation/tests/
DUsecaseValidator-test.cpp55 audio_attributes_t attributes) { in testStartClient() argument
58 return m_validator->startClient(streamId, portId, attributionSource, attributes, NULL); in testStartClient()
68 audio_attributes_t attributes = AUDIO_ATTRIBUTES_INITIALIZER; in testVerifyAudioAttributes() local
69 attributes.usage = usage; in testVerifyAudioAttributes()
71 return m_validator->verifyAudioAttributes(streamId, attributionSource, attributes); in testVerifyAudioAttributes()
142 audio_attributes_t attributes = AUDIO_ATTRIBUTES_INITIALIZER; in TEST_F() local
143 attributes.usage = AUDIO_USAGE_GAME; in TEST_F()
145 testStartClient(gameStreamId, gamePortId, attributes); in TEST_F()
147 attributes.usage = AUDIO_USAGE_MEDIA; in TEST_F()
149 testStartClient(mediaStreamId, mediaPortId, attributes); in TEST_F()
[all …]
/frameworks/base/core/java/android/net/
DScoredNetwork.java102 public final Bundle attributes; field in ScoredNetwork
151 @Nullable Bundle attributes) { in ScoredNetwork() argument
155 this.attributes = attributes; in ScoredNetwork()
166 attributes = in.readBundle(); in ScoredNetwork()
184 out.writeBundle(attributes); in writeToParcel()
197 && bundleEquals(attributes, that.attributes); in equals()
223 return Objects.hash(networkKey, rssiCurve, meteredHint, attributes); in hashCode()
235 if (attributes != null && !attributes.isEmpty()) { in toString()
236 out.append(", attributes=" + attributes); in toString()
249 || (attributes != null in hasRankingScore()
[all …]
/frameworks/compile/libbcc/lib/
DCompilerConfig.cpp37 void AddX86NativeCPUFeatures(std::vector<std::string>* attributes) { in AddX86NativeCPUFeatures() argument
41 attributes->push_back((f.second ? '+' : '-') + f.first().str()); in AddX86NativeCPUFeatures()
46 attributes->push_back("-avx"); in AddX86NativeCPUFeatures()
105 std::vector<std::string> attributes; in initializeArch() local
113 attributes.push_back("+vfp3"); in initializeArch()
115 attributes.push_back("+d16"); in initializeArch()
122 attributes.push_back("+neon"); in initializeArch()
125 attributes.push_back("-neon"); in initializeArch()
126 attributes.push_back("-neonfp"); in initializeArch()
133 attributes.push_back("+hwdiv-arm"); in initializeArch()
[all …]
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/shadow/
DDoubleShadowTextView.kt40 val attributes = constant
51 attributes.getDimension(R.styleable.DoubleShadowTextView_keyShadowBlur, 0f)
53 attributes.getDimension(R.styleable.DoubleShadowTextView_keyShadowOffsetX, 0f)
55 attributes.getDimension(R.styleable.DoubleShadowTextView_keyShadowOffsetY, 0f)
57 attributes.getFloat(R.styleable.DoubleShadowTextView_keyShadowAlpha, 0f)
61 attributes.getDimension(R.styleable.DoubleShadowTextView_ambientShadowBlur, 0f)
63 attributes.getDimension(R.styleable.DoubleShadowTextView_ambientShadowOffsetX, 0f)
65 attributes.getDimension(R.styleable.DoubleShadowTextView_ambientShadowOffsetY, 0f)
67 attributes.getFloat(R.styleable.DoubleShadowTextView_ambientShadowAlpha, 0f)
76 attributes.getDimensionPixelSize(
[all …]
DDoubleShadowTextClock.kt60 var attributes: TypedArray = in initializeAttributes() variable
72 attributes.getDimensionPixelSize(R.styleable.DoubleShadowTextClock_keyShadowBlur, 0) in initializeAttributes()
74 attributes.getDimensionPixelSize( in initializeAttributes()
79 attributes.getDimensionPixelSize( in initializeAttributes()
84 attributes.getFloat(R.styleable.DoubleShadowTextClock_keyShadowAlpha, 0f) in initializeAttributes()
93 attributes.getDimensionPixelSize( in initializeAttributes()
98 attributes.getDimensionPixelSize( in initializeAttributes()
103 attributes.getDimensionPixelSize( in initializeAttributes()
108 attributes.getFloat(R.styleable.DoubleShadowTextClock_ambientShadowAlpha, 0f) in initializeAttributes()
117 attributes.getBoolean(R.styleable.DoubleShadowTextClock_removeTextDescent, false) in initializeAttributes()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/domainselection/
DNormalCallDomainSelectionConnectionTest.java91 DomainSelectionService.SelectionAttributes attributes = in testSelectDomainWifi() local
97 .createNormalConnection(attributes, mMockConnectionCallback); in testSelectDomainWifi()
113 DomainSelectionService.SelectionAttributes attributes = in testSelectDomainCs() local
119 .createNormalConnection(attributes, mMockConnectionCallback); in testSelectDomainCs()
138 DomainSelectionService.SelectionAttributes attributes = in testSelectDomainPs() local
144 .createNormalConnection(attributes, mMockConnectionCallback); in testSelectDomainPs()
163 DomainSelectionService.SelectionAttributes attributes = in testOnSelectionTerminated() local
168 .createNormalConnection(attributes, mMockConnectionCallback); in testOnSelectionTerminated()
178 DomainSelectionService.SelectionAttributes attributes = in testGetSelectionAttributes() local
182 assertEquals(1, attributes.getSlotId()); in testGetSelectionAttributes()
[all …]
/frameworks/layoutlib/bridge/tests/src/android/util/
DBridgeXmlPullAttributesTest.java60 BridgeXmlPullAttributes attributes = new BridgeXmlPullAttributes( in testGetAttributeIntValueForEnums() local
82 assertEquals(123, attributes.getAttributeIntValue(BridgeConstants.NS_RESOURCES, in testGetAttributeIntValueForEnums()
84 assertEquals(123, attributes.getAttributeIntValue(0, 500)); in testGetAttributeIntValueForEnums()
86 assertEquals(500, attributes.getAttributeIntValue(BridgeConstants.NS_RESOURCES, in testGetAttributeIntValueForEnums()
88 assertEquals(500, attributes.getAttributeIntValue(2, 500)); in testGetAttributeIntValueForEnums()
91 assertEquals(1, attributes.getAttributeIntValue(BridgeConstants.NS_APP_RES_AUTO, in testGetAttributeIntValueForEnums()
93 assertEquals(1, attributes.getAttributeIntValue(1, 500)); in testGetAttributeIntValueForEnums()
94 assertEquals(2, attributes.getAttributeIntValue(BridgeConstants.NS_APP_RES_AUTO, in testGetAttributeIntValueForEnums()
96 assertEquals(2, attributes.getAttributeIntValue(1, 500)); in testGetAttributeIntValueForEnums()
100 attributes.getAttributeIntValue(BridgeConstants.NS_APP_RES_AUTO, "my_custom_attr", 500); in testGetAttributeIntValueForEnums()
[all …]
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
DGraphReader.java278 private void addImportCommand(Attributes attributes) throws SAXException { in addImportCommand() argument
279 String packageName = getRequiredAttribute(attributes, "package"); in addImportCommand()
283 private void addLibraryCommand(Attributes attributes) throws SAXException { in addLibraryCommand() argument
284 String libraryName = getRequiredAttribute(attributes, "name"); in addLibraryCommand()
288 private void addConnectCommand(Attributes attributes) { in addConnectCommand() argument
295 String sourceTag = attributes.getValue("source"); in addConnectCommand()
308 sourceFilterName = attributes.getValue("sourceFilter"); in addConnectCommand()
309 sourcePortName = attributes.getValue("sourcePort"); in addConnectCommand()
312 String targetTag = attributes.getValue("target"); in addConnectCommand()
325 targetFilterName = attributes.getValue("targetFilter"); in addConnectCommand()
[all …]
/frameworks/av/media/libaudiousecasevalidation/
DUsecaseValidator.cpp67 const audio_attributes_t& attributes, in startClient() argument
70 __func__, streamId, portId, attributes.usage, attributionSource.pid, in startClient()
75 return verifyAudioAttributes(streamId, attributionSource, attributes); in startClient()
95 const audio_attributes_t& attributes) override { in verifyAudioAttributes() argument
97 __func__, streamId, attributes.usage, attributionSource.pid, in verifyAudioAttributes()
100 audio_attributes_t attrRet = attributes; in verifyAudioAttributes()
102 if (isUsageValid(attributes.usage) && isContentTypeValid(attributes.content_type) in verifyAudioAttributes()
103 && areFlagsValid(attributes.flags) && m_lookup.isGameStream(streamId)) { in verifyAudioAttributes()
105 __func__, attributes.usage, streamId, attributionSource.pid, in verifyAudioAttributes()
/frameworks/base/packages/PrintRecommendationService/src/com/android/printservice/recommendation/plugin/hp/
DMDnsUtils.java39 Map<String,byte[]> attributes = networkDevice.getAttributes(); in isVendorPrinter() local
40 String product = getString(attributes.get(ATTRIBUTE__PRODUCT)); in isVendorPrinter()
41 String ty = getString(attributes.get(ATTRIBUTE__TY)); in isVendorPrinter()
42 String usbMfg = getString(attributes.get(ATTRIBUTE__USB_MFG)); in isVendorPrinter()
43 String mfg = getString(attributes.get(ATTRIBUTE__MFG)); in isVendorPrinter()
51 Map<String,byte[]> attributes = networkDevice.getAttributes(); in getVendor() local
52 vendor = getString(attributes.get(ATTRIBUTE__MFG)); in getVendor()
54 vendor = getString(attributes.get(ATTRIBUTE__USB_MFG)); in getVendor()
/frameworks/base/packages/PrintRecommendationService/src/com/android/printservice/recommendation/plugin/xerox/
DMDnsUtils.java36 Map<String, byte[]> attributes = networkDevice.getAttributes(); in isVendorPrinter() local
37 String product = getString(attributes.get(ATTRIBUTE__PRODUCT)); in isVendorPrinter()
38 String ty = getString(attributes.get(ATTRIBUTE__TY)); in isVendorPrinter()
39 String usbMfg = getString(attributes.get(ATTRIBUTE__USB_MFG)); in isVendorPrinter()
40 String usbMdl = getString(attributes.get(ATTRIBUTE__USB_MDL)); in isVendorPrinter()
41 String mfg = getString(attributes.get(ATTRIBUTE__MFG)); in isVendorPrinter()
51 Map<String, byte[]> attributes = networkDevice.getAttributes(); in getVendor() local
52 vendor = getString(attributes.get(ATTRIBUTE__MFG)); in getVendor()
54 vendor = getString(attributes.get(ATTRIBUTE__USB_MFG)); in getVendor()
/frameworks/base/services/core/java/com/android/server/audio/
DAudioSystemAdapter.java178 public void addOnDevicesForAttributesChangedListener(AudioAttributes attributes, in addOnDevicesForAttributesChangedListener() argument
181 final Pair<AudioAttributes, Boolean> attr = new Pair(attributes, forVolume); in addOnDevicesForAttributesChangedListener()
196 getDevicesForAttributes(attributes, forVolume); in addOnDevicesForAttributesChangedListener()
304 @NonNull AudioAttributes attributes, boolean forVolume) { in getDevicesForAttributes()
306 return getDevicesForAttributesImpl(attributes, forVolume); in getDevicesForAttributes()
311 attributes, forVolume); in getDevicesForAttributes()
317 @NonNull AudioAttributes attributes, boolean forVolume) { in getDevicesForAttributesImpl()
320 final Pair<AudioAttributes, Boolean> key = new Pair(attributes, forVolume); in getDevicesForAttributesImpl()
324 res = AudioSystem.getDevicesForAttributes(attributes, forVolume); in getDevicesForAttributesImpl()
328 + attrDeviceToDebugString(attributes, res)); in getDevicesForAttributesImpl()
[all …]
/frameworks/base/sax/tests/saxtests/src/android/sax/
DSafeSaxTest.java58 public void start(Attributes attributes) { in start() argument
71 public void start(Attributes attributes) { in start() argument
244 public void start(Attributes attributes) { in newContentHandler()
245 String url = attributes.getValue("", "url"); in newContentHandler()
254 public void start(Attributes attributes) { in newContentHandler()
255 String url = attributes.getValue("", "url"); in newContentHandler()
264 public void start(Attributes attributes) { in newContentHandler()
265 String url = attributes.getValue("", "url"); in newContentHandler()
302 public void start(Attributes attributes) { in newContentHandler()
303 String seconds = attributes.getValue("", "seconds"); in newContentHandler()
[all …]
/frameworks/base/packages/SystemUI/animation/src/com/android/systemui/util/
DDialog.kt76 window.attributes.width == MATCH_PARENT && window.attributes.height == MATCH_PARENT in maybeForceFullscreen()
121 window.attributes.width, in maybeForceFullscreen()
122 window.attributes.height, in maybeForceFullscreen()
123 window.attributes.gravity in maybeForceFullscreen()
148 window.attributes.width != MATCH_PARENT || window.attributes.height != MATCH_PARENT in maybeForceFullscreen()
153 layoutParams.width = window.attributes.width in maybeForceFullscreen()
154 layoutParams.height = window.attributes.height in maybeForceFullscreen()
/frameworks/av/media/libaudioclient/include/media/
DVolumeGroupAttributes.h33 VolumeGroupAttributes(const audio_attributes_t &attributes) in VolumeGroupAttributes() argument
34 : mAttributes(attributes) {} // NOLINT in VolumeGroupAttributes()
37 const audio_attributes_t &attributes) : in VolumeGroupAttributes() argument
38 mAttributes(attributes), mStreamType(stream), mGroupId(groupId) { in VolumeGroupAttributes()
44 int matchesScore(const audio_attributes_t &attributes) const;
/frameworks/base/graphics/java/android/graphics/
DMeshSpecification.java290 @SuppressLint("ArrayReturn") @NonNull @Size(max = 8) Attribute[] attributes, in make()
295 long nativeMeshSpec = nativeMake(attributes, in make()
328 @SuppressLint("ArrayReturn") @NonNull @Size(max = 8) Attribute[] attributes, in make()
335 long nativeMeshSpec = nativeMakeWithCS(attributes, in make()
373 @SuppressLint("ArrayReturn") @NonNull @Size(max = 8) Attribute[] attributes, in make()
381 nativeMakeWithAlpha(attributes, vertexStride, varyings, vertexShader, in make()
397 private static native long nativeMake(Attribute[] attributes, int vertexStride, in nativeMake() argument
400 private static native long nativeMakeWithCS(Attribute[] attributes, int vertexStride, in nativeMakeWithCS() argument
403 private static native long nativeMakeWithAlpha(Attribute[] attributes, int vertexStride, in nativeMakeWithAlpha() argument
/frameworks/base/packages/PrintRecommendationService/src/com/android/printservice/recommendation/plugin/samsung/
DPrinterFilterSamsung.java90 Map<String,byte[]> attributes = resolvedDevice.getAttributes(); in getSamsungModelName() local
91 String usb_mfg = MDNSUtils.getString(attributes.get(ATTR_USB_MFG)); in getSamsungModelName()
93 usb_mfg = MDNSUtils.getString(attributes.get(ATTR_MFG)); in getSamsungModelName()
96 String usb_mdl = MDNSUtils.getString(attributes.get(ATTR_USB_MDL)); in getSamsungModelName()
98 usb_mdl = MDNSUtils.getString(attributes.get(ATTR_MDL)); in getSamsungModelName()
105 modelName = MDNSUtils.getString(attributes.get(ATTR_PRODUCT)); in getSamsungModelName()
107 modelName = MDNSUtils.getString(attributes.get(ATTR_TY)); in getSamsungModelName()
/frameworks/base/core/jni/
Dandroid_media_AudioAttributes.cpp108 JNIEnv* env, jobject *jAudioAttributes, const audio_attributes_t &attributes) in nativeAudioAttributesToJavaAudioAttributes() argument
118 attributes.usage); in nativeAudioAttributesToJavaAudioAttributes()
121 gAudioAttributesBuilderMethods.setSystemUsage, attributes.usage); in nativeAudioAttributesToJavaAudioAttributes()
124 attributes.usage); in nativeAudioAttributesToJavaAudioAttributes()
128 attributes.source); in nativeAudioAttributesToJavaAudioAttributes()
131 attributes.content_type); in nativeAudioAttributesToJavaAudioAttributes()
134 attributes.flags); in nativeAudioAttributesToJavaAudioAttributes()
137 env->NewStringUTF(attributes.tags)); in nativeAudioAttributesToJavaAudioAttributes()
159 JNIEnv* env, jobject *jAudioAttributes, const audio_attributes_t &attributes) in nativeToJava() argument
161 return nativeAudioAttributesToJavaAudioAttributes(env, jAudioAttributes, attributes); in nativeToJava()
/frameworks/base/sax/java/android/sax/
DRootElement.java111 Attributes attributes) throws SAXException { in startElement() argument
116 startRoot(uri, localName, attributes); in startElement()
134 start(child, attributes); in startElement()
140 void startRoot(String uri, String localName, Attributes attributes) in startRoot() argument
150 start(root, attributes); in startRoot()
153 void start(Element e, Attributes attributes) { in start() argument
158 e.startElementListener.start(attributes); in start()
/frameworks/base/media/java/android/media/
DHwAudioSource.java56 private HwAudioSource(@NonNull AudioDeviceInfo device, @NonNull AudioAttributes attributes) { in HwAudioSource() argument
57 super(attributes, AudioPlaybackConfiguration.PLAYER_TYPE_HW_SOURCE); in HwAudioSource()
59 Preconditions.checkNotNull(attributes); in HwAudioSource()
62 mAudioAttributes = attributes; in HwAudioSource()
232 public @NonNull Builder setAudioAttributes(@NonNull AudioAttributes attributes) { in setAudioAttributes() argument
233 Preconditions.checkNotNull(attributes); in setAudioAttributes()
234 mAudioAttributes = attributes; in setAudioAttributes()
/frameworks/base/core/java/android/os/
DVibrator.java329 @Nullable VibrationAttributes attributes) { in setAlwaysOnEffect() argument
330 return setAlwaysOnEffect(Process.myUid(), mPackageName, alwaysOnId, effect, attributes); in setAlwaysOnEffect()
338 @Nullable VibrationEffect effect, @Nullable VibrationAttributes attributes) { in setAlwaysOnEffect() argument
372 public void vibrate(long milliseconds, AudioAttributes attributes) { in vibrate() argument
377 vibrate(effect, attributes); in vibrate()
438 public void vibrate(long[] pattern, int repeat, AudioAttributes attributes) { in vibrate() argument
448 vibrate(VibrationEffect.createWaveform(pattern, repeat), attributes); in vibrate() local
480 public void vibrate(VibrationEffect vibe, AudioAttributes attributes) { in vibrate() argument
482 attributes == null in vibrate()
484 : new VibrationAttributes.Builder(attributes).build()); in vibrate()
[all …]
/frameworks/native/libs/vibrator/fuzzer/
Dvibrator_fuzzer.cpp91 audio_attributes_t attributes; in LLVMFuzzerTestOneInput() local
92 attributes.content_type = in LLVMFuzzerTestOneInput()
94 attributes.usage = AUDIO_USAGE[fdp.ConsumeIntegralInRange<uint32_t>(0, NUM_AUDIO_USAGE - 1)]; in LLVMFuzzerTestOneInput()
95 attributes.source = AUDIO_SOURCE[fdp.ConsumeIntegralInRange<uint32_t>(0, NUM_AUDIO_SOURCE - 1)]; in LLVMFuzzerTestOneInput()
96 attributes.flags = static_cast<audio_flags_mask_t>(fdp.ConsumeIntegral<uint32_t>()); in LLVMFuzzerTestOneInput()
106 new os::ExternalVibration(uid, pkg, attributes, vibrationController); in LLVMFuzzerTestOneInput()
/frameworks/base/libs/hwui/jni/
DMeshSpecification.cpp40 std::vector<Attribute> extractAttributes(JNIEnv* env, jobjectArray attributes) { in extractAttributes() argument
41 int size = env->GetArrayLength(attributes); in extractAttributes()
45 jobject attribute = env->GetObjectArrayElement(attributes, i); in extractAttributes()
74 auto attributes = extractAttributes(env, attributeArray); in Make() local
78 auto meshSpecResult = SkMeshSpecification::Make(attributes, vertexStride, varyings, in Make()
91 auto attributes = extractAttributes(env, attributeArray); in MakeWithCS() local
96 attributes, vertexStride, varyings, SkString(skVertexShader.c_str()), in MakeWithCS()
109 auto attributes = extractAttributes(env, attributeArray); in MakeWithAlpha() local
114 attributes, vertexStride, varyings, SkString(skVertexShader.c_str()), in MakeWithAlpha()
/frameworks/av/media/libaudioclient/tests/
Dtest_create_audiotrack.cpp69 audio_attributes_t attributes; in testTrack() local
105 memset(&attributes, 0, sizeof(attributes)); in testTrack()
106 attributes.content_type = contentType; in testTrack()
107 attributes.usage = usage; in testTrack()
115 offload ? &offloadInfo : nullptr, AttributionSourceState(), &attributes, false, in testTrack()
/frameworks/av/media/libaudioclient/
DVolumeGroupAttributes.cpp30 int VolumeGroupAttributes::matchesScore(const audio_attributes_t &attributes) const { in matchesScore()
31 return AudioProductStrategy::attributesMatchesScore(mAttributes, attributes); in matchesScore()
50 aidl.attributes = VALUE_OR_RETURN( in legacy2aidl_VolumeGroupAttributes_AudioAttributesEx()
64 aidl.attributes))); in aidl2legacy_AudioAttributesEx_VolumeGroupAttributes()

12345678910>>...13