Home
last modified time | relevance | path

Searched refs:attributes (Results 1 – 25 of 228) 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()
553 auto attributes = attribute_status.take(); in TEST_F() local
554 EXPECT_GE(attributes.size(), 2u); in TEST_F()
561 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/core/java/android/os/
DVibrator.java168 @Nullable AudioAttributes attributes) { in setAlwaysOnEffect() argument
169 return setAlwaysOnEffect(Process.myUid(), mPackageName, alwaysOnId, effect, attributes); in setAlwaysOnEffect()
177 @Nullable VibrationEffect effect, @Nullable AudioAttributes attributes) { in setAlwaysOnEffect() argument
208 public void vibrate(long milliseconds, AudioAttributes attributes) { in vibrate() argument
213 vibrate(effect, attributes); in vibrate()
271 public void vibrate(long[] pattern, int repeat, AudioAttributes attributes) { in vibrate() argument
281 vibrate(VibrationEffect.createWaveform(pattern, repeat), attributes); in vibrate() local
293 public void vibrate(VibrationEffect vibe, AudioAttributes attributes) { in vibrate() argument
294 vibrate(Process.myUid(), mPackageName, vibe, null, attributes); in vibrate() local
304 String reason, AudioAttributes attributes); in vibrate() argument
/frameworks/base/media/java/android/media/
DHwAudioSource.java48 private HwAudioSource(@NonNull AudioDeviceInfo device, @NonNull AudioAttributes attributes) { in HwAudioSource() argument
49 super(attributes, AudioPlaybackConfiguration.PLAYER_TYPE_HW_SOURCE); in HwAudioSource()
51 Preconditions.checkNotNull(attributes); in HwAudioSource()
54 mAudioAttributes = attributes; in HwAudioSource()
193 public @NonNull Builder setAudioAttributes(@NonNull AudioAttributes attributes) { in setAudioAttributes() argument
194 Preconditions.checkNotNull(attributes); in setAudioAttributes()
195 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/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/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/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.cpp71 audio_attributes_t attributes; in testRecord() local
90 memset(&attributes, 0, sizeof(attributes)); in testRecord()
91 attributes.source = inputSource; in testRecord()
109 &attributes, in testRecord()
/frameworks/av/media/libaudioclient/include/media/
DAudioAttributes.h31 AudioAttributes(const audio_attributes_t &attributes) : mAttributes(attributes) {} in AudioAttributes() argument
34 const audio_attributes_t &attributes) : in AudioAttributes() argument
35 mAttributes(attributes), mStreamType(stream), mGroupId(groupId) {} in AudioAttributes()
/frameworks/base/core/jni/
Dandroid_media_AudioAttributes.cpp105 JNIEnv* env, jobject *jAudioAttributes, const audio_attributes_t &attributes) in nativeAudioAttributesToJavaAudioAttributes() argument
114 attributes.usage); in nativeAudioAttributesToJavaAudioAttributes()
117 attributes.source); in nativeAudioAttributesToJavaAudioAttributes()
120 attributes.content_type); in nativeAudioAttributesToJavaAudioAttributes()
123 attributes.flags); in nativeAudioAttributesToJavaAudioAttributes()
126 env->NewStringUTF(attributes.tags)); in nativeAudioAttributesToJavaAudioAttributes()
148 JNIEnv* env, jobject *jAudioAttributes, const audio_attributes_t &attributes) in nativeToJava() argument
150 return nativeAudioAttributesToJavaAudioAttributes(env, jAudioAttributes, attributes); in nativeToJava()
/frameworks/base/core/java/android/text/
DHtml.java781 private void handleStartTag(String tag, Attributes attributes) { in handleStartTag() argument
786 startBlockElement(mSpannableStringBuilder, attributes, getMarginParagraph()); in handleStartTag()
787 startCssStyle(mSpannableStringBuilder, attributes); in handleStartTag()
789 startBlockElement(mSpannableStringBuilder, attributes, getMarginList()); in handleStartTag()
791 startLi(mSpannableStringBuilder, attributes); in handleStartTag()
793 startBlockElement(mSpannableStringBuilder, attributes, getMarginDiv()); in handleStartTag()
795 startCssStyle(mSpannableStringBuilder, attributes); in handleStartTag()
813 startFont(mSpannableStringBuilder, attributes); in handleStartTag()
815 startBlockquote(mSpannableStringBuilder, attributes); in handleStartTag()
819 startA(mSpannableStringBuilder, attributes); in handleStartTag()
[all …]
/frameworks/base/services/usb/java/com/android/server/usb/descriptors/
DUsbEndpointDescriptor.java147 int attributes = getAttributes(); in report() local
149 canvas.write("Attributes: " + ReportCanvas.getHexString(attributes) + " "); in report()
150 switch (attributes & UsbEndpointDescriptor.MASK_ATTRIBS_TRANSTYPE) { in report()
167 if ((attributes & UsbEndpointDescriptor.MASK_ATTRIBS_TRANSTYPE) in report()
171 switch (attributes & UsbEndpointDescriptor.MASK_ATTRIBS_SYNCTYPE) { in report()
186 switch (attributes & UsbEndpointDescriptor.MASK_ATTRIBS_USEAGE) { in report()
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
DAudioPolicyMix.cpp148 const audio_attributes_t& attributes, uid_t uid, in getOutputForAttr() argument
180 switch (mixMatch(policyMix.get(), i, attributes, uid)) { in getOutputForAttr()
208 const AudioMix* mix, size_t mixIndex, const audio_attributes_t& attributes, uid_t uid) { in mixMatch() argument
215 if (hasFlag(attributes.flags, AUDIO_FLAG_NO_SYSTEM_CAPTURE)) { in mixMatch()
219 hasFlag(attributes.flags, AUDIO_FLAG_NO_MEDIA_PROJECTION)) { in mixMatch()
222 if (!(attributes.usage == AUDIO_USAGE_UNKNOWN || in mixMatch()
223 attributes.usage == AUDIO_USAGE_MEDIA || in mixMatch()
224 attributes.usage == AUDIO_USAGE_GAME)) { in mixMatch()
248 if (strncmp(attributes.tags, "addr=", strlen("addr=")) == 0 && in mixMatch()
249 strncmp(attributes.tags + strlen("addr="), in mixMatch()
[all …]
/frameworks/native/opengl/tests/hwc/
DhwcTestLib.cpp559 } attributes[] = { in hwcTestColor2Pixel() local
569 for (attrib = attributes; attrib < attributes + NUMA(attributes); in hwcTestColor2Pixel()
573 if (attrib >= attributes + NUMA(attributes)) { in hwcTestColor2Pixel()
611 } attributes[] = { in hwcTestSetPixel() local
638 for (attrib = attributes; attrib < attributes + NUMA(attributes); in hwcTestSetPixel()
642 if (attrib >= attributes + NUMA(attributes)) { in hwcTestSetPixel()
802 } attributes[] = { in hwcTestColorConvert() local
818 for (fromAttrib = attributes; fromAttrib < attributes + NUMA(attributes); in hwcTestColorConvert()
822 if (fromAttrib >= attributes + NUMA(attributes)) { in hwcTestColorConvert()
829 for (toAttrib = attributes; toAttrib < attributes + NUMA(attributes); in hwcTestColorConvert()
[all …]
/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/native/libs/vr/libdisplay/include/private/dvr/
Ddisplay_client.h20 const SurfaceAttributes& attributes) { in CreateSurface() argument
23 if (auto surface = Create(attributes, &error)) in CreateSurface()
36 pdx::Status<void> SetAttributes(const SurfaceAttributes& attributes);
63 explicit Surface(const SurfaceAttributes& attributes, int* error = nullptr);
81 const SurfaceAttributes& attributes);
/frameworks/base/core/java/android/util/jar/
DStrictJarVerifier.java213 Attributes attributes = manifest.getAttributes(name); in initEntry() local
215 if (attributes == null) { in initEntry()
242 final String hash = attributes.getValue(algorithm + "-Digest"); in initEntry()
379 Attributes attributes = new Attributes(); in verifyCertificate() local
382 StrictJarManifestReader im = new StrictJarManifestReader(sfBytes, attributes); in verifyCertificate()
391 attributes.getValue(SF_ATTRIBUTE_ANDROID_APK_SIGNED_NAME); in verifyCertificate()
439 if (attributes.get(Attributes.Name.SIGNATURE_VERSION) == null) { in verifyCertificate()
444 String createdBy = attributes.getValue("Created-By"); in verifyCertificate()
455 … if (!verify(attributes, digestAttribute, manifestBytes, 0, mainAttributesEnd, false, true)) { in verifyCertificate()
462 … if (!verify(attributes, digestAttribute, manifestBytes, 0, manifestBytes.length, false, false)) { in verifyCertificate()
[all …]

12345678910