Home
last modified time | relevance | path

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

12345678910

/frameworks/base/core/java/android/net/
DScoredNetwork.java100 public final Bundle attributes; field in ScoredNetwork
149 @Nullable Bundle attributes) { in ScoredNetwork() argument
153 this.attributes = attributes; in ScoredNetwork()
164 attributes = in.readBundle(); in ScoredNetwork()
182 out.writeBundle(attributes); in writeToParcel()
195 && bundleEquals(attributes, that.attributes); in equals()
221 return Objects.hash(networkKey, rssiCurve, meteredHint, attributes); in hashCode()
233 if (attributes != null && !attributes.isEmpty()) { in toString()
234 out.append(", attributes=" + attributes); in toString()
247 || (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/native/libs/vr/libdvr/
Ddvr_surface.cpp31 bool ConvertSurfaceAttributes(const DvrSurfaceAttribute* attributes, in ConvertSurfaceAttributes() argument
37 switch (attributes[i].value.type) { in ConvertSurfaceAttributes()
39 value = attributes[i].value.int32_value; in ConvertSurfaceAttributes()
42 value = attributes[i].value.int64_value; in ConvertSurfaceAttributes()
48 value = static_cast<bool>(attributes[i].value.bool_value); in ConvertSurfaceAttributes()
51 value = attributes[i].value.float_value; in ConvertSurfaceAttributes()
54 ArrayCopy(&value, attributes[i].value.float2_value); in ConvertSurfaceAttributes()
57 ArrayCopy(&value, attributes[i].value.float3_value); in ConvertSurfaceAttributes()
60 ArrayCopy(&value, attributes[i].value.float4_value); in ConvertSurfaceAttributes()
63 ArrayCopy(&value, attributes[i].value.float8_value); in ConvertSurfaceAttributes()
[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/native/libs/vr/libdvr/tests/
Ddvr_display_manager-test.cpp120 DvrSurfaceAttribute attributes[] = { in CreateApplicationSurface() local
125 attributes, std::extent<decltype(attributes)>::value, &surface); in CreateApplicationSurface()
259 std::vector<DvrSurfaceAttribute> attributes; in GetAttributes() local
266 attributes.resize(count); in GetAttributes()
268 surface_state_.get(), surface_index, attributes.data(), count); in GetAttributes()
272 attributes.resize(return_count); in GetAttributes()
273 return {std::move(attributes)}; in GetAttributes()
545 auto attributes = attribute_status.take(); in TEST_F() local
546 EXPECT_GE(attributes.size(), 2u); in TEST_F()
553 auto compare_keys = [](const auto& attributes, const auto& expected_keys) { in TEST_F() argument
[all …]
/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/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
245 public void start(Attributes attributes) { in newContentHandler()
246 String url = attributes.getValue("", "url"); in newContentHandler()
255 public void start(Attributes attributes) { in newContentHandler()
256 String url = attributes.getValue("", "url"); in newContentHandler()
265 public void start(Attributes attributes) { in newContentHandler()
266 String url = attributes.getValue("", "url"); in newContentHandler()
303 public void start(Attributes attributes) { in newContentHandler()
304 String seconds = attributes.getValue("", "seconds"); in newContentHandler()
[all …]
/frameworks/base/telephony/java/android/telephony/ims/stub/
DImsRegistrationImplBase.java224 public final void onRegistered(@NonNull ImsRegistrationAttributes attributes) { in onRegistered() argument
225 updateToState(attributes, RegistrationManager.REGISTRATION_STATE_REGISTERED); in onRegistered()
228 c.onRegistered(attributes); in onRegistered()
249 public final void onRegistering(@NonNull ImsRegistrationAttributes attributes) { in onRegistering() argument
250 updateToState(attributes, RegistrationManager.REGISTRATION_STATE_REGISTERING); in onRegistering()
253 c.onRegistering(attributes); in onRegistering()
332 private void updateToState(ImsRegistrationAttributes attributes, int newState) { in updateToState() argument
334 mRegistrationAttributes = attributes; in updateToState()
364 ImsRegistrationAttributes attributes; in updateNewCallbackWithState() local
370 attributes = mRegistrationAttributes; in updateNewCallbackWithState()
[all …]
/frameworks/base/packages/PrintRecommendationService/src/com/android/printservice/recommendation/plugin/samsung/
DPrinterFilterSamsung.java95 Map<String,byte[]> attributes = resolvedDevice.getAttributes(); in getSamsungModelName() local
96 String usb_mfg = MDNSUtils.getString(attributes.get(ATTR_USB_MFG)); in getSamsungModelName()
98 usb_mfg = MDNSUtils.getString(attributes.get(ATTR_MFG)); in getSamsungModelName()
101 String usb_mdl = MDNSUtils.getString(attributes.get(ATTR_USB_MDL)); in getSamsungModelName()
103 usb_mdl = MDNSUtils.getString(attributes.get(ATTR_MDL)); in getSamsungModelName()
110 modelName = MDNSUtils.getString(attributes.get(ATTR_PRODUCT)); in getSamsungModelName()
112 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/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()
DAsyncPlayer.java43 AudioAttributes attributes; field in AsyncPlayer.Command
47 return "{ code=" + code + " looping=" + looping + " attr=" + attributes in toString()
61 player.setAudioAttributes(cmd.attributes); in startSound()
194 @NonNull AudioAttributes attributes) throws IllegalArgumentException { in play() argument
195 if (context == null || uri == null || attributes == null) { in play()
204 cmd.attributes = attributes; in play()
/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/services/core/java/com/android/server/audio/
DAudioSystemAdapter.java181 @NonNull AudioAttributes attributes) { in getDevicesForAttributes()
183 return getDevicesForAttributesImpl(attributes); in getDevicesForAttributes()
187 final ArrayList<AudioDeviceAttributes> res = getDevicesForAttributesImpl(attributes); in getDevicesForAttributes()
193 @NonNull AudioAttributes attributes) { in getDevicesForAttributesImpl()
197 res = mDevicesForAttrCache.get(attributes); in getDevicesForAttributesImpl()
199 res = AudioSystem.getDevicesForAttributes(attributes); in getDevicesForAttributesImpl()
200 mDevicesForAttrCache.put(attributes, res); in getDevicesForAttributesImpl()
203 + attrDeviceToDebugString(attributes, res)); in getDevicesForAttributesImpl()
211 AudioSystem.getDevicesForAttributes(attributes); in getDevicesForAttributesImpl()
214 + attrDeviceToDebugString(attributes, res) + " CACHE"); in getDevicesForAttributesImpl()
[all …]
/frameworks/base/core/java/android/os/
DVibrator.java338 @Nullable AudioAttributes attributes) { in setAlwaysOnEffect() argument
339 return setAlwaysOnEffect(Process.myUid(), mPackageName, alwaysOnId, effect, attributes); in setAlwaysOnEffect()
347 @Nullable VibrationEffect effect, @Nullable AudioAttributes attributes) { in setAlwaysOnEffect() argument
376 public void vibrate(long milliseconds, AudioAttributes attributes) { in vibrate() argument
381 vibrate(effect, attributes); in vibrate()
437 public void vibrate(long[] pattern, int repeat, AudioAttributes attributes) { in vibrate() argument
447 vibrate(VibrationEffect.createWaveform(pattern, repeat), attributes); in vibrate() local
459 public void vibrate(VibrationEffect vibe, AudioAttributes attributes) { in vibrate() argument
460 vibrate(Process.myUid(), mPackageName, vibe, null, attributes); in vibrate() local
471 String reason, AudioAttributes attributes) { in vibrate() argument
[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/av/media/libaudioclient/tests/
Dtest_create_audiotrack.cpp71 audio_attributes_t attributes; in testTrack() local
108 memset(&attributes, 0, sizeof(attributes)); in testTrack()
109 attributes.content_type = contentType; in testTrack()
110 attributes.usage = usage; in testTrack()
131 &attributes, in testTrack()
Dtest_create_audiorecord.cpp78 audio_attributes_t attributes; in testRecord() local
97 memset(&attributes, 0, sizeof(attributes)); in testRecord()
98 attributes.source = inputSource; in testRecord()
116 &attributes, in testRecord()
/frameworks/av/media/libaudioclient/include/media/
DAudioAttributes.h33 AudioAttributes(const audio_attributes_t &attributes) : mAttributes(attributes) {} // NOLINT in AudioAttributes() argument
36 const audio_attributes_t &attributes) : in AudioAttributes() argument
37 mAttributes(attributes), mStreamType(stream), mGroupId(groupId) {} in AudioAttributes()
/frameworks/base/services/usb/java/com/android/server/usb/descriptors/
DUsbEndpointDescriptor.java148 int attributes = getAttributes(); in report() local
150 canvas.write("Attributes: " + ReportCanvas.getHexString(attributes) + " "); in report()
151 switch (attributes & UsbEndpointDescriptor.MASK_ATTRIBS_TRANSTYPE) { in report()
168 if ((attributes & UsbEndpointDescriptor.MASK_ATTRIBS_TRANSTYPE) in report()
172 switch (attributes & UsbEndpointDescriptor.MASK_ATTRIBS_SYNCTYPE) { in report()
187 switch (attributes & UsbEndpointDescriptor.MASK_ATTRIBS_USEAGE) { in report()
/frameworks/layoutlib/bridge/tests/src/com/android/ide/common/resources/deprecated/
DValueResourceParser.java108 public void startElement(String uri, String localName, String qName, Attributes attributes) in startElement() argument
120 new Object(), (t) -> qName, (t, name) -> attributes.getValue(name)); in startElement()
124 String name = attributes.getValue(ATTR_NAME); in startElement()
128 String parent = attributes.getValue(ATTR_PARENT); in startElement()
161 String name = attributes.getValue(ATTR_NAME); in startElement()
181 String value = attributes.getValue(ATTR_VALUE); in startElement()
200 String name = attributes.getValue(ATTR_NAME); in startElement()
201 String value = attributes.getValue(ATTR_VALUE); in startElement()
212 super.startElement(uri, localName, qName, attributes); in startElement()
/frameworks/base/core/java/android/hardware/usb/
DUsbEndpoint.java43 public UsbEndpoint(int address, int attributes, int maxPacketSize, int interval) { in UsbEndpoint() argument
45 mAttributes = attributes; in UsbEndpoint()
140 int attributes = in.readInt();
143 return new UsbEndpoint(address, attributes, maxPacketSize, interval);
/frameworks/base/core/java/android/text/
DHtml.java784 private void handleStartTag(String tag, Attributes attributes) { in handleStartTag() argument
789 startBlockElement(mSpannableStringBuilder, attributes, getMarginParagraph()); in handleStartTag()
790 startCssStyle(mSpannableStringBuilder, attributes); in handleStartTag()
792 startBlockElement(mSpannableStringBuilder, attributes, getMarginList()); in handleStartTag()
794 startLi(mSpannableStringBuilder, attributes); in handleStartTag()
796 startBlockElement(mSpannableStringBuilder, attributes, getMarginDiv()); in handleStartTag()
798 startCssStyle(mSpannableStringBuilder, attributes); in handleStartTag()
816 startFont(mSpannableStringBuilder, attributes); in handleStartTag()
818 startBlockquote(mSpannableStringBuilder, attributes); in handleStartTag()
822 startA(mSpannableStringBuilder, attributes); in handleStartTag()
[all …]

12345678910