/frameworks/base/libs/hwui/pipeline/skia/ |
D | RenderNodeDrawable.cpp | 107 return mRenderNode->properties(); in getNodeProperties() 113 if ((!mInReorderingSection) || MathUtils::isZero(mRenderNode->properties().getZ())) { in onDraw() 151 const RenderProperties& properties = this->getNodeProperties(); in forceDraw() local 154 displayList->containsProjectionReceiver() ? &properties.getOutline() : nullptr; in forceDraw() 155 if (!properties.getProjectBackwards()) { in forceDraw() 172 static bool layerNeedsPaint(const LayerProperties& properties, float alphaMultiplier, in layerNeedsPaint() argument 175 if (alphaMultiplier < 1.0f || properties.alpha() < 255 || in layerNeedsPaint() 176 properties.xferMode() != SkBlendMode::kSrcOver || properties.getColorFilter() != nullptr) { in layerNeedsPaint() 177 paint->setAlpha(properties.alpha() * alphaMultiplier); in layerNeedsPaint() 178 paint->setBlendMode(properties.xferMode()); in layerNeedsPaint() [all …]
|
/frameworks/base/libs/hwui/ |
D | RenderNode.cpp | 91 << (MathUtils::isZero(properties().getAlpha()) ? ", zero alpha" : "") in output() 92 << (properties().hasShadow() ? ", casting shadow" : "") in output() 94 << (properties().getProjectBackwards() ? ", projected" : "") in output() 97 properties().debugOutputProperties(output, level + 1); in output() 138 if (properties().getClipDamageToBounds()) { in damageSelf() 139 info.damageAccumulator->dirty(0, 0, properties().getWidth(), properties().getHeight()); in damageSelf() 149 LayerType layerType = properties().effectiveLayerType(); in prepareLayer() 164 LayerType layerType = properties().effectiveLayerType(); in pushLayerUpdate() 168 CC_UNLIKELY(properties().getWidth() == 0) || CC_UNLIKELY(properties().getHeight() == 0) || in pushLayerUpdate() 169 CC_UNLIKELY(!properties().fitsOnLayer())) { in pushLayerUpdate() [all …]
|
D | VectorDrawable.cpp | 128 const FullPathProperties& properties = useStagingData ? mStagingProperties : mProperties; in getUpdatedPath() local 129 bool setFillPath = properties.getFillGradient() != nullptr || in getUpdatedPath() 130 properties.getFillColor() != SK_ColorTRANSPARENT; in getUpdatedPath() 132 SkPath::FillType ft = static_cast<SkPath::FillType>(properties.getFillType()); in getUpdatedPath() 151 const FullPathProperties& properties = useStagingData ? mStagingProperties : mProperties; in draw() local 158 if (properties.getFillGradient() != nullptr) { in draw() 159 paint.setColor(applyAlpha(SK_ColorBLACK, properties.getFillAlpha())); in draw() 160 paint.setShader(sk_sp<SkShader>(SkSafeRef(properties.getFillGradient()))); in draw() 162 } else if (properties.getFillColor() != SK_ColorTRANSPARENT) { in draw() 163 paint.setColor(applyAlpha(properties.getFillColor(), properties.getFillAlpha())); in draw() [all …]
|
/frameworks/base/libs/hwui/tests/unit/ |
D | SkiaRenderPropertiesTests.cpp | 77 [](RenderProperties& properties) { in TEST() argument 78 properties.setClipToBounds(true); in TEST() 79 properties.setClipBounds(android::uirenderer::Rect(10, 20, 300, 400)); in TEST() 89 [](RenderProperties& properties) { in TEST() argument 90 properties.mutableRevealClip().set(true, 50, 50, 25); in TEST() 99 [](RenderProperties& properties) { in TEST() argument 100 properties.mutableOutline().setShouldClip(true); in TEST() 101 properties.mutableOutline().setRoundRect(10, 20, 30, 40, 5.0f, 0.5f); in TEST() 110 [](RenderProperties& properties) { in TEST() argument 111 properties.setLeftTopRightBottom(10, 10, 110, 110); in TEST() [all …]
|
D | VectorDrawableTests.cpp | 361 VectorDrawable::Group::GroupProperties* properties = group.mutateProperties(); in TEST() local 363 EXPECT_EQ(0.0f, properties->getTranslateX()); in TEST() 364 properties->setTranslateX(1.0f); in TEST() 365 EXPECT_EQ(1.0f, properties->getTranslateX()); in TEST() 367 EXPECT_EQ(0.0f, properties->getTranslateY()); in TEST() 368 properties->setTranslateY(1.0f); in TEST() 369 EXPECT_EQ(1.0f, properties->getTranslateY()); in TEST() 371 EXPECT_EQ(0.0f, properties->getRotation()); in TEST() 372 properties->setRotation(1.0f); in TEST() 373 EXPECT_EQ(1.0f, properties->getRotation()); in TEST() [all …]
|
D | RenderNodeDrawableTests.cpp | 55 ASSERT_EQ(&drawable.getNodeProperties(), &rootNode->properties()); in TEST() 286 [](RenderProperties& properties, SkiaRecordingCanvas& canvas) { in RENDERTHREAD_TEST() argument 287 properties.setProjectionReceiver(true); in RENDERTHREAD_TEST() 291 properties.setTranslationX(SCROLL_X); in RENDERTHREAD_TEST() 292 properties.setTranslationY(SCROLL_Y); in RENDERTHREAD_TEST() 302 [](RenderProperties& properties, SkiaRecordingCanvas& canvas) { in RENDERTHREAD_TEST() argument 303 properties.setProjectBackwards(true); in RENDERTHREAD_TEST() 304 properties.setClipToBounds(false); in RENDERTHREAD_TEST() 312 [&projectingRipple](RenderProperties& properties, SkiaRecordingCanvas& canvas) { in RENDERTHREAD_TEST() argument 321 [&receiverBackground, &child](RenderProperties& properties, in RENDERTHREAD_TEST() [all …]
|
/frameworks/native/vulkan/vkjson/ |
D | vkjson.cc | 346 inline bool Iterate(Visitor* visitor, VkImageFormatProperties* properties) { in Iterate() argument 348 visitor->Visit("maxExtent", &properties->maxExtent) && in Iterate() 349 visitor->Visit("maxMipLevels", &properties->maxMipLevels) && in Iterate() 350 visitor->Visit("maxArrayLayers", &properties->maxArrayLayers) && in Iterate() 351 visitor->Visit("sampleCounts", &properties->sampleCounts) && in Iterate() 352 visitor->Visit("maxResourceSize", &properties->maxResourceSize); in Iterate() 468 VkPhysicalDeviceSparseProperties* properties) { in Iterate() argument 470 visitor->Visit("residencyStandard2DBlockShape", &properties->residencyStandard2DBlockShape) && in Iterate() 471 …visitor->Visit("residencyStandard2DMultisampleBlockShape", &properties->residencyStandard2DMultisa… in Iterate() 472 visitor->Visit("residencyStandard3DBlockShape", &properties->residencyStandard3DBlockShape) && in Iterate() [all …]
|
D | vkjson.h | 51 VkLayerProperties properties; member 77 memset(&properties, 0, sizeof(VkPhysicalDeviceProperties)); in VkJsonDevice() 100 VkPhysicalDeviceProperties properties; member 129 memset(&properties, 0, sizeof(VkPhysicalDeviceGroupProperties)); in VkJsonDeviceGroup() 131 VkPhysicalDeviceGroupProperties properties; member 160 const VkImageFormatProperties& properties); 162 VkImageFormatProperties* properties, 172 const VkJsonAllProperties& properties) { in VkJsonAllPropertiesToJson() argument 173 return VkJsonDeviceToJson(properties); in VkJsonAllPropertiesToJson() 176 VkJsonAllProperties* properties, in VkJsonAllPropertiesFromJson() argument [all …]
|
D | vkjson_unittest.cc | 53 memcpy(device.properties.deviceName, name, sizeof(name)); in main() 54 device.properties.limits.maxImageDimension1D = 3; in main() 55 device.properties.limits.maxSamplerLodBias = 3.5f; in main() 56 device.properties.limits.bufferImageGranularity = 0x1ffffffffull; in main() 57 device.properties.limits.maxViewportDimensions[0] = 1; in main() 58 device.properties.limits.maxViewportDimensions[1] = 2; in main() 76 EXPECT(!memcmp(&device.properties, &device2.properties, in main() 77 sizeof(device.properties))); in main()
|
D | vkjson_instance.cc | 108 VkPhysicalDeviceProperties2KHR properties = { in VkJsonGetDevice() local 118 properties.pNext; in VkJsonGetDevice() 119 properties.pNext = in VkJsonGetDevice() 122 vkpGetPhysicalDeviceProperties2KHR(physical_device, &properties); in VkJsonGetDevice() 123 device.properties = properties.properties; in VkJsonGetDevice() 142 vkGetPhysicalDeviceProperties(physical_device, &device.properties); in VkJsonGetDevice() 169 if (device.properties.apiVersion >= VK_API_VERSION_1_1) { in VkJsonGetDevice() 428 for (auto properties : group_properties) { in VkJsonGetInstance() local 429 device_group.properties = properties; in VkJsonGetInstance() 430 for (uint32_t i = 0; i < properties.physicalDeviceCount; ++i) { in VkJsonGetInstance() [all …]
|
/frameworks/base/location/java/android/location/ |
D | LocationProvider.java | 74 public LocationProvider(String name, ProviderProperties properties) { in LocationProvider() argument 79 mProperties = properties; in LocationProvider() 100 public static boolean propertiesMeetCriteria(String name, ProviderProperties properties, in propertiesMeetCriteria() argument 106 if (properties == null) { in propertiesMeetCriteria() 113 criteria.getAccuracy() < properties.mAccuracy) { in propertiesMeetCriteria() 117 criteria.getPowerRequirement() < properties.mPowerRequirement) { in propertiesMeetCriteria() 120 if (criteria.isAltitudeRequired() && !properties.mSupportsAltitude) { in propertiesMeetCriteria() 123 if (criteria.isSpeedRequired() && !properties.mSupportsSpeed) { in propertiesMeetCriteria() 126 if (criteria.isBearingRequired() && !properties.mSupportsBearing) { in propertiesMeetCriteria() 129 if (!criteria.isCostAllowed() && properties.mHasMonetaryCost) { in propertiesMeetCriteria()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/animation/ |
D | AppearAnimationUtils.java | 71 AppearAnimationProperties properties = getDelays(objects); in startAnimation2d() local 72 startAnimations(properties, objects, finishListener, creator); in startAnimation2d() 77 AppearAnimationProperties properties = getDelays(objects); in startAnimation() local 78 startAnimations(properties, objects, finishListener, creator); in startAnimation() 81 private <T> void startAnimations(AppearAnimationProperties properties, T[] objects, in startAnimations() argument 83 if (properties.maxDelayRowIndex == -1 || properties.maxDelayColIndex == -1) { in startAnimations() 87 for (int row = 0; row < properties.delays.length; row++) { in startAnimations() 88 long[] columns = properties.delays[row]; in startAnimations() 91 if (properties.maxDelayRowIndex == row && properties.maxDelayColIndex == 0) { in startAnimations() 95 ? mRowTranslationScaler.getRowTranslationScale(row, properties.delays.length) in startAnimations() [all …]
|
/frameworks/layoutlib/bridge/src/android/os/ |
D | SystemProperties_Delegate.java | 43 Map<String, String> properties = Bridge.getPlatformProperties(); in native_get() local 44 String value = properties.get(key); in native_get() 53 Map<String, String> properties = Bridge.getPlatformProperties(); in native_get_int() local 54 String value = properties.get(key); in native_get_int() 64 Map<String, String> properties = Bridge.getPlatformProperties(); in native_get_long() local 65 String value = properties.get(key); in native_get_long() 79 Map<String, String> properties = Bridge.getPlatformProperties(); in native_get_boolean() local 80 String value = properties.get(key); in native_get_boolean() 97 Map<String, String> properties = Bridge.getPlatformProperties(); in native_set() local 98 properties.put(key, def); in native_set()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/ |
D | ExpandableViewState.java | 175 public void animateTo(View child, AnimationProperties properties) { in animateTo() argument 176 super.animateTo(child, properties); in animateTo() 181 AnimationFilter animationFilter = properties.getAnimationFilter(); in animateTo() 185 startHeightAnimation(expandableView, properties); in animateTo() 192 startInsetAnimation(expandableView, properties); in animateTo() 205 properties.delay, properties.duration); in animateTo() 207 if (properties.wasAdded(child) && !hidden) { in animateTo() 208 expandableView.performAddAnimation(properties.delay, properties.duration, in animateTo() 222 private void startHeightAnimation(final ExpandableView child, AnimationProperties properties) { in startHeightAnimation() argument 230 AnimationFilter filter = properties.getAnimationFilter(); in startHeightAnimation() [all …]
|
D | ViewState.java | 329 private void startAlphaAnimation(final View child, AnimationProperties properties) { in startAlphaAnimation() argument 337 AnimationFilter filter = properties.getAnimationFilter(); in startAlphaAnimation() 390 long newDuration = cancelAnimatorAndGetNewDuration(properties.duration, previousAnimator); in startAlphaAnimation() 392 if (properties.delay > 0 && (previousAnimator == null in startAlphaAnimation() 394 animator.setStartDelay(properties.delay); in startAlphaAnimation() 396 AnimatorListenerAdapter listener = properties.getAnimationFinishListener(); in startAlphaAnimation() 416 private void startZTranslationAnimation(final View child, AnimationProperties properties) { in startZTranslationAnimation() argument 424 AnimationFilter filter = properties.getAnimationFilter(); in startZTranslationAnimation() 447 long newDuration = cancelAnimatorAndGetNewDuration(properties.duration, previousAnimator); in startZTranslationAnimation() 449 if (properties.delay > 0 && (previousAnimator == null in startZTranslationAnimation() [all …]
|
/frameworks/base/services/usb/java/com/android/server/usb/ |
D | UsbAlsaManager.java | 265 Bundle properties = new Bundle(); in usbDeviceAdded() local 277 properties.putString(MidiDeviceInfo.PROPERTY_NAME, name); in usbDeviceAdded() 278 properties.putString(MidiDeviceInfo.PROPERTY_MANUFACTURER, manufacturer); in usbDeviceAdded() 279 properties.putString(MidiDeviceInfo.PROPERTY_PRODUCT, product); in usbDeviceAdded() 280 properties.putString(MidiDeviceInfo.PROPERTY_VERSION, version); in usbDeviceAdded() 281 properties.putString(MidiDeviceInfo.PROPERTY_SERIAL_NUMBER, in usbDeviceAdded() 283 properties.putInt(MidiDeviceInfo.PROPERTY_ALSA_CARD, cardRec.getCardNum()); in usbDeviceAdded() 284 properties.putInt(MidiDeviceInfo.PROPERTY_ALSA_DEVICE, 0 /*deviceNum*/); in usbDeviceAdded() 285 properties.putParcelable(MidiDeviceInfo.PROPERTY_USB_DEVICE, usbDevice); in usbDeviceAdded() 287 UsbMidiDevice usbMidiDevice = UsbMidiDevice.create(mContext, properties, in usbDeviceAdded() [all …]
|
/frameworks/av/media/libstagefright/xmlparser/test/ |
D | XMLParserTest.cpp | 221 const MediaCodecsXmlParser::CodecProperties &properties = mcodec.second; in printCodecMap() local 222 bool isEncoder = properties.isEncoder; in printCodecMap() 224 size_t order = properties.order; in printCodecMap() 226 string rank = properties.rank; in printCodecMap() 229 for (auto &itrQuirkSet : properties.quirkSet) { in printCodecMap() 233 for (auto &itrDomainSet : properties.domainSet) { in printCodecMap() 237 for (auto &itrVariantSet : properties.variantSet) { in printCodecMap() 241 map<string, MediaCodecsXmlParser::AttributeMap> TypeMap = properties.typeMap; in printCodecMap() 290 const MediaCodecsXmlParser::CodecProperties &properties = mcodec.second; in TEST_F() local 291 int32_t index = properties.order - 1; in TEST_F() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/ |
D | PropertyAnimator.java | 39 AnimationProperties properties, boolean animated) { in setProperty() argument 43 startAnimation(view, animatableProperty, newEndValue, properties); in setProperty() 52 AnimationProperties properties) { in startAnimation() argument 63 AnimationFilter filter = properties.getAnimationFilter(); in startAnimation() 88 Interpolator customInterpolator = properties.getCustomInterpolator(view, property); in startAnimation() 92 long newDuration = ViewState.cancelAnimatorAndGetNewDuration(properties.duration, in startAnimation() 95 if (properties.delay > 0 && (previousAnimator == null in startAnimation() 97 animator.setStartDelay(properties.delay); in startAnimation() 99 AnimatorListenerAdapter listener = properties.getAnimationFinishListener(); in startAnimation()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
D | FlingAnimationUtils.java | 141 AnimatorProperties properties = getProperties(currValue, endValue, velocity, in apply() local 143 animator.setDuration(properties.duration); in apply() 144 animator.setInterpolator(properties.interpolator); in apply() 160 AnimatorProperties properties = getProperties(currValue, endValue, velocity, in apply() local 162 animator.setDuration(properties.duration); in apply() 163 animator.setInterpolator(properties.interpolator); in apply() 237 AnimatorProperties properties = getDismissingProperties(currValue, endValue, velocity, in applyDismissing() local 239 animator.setDuration(properties.duration); in applyDismissing() 240 animator.setInterpolator(properties.interpolator); in applyDismissing() 257 AnimatorProperties properties = getDismissingProperties(currValue, endValue, velocity, in applyDismissing() local [all …]
|
/frameworks/base/tools/processors/view_inspector/src/java/android/processor/view/inspector/ |
D | InspectionCompanionGenerator.java | 144 final List<Property> properties = new ArrayList<>(model.getAllProperties()); in generateTypeSpec() local 145 properties.sort(Comparator.comparing(Property::getName)); in generateTypeSpec() 147 final Map<Property, FieldSpec> fields = generateIdFieldSpecs(properties); in generateTypeSpec() 162 .addFields(properties.stream().map(fields::get).collect(Collectors.toList())) in generateTypeSpec() 163 .addMethod(generateMapProperties(properties, fields)) in generateTypeSpec() 164 .addMethod(generateReadProperties(properties, fields, model.getClassName())); in generateTypeSpec() 176 private Map<Property, FieldSpec> generateIdFieldSpecs(@NonNull List<Property> properties) { in generateIdFieldSpecs() argument 181 for (Property property : properties) { in generateIdFieldSpecs() 216 @NonNull List<Property> properties, in generateMapProperties() 228 properties.forEach(p -> mappingVariables.newName(fields.get(p).name)); in generateMapProperties() [all …]
|
/frameworks/native/vulkan/nulldrv/ |
D | null_driver.cpp | 271 VkExtensionProperties* properties) { in EnumerateInstanceExtensionProperties() argument 284 if (!properties || *count > kExtensionsCount) in EnumerateInstanceExtensionProperties() 286 if (properties) in EnumerateInstanceExtensionProperties() 287 std::copy(kExtensions, kExtensions + *count, properties); in EnumerateInstanceExtensionProperties() 375 VkExtensionProperties* properties) { in EnumerateDeviceExtensionProperties() argument 391 if (!properties || *count > kExtensionsCount) in EnumerateDeviceExtensionProperties() 393 if (properties) in EnumerateDeviceExtensionProperties() 394 std::copy(kExtensions, kExtensions + *count, properties); in EnumerateDeviceExtensionProperties() 399 VkPhysicalDeviceProperties* properties) { in GetPhysicalDeviceProperties() argument 400 properties->apiVersion = VK_MAKE_VERSION(1, 0, VK_HEADER_VERSION); in GetPhysicalDeviceProperties() [all …]
|
/frameworks/base/core/tests/coretests/src/android/view/ |
D | MotionEventTest.java | 41 PointerProperties[] properties = new PointerProperties[pointerCount]; in testObtainWithDisplayId() local 51 properties[i] = p; in testObtainWithDisplayId() 56 pointerCount, properties, coords, in testObtainWithDisplayId() 74 properties[0] = null; in testObtainWithDisplayId() 76 pointerCount, properties, coords, in testObtainWithDisplayId()
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/testables/ |
D | TestableDeviceConfigTest.java | 96 OnPropertiesChangedListener changeListener = (properties) -> { in testListener() 97 assertThat(properties.getNamespace()).isEqualTo(sNamespace); in testListener() 98 assertThat(properties.getKeyset().size()).isEqualTo(1); in testListener() 99 assertThat(properties.getKeyset()).contains(sKey); in testListener() 100 assertThat(properties.getString(sKey, "bogus_value")).isEqualTo(sValue); in testListener() 101 assertThat(properties.getString("bogus_key", "bogus_value")).isEqualTo("bogus_value"); in testListener()
|
D | TestableDeviceConfig.java | 162 Properties properties = Mockito.mock(Properties.class); 163 when(properties.getNamespace()).thenReturn(namespace); 164 when(properties.getKeyset()).thenReturn(Collections.singleton(name)); 165 when(properties.getBoolean(anyString(), anyBoolean())).thenAnswer( 176 when(properties.getFloat(anyString(), anyFloat())).thenAnswer( 191 when(properties.getInt(anyString(), anyInt())).thenAnswer( 206 when(properties.getLong(anyString(), anyLong())).thenAnswer( 221 when(properties.getString(anyString(), anyString())).thenAnswer( 233 return properties;
|
/frameworks/wilhelm/src/itf/ |
D | IEnvironmentalReverb.cpp | 650 SLEnvironmentalReverbSettings properties = *pProperties; in IEnvironmentalReverb_SetEnvironmentalReverbProperties() local 651 if (!(properties.roomLevel <= 0)) in IEnvironmentalReverb_SetEnvironmentalReverbProperties() 653 if (!(properties.roomHFLevel <= 0)) in IEnvironmentalReverb_SetEnvironmentalReverbProperties() 655 if (!(100 <= properties.decayTime && properties.decayTime <= 20000)) in IEnvironmentalReverb_SetEnvironmentalReverbProperties() 657 if (!(100 <= properties.decayHFRatio && properties.decayHFRatio <= 2000)) in IEnvironmentalReverb_SetEnvironmentalReverbProperties() 659 if (!(properties.reflectionsLevel <= 1000)) in IEnvironmentalReverb_SetEnvironmentalReverbProperties() 661 if (!(/* 0 <= properties.reflectionsDelay && */ properties.reflectionsDelay <= 300)) in IEnvironmentalReverb_SetEnvironmentalReverbProperties() 663 if (!(properties.reverbLevel <= 2000)) in IEnvironmentalReverb_SetEnvironmentalReverbProperties() 665 if (!(/* 0 <= properties.reverbDelay && */ properties.reverbDelay <= 100)) in IEnvironmentalReverb_SetEnvironmentalReverbProperties() 667 if (!(0 <= properties.diffusion && properties.diffusion <= 1000)) in IEnvironmentalReverb_SetEnvironmentalReverbProperties() [all …]
|