/frameworks/base/libs/hwui/pipeline/skia/ |
D | RenderNodeDrawable.cpp | 122 return mRenderNode->properties(); in getNodeProperties() 128 if ((!mInReorderingSection) || MathUtils::isZero(mRenderNode->properties().getZ())) { in onDraw() 166 const RenderProperties& properties = this->getNodeProperties(); in forceDraw() local 169 displayList->containsProjectionReceiver() ? &properties.getOutline() : nullptr; in forceDraw() 170 if (!properties.getProjectBackwards()) { in forceDraw() 187 static bool layerNeedsPaint(const LayerProperties& properties, float alphaMultiplier, in layerNeedsPaint() argument 189 if (alphaMultiplier < 1.0f || properties.alpha() < 255 || in layerNeedsPaint() 190 properties.xferMode() != SkBlendMode::kSrcOver || properties.getColorFilter() != nullptr || in layerNeedsPaint() 191 properties.getStretchEffect().requiresLayer()) { in layerNeedsPaint() 192 paint->setAlpha(properties.alpha() * alphaMultiplier); in layerNeedsPaint() [all …]
|
D | BackdropFilterDrawable.cpp | 34 bool BackdropFilterDrawable::prepareToDraw(SkCanvas* canvas, const RenderProperties& properties, in prepareToDraw() argument 37 mDstBounds.setWH(properties.getWidth(), properties.getHeight()); in prepareToDraw() 40 RenderNodeDrawable::setViewProperties(properties, canvas, &alphaMultiplier, true); in prepareToDraw() 59 mPaint.setAlpha(properties.layerProperties().alpha() * alphaMultiplier); in prepareToDraw() 64 const RenderProperties& properties = mTargetRenderNode->properties(); in onDraw() local 65 auto* backdropFilter = properties.layerProperties().getBackdropImageFilter(); in onDraw() 73 if (!prepareToDraw(canvas, properties, backdropImage->width(), backdropImage->height())) { in onDraw()
|
/frameworks/native/vulkan/vkjson/ |
D | vkjson.cc | 414 inline bool Iterate(Visitor* visitor, VkImageFormatProperties* properties) { in Iterate() argument 416 visitor->Visit("maxExtent", &properties->maxExtent) && in Iterate() 417 visitor->Visit("maxMipLevels", &properties->maxMipLevels) && in Iterate() 418 visitor->Visit("maxArrayLayers", &properties->maxArrayLayers) && in Iterate() 419 visitor->Visit("sampleCounts", &properties->sampleCounts) && in Iterate() 420 visitor->Visit("maxResourceSize", &properties->maxResourceSize); in Iterate() 537 VkPhysicalDeviceSparseProperties* properties) { in Iterate() argument 539 visitor->Visit("residencyStandard2DBlockShape", &properties->residencyStandard2DBlockShape) && in Iterate() 540 …visitor->Visit("residencyStandard2DMultisampleBlockShape", &properties->residencyStandard2DMultisa… in Iterate() 541 visitor->Visit("residencyStandard3DBlockShape", &properties->residencyStandard3DBlockShape) && in Iterate() [all …]
|
D | vkjson_instance.cc | 77 VkPhysicalDeviceProperties2 properties = { in VkJsonGetDevice() local 86 device.ext_driver_properties.driver_properties_khr.pNext = properties.pNext; in VkJsonGetDevice() 87 properties.pNext = &device.ext_driver_properties.driver_properties_khr; in VkJsonGetDevice() 89 vkGetPhysicalDeviceProperties2(physical_device, &properties); in VkJsonGetDevice() 90 device.properties = properties.properties; in VkJsonGetDevice() 145 if (device.properties.apiVersion >= VK_API_VERSION_1_1) { in VkJsonGetDevice() 162 device.subgroup_properties.pNext = properties.pNext; in VkJsonGetDevice() 163 properties.pNext = &device.subgroup_properties; in VkJsonGetDevice() 167 device.point_clipping_properties.pNext = properties.pNext; in VkJsonGetDevice() 168 properties.pNext = &device.point_clipping_properties; in VkJsonGetDevice() [all …]
|
D | vkjson.h | 43 VkLayerProperties properties; member 78 VkPhysicalDeviceVulkan12Properties properties; member 83 VkPhysicalDeviceVulkan13Properties properties; member 89 memset(&properties, 0, sizeof(VkPhysicalDeviceProperties)); in VkJsonDevice() 114 VkPhysicalDeviceProperties properties; member 146 memset(&properties, 0, sizeof(VkPhysicalDeviceGroupProperties)); in VkJsonDeviceGroup() 148 VkPhysicalDeviceGroupProperties properties; member 174 const VkImageFormatProperties& properties); 176 VkImageFormatProperties* properties, 186 const VkJsonAllProperties& properties) { in VkJsonAllPropertiesToJson() argument [all …]
|
/frameworks/base/libs/hwui/tests/unit/ |
D | SkiaRenderPropertiesTests.cpp | 79 [](RenderProperties& properties) { in TEST() argument 80 properties.setClipToBounds(true); in TEST() 81 properties.setClipBounds(android::uirenderer::Rect(10, 20, 300, 400)); in TEST() 91 [](RenderProperties& properties) { in TEST() argument 92 properties.mutableRevealClip().set(true, 50, 50, 25); in TEST() 101 [](RenderProperties& properties) { in TEST() argument 102 properties.mutableOutline().setShouldClip(true); in TEST() 103 properties.mutableOutline().setRoundRect(10, 20, 30, 40, 5.0f, 0.5f); in TEST() 112 [](RenderProperties& properties) { in TEST() argument 113 properties.setLeftTopRightBottom(10, 10, 110, 110); in TEST() [all …]
|
D | VectorDrawableTests.cpp | 367 VectorDrawable::Group::GroupProperties* properties = group.mutateProperties(); in TEST() local 369 EXPECT_EQ(0.0f, properties->getTranslateX()); in TEST() 370 properties->setTranslateX(1.0f); in TEST() 371 EXPECT_EQ(1.0f, properties->getTranslateX()); in TEST() 373 EXPECT_EQ(0.0f, properties->getTranslateY()); in TEST() 374 properties->setTranslateY(1.0f); in TEST() 375 EXPECT_EQ(1.0f, properties->getTranslateY()); in TEST() 377 EXPECT_EQ(0.0f, properties->getRotation()); in TEST() 378 properties->setRotation(1.0f); in TEST() 379 EXPECT_EQ(1.0f, properties->getRotation()); in TEST() [all …]
|
/frameworks/libs/modules-utils/javatests/com/android/modules/utils/testing/ |
D | TestableDeviceConfigTest.java | 135 Properties properties = DeviceConfig.getProperties(sNamespace); in getProperties_empty() local 136 assertThat(properties.getString(sKey, null)).isEqualTo(sValue); in getProperties_empty() 137 assertThat(properties.getString(newKey, null)).isNull(); in getProperties_empty() 140 properties = DeviceConfig.getProperties(sNamespace); in getProperties_empty() 141 assertThat(properties.getString(sKey, null)).isEqualTo(sValue); in getProperties_empty() 142 assertThat(properties.getString(newKey, null)).isEqualTo(newValue); in getProperties_empty() 150 Properties properties = DeviceConfig.getProperties(sNamespace, sKey); in getProperties() local 151 assertThat(properties.getString(sKey, null)).isNull(); in getProperties() 154 properties = DeviceConfig.getProperties(sNamespace, sKey); in getProperties() 155 assertThat(properties.getString(sKey, null)).isEqualTo(sValue); in getProperties() [all …]
|
/frameworks/base/services/tests/voiceinteractiontests/src/com/android/server/soundtrigger_middleware/ |
D | TestUtil.java | 167 android.hardware.soundtrigger.V2_0.ISoundTriggerHw.Properties properties = in createDefaultProperties_2_0() local 169 properties.implementor = "implementor"; in createDefaultProperties_2_0() 170 properties.description = "description"; in createDefaultProperties_2_0() 171 properties.version = 123; in createDefaultProperties_2_0() 172 properties.uuid.timeLow = 1; in createDefaultProperties_2_0() 173 properties.uuid.timeMid = 2; in createDefaultProperties_2_0() 174 properties.uuid.versionAndTimeHigh = 3; in createDefaultProperties_2_0() 175 properties.uuid.variantAndClockSeqHigh = 4; in createDefaultProperties_2_0() 176 properties.uuid.node = new byte[]{5, 6, 7, 8, 9, 10}; in createDefaultProperties_2_0() 178 properties.maxSoundModels = 456; in createDefaultProperties_2_0() [all …]
|
/frameworks/base/core/tests/coretests/src/android/provider/ |
D | DeviceConfigTest.java | 496 Properties properties = DeviceConfig.getProperties(NAMESPACE); in getProperties_fullNamespace() local 497 assertThat(properties.getKeyset()).isEmpty(); in getProperties_fullNamespace() 501 properties = DeviceConfig.getProperties(NAMESPACE); in getProperties_fullNamespace() 502 assertThat(properties.getKeyset()).containsExactly(KEY, KEY2); in getProperties_fullNamespace() 503 assertThat(properties.getString(KEY, DEFAULT_VALUE)).isEqualTo(VALUE); in getProperties_fullNamespace() 504 assertThat(properties.getString(KEY2, DEFAULT_VALUE)).isEqualTo(VALUE2); in getProperties_fullNamespace() 507 properties = DeviceConfig.getProperties(NAMESPACE); in getProperties_fullNamespace() 508 assertThat(properties.getKeyset()).containsExactly(KEY, KEY2); in getProperties_fullNamespace() 509 assertThat(properties.getString(KEY, DEFAULT_VALUE)).isEqualTo(VALUE3); in getProperties_fullNamespace() 510 assertThat(properties.getString(KEY2, DEFAULT_VALUE)).isEqualTo(VALUE2); in getProperties_fullNamespace() [all …]
|
/frameworks/base/libs/hwui/ |
D | RenderNode.cpp | 100 << (MathUtils::isZero(properties().getAlpha()) ? ", zero alpha" : "") in output() 101 << (properties().hasShadow() ? ", casting shadow" : "") in output() 103 << (properties().getProjectBackwards() ? ", projected" : "") in output() 106 properties().debugOutputProperties(output, level + 1); in output() 156 if (properties().getClipDamageToBounds()) { in damageSelf() 157 info.damageAccumulator->dirty(0, 0, properties().getWidth(), properties().getHeight()); in damageSelf() 170 LayerType layerType = properties().effectiveLayerType(); in prepareLayer() 185 LayerType layerType = properties().effectiveLayerType(); in pushLayerUpdate() 189 CC_UNLIKELY(properties().getWidth() == 0) || CC_UNLIKELY(properties().getHeight() == 0) || in pushLayerUpdate() 190 CC_UNLIKELY(!properties().fitsOnLayer())) { in pushLayerUpdate() [all …]
|
D | VectorDrawable.cpp | 131 const FullPathProperties& properties = useStagingData ? mStagingProperties : mProperties; in getUpdatedPath() local 132 bool setFillPath = properties.getFillGradient() != nullptr || in getUpdatedPath() 133 properties.getFillColor() != SK_ColorTRANSPARENT; in getUpdatedPath() 135 outPath->setFillType(static_cast<SkPathFillType>(properties.getFillType())); in getUpdatedPath() 153 const FullPathProperties& properties = useStagingData ? mStagingProperties : mProperties; in draw() local 160 if (properties.getFillGradient() != nullptr) { in draw() 161 paint.setColor(applyAlpha(SK_ColorBLACK, properties.getFillAlpha())); in draw() 162 paint.setShader(sk_sp<SkShader>(SkSafeRef(properties.getFillGradient()))); in draw() 164 } else if (properties.getFillColor() != SK_ColorTRANSPARENT) { in draw() 165 paint.setColor(applyAlpha(properties.getFillColor(), properties.getFillAlpha())); in draw() [all …]
|
/frameworks/base/location/java/android/location/ |
D | LocationProvider.java | 54 LocationProvider(String name, @Nullable ProviderProperties properties) { in LocationProvider() argument 56 mProperties = properties; in LocationProvider() 77 public static boolean propertiesMeetCriteria(String name, ProviderProperties properties, in propertiesMeetCriteria() argument 83 if (properties == null) { in propertiesMeetCriteria() 90 criteria.getAccuracy() < properties.getAccuracy()) { in propertiesMeetCriteria() 94 criteria.getPowerRequirement() < properties.getPowerUsage()) { in propertiesMeetCriteria() 97 if (criteria.isAltitudeRequired() && !properties.hasAltitudeSupport()) { in propertiesMeetCriteria() 100 if (criteria.isSpeedRequired() && !properties.hasSpeedSupport()) { in propertiesMeetCriteria() 103 if (criteria.isBearingRequired() && !properties.hasBearingSupport()) { in propertiesMeetCriteria() 106 if (!criteria.isCostAllowed() && properties.hasMonetaryCost()) { in propertiesMeetCriteria()
|
/frameworks/native/libs/input/tests/ |
D | InputVerifier_test.cpp | 34 std::vector<PointerProperties> properties; in TEST() local 35 properties.push_back({}); in TEST() 36 properties.back().clear(); in TEST() 37 properties.back().id = 0; in TEST() 38 properties.back().toolType = ToolType::UNKNOWN; in TEST() 49 /*pointerCount=*/properties.size(), properties.data(), in TEST()
|
/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/base/services/core/java/com/android/server/media/ |
D | MediaSessionDeviceConfig.java | 61 private static void refresh(DeviceConfig.Properties properties) { in refresh() argument 62 final Set<String> keys = properties.getKeyset(); in refresh() 63 properties.getKeyset().forEach(key -> { in refresh() 66 sMediaButtonReceiverFgsAllowlistDurationMs = properties.getLong(key, in refresh() 70 sMediaSessionCallbackFgsAllowlistDurationMs = properties.getLong(key, in refresh() 74 sMediaSessionCallbackFgsWhileInUseTempAllowDurationMs = properties.getLong(key, in refresh() 82 context.getMainExecutor(), properties -> refresh(properties)); in initialize()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/ |
D | ExpandableViewState.java | 185 public void animateTo(View child, AnimationProperties properties) { in animateTo() argument 186 super.animateTo(child, properties); in animateTo() 191 AnimationFilter animationFilter = properties.getAnimationFilter(); in animateTo() 195 startHeightAnimation(expandableView, properties); in animateTo() 202 startClipAnimation(expandableView, properties, /* clipTop */true); in animateTo() 209 startClipAnimation(expandableView, properties, /* clipTop */ false); in animateTo() 221 properties.delay, properties.duration); in animateTo() 223 if (properties.wasAdded(child) && !hidden) { in animateTo() 224 expandableView.performAddAnimation(properties.delay, properties.duration, in animateTo() 238 private void startHeightAnimation(final ExpandableView child, AnimationProperties properties) { in startHeightAnimation() argument [all …]
|
/frameworks/base/services/core/java/com/android/server/location/provider/ |
D | AbstractLocationProvider.java | 83 @Nullable public final ProviderProperties properties; field in AbstractLocationProvider.State 96 private State(boolean allowed, ProviderProperties properties, CallerIdentity identity, in State() argument 99 this.properties = properties; in State() 111 return new State(allowed, properties, identity, extraAttributionTags); in withAllowed() 118 public State withProperties(@Nullable ProviderProperties properties) { in withProperties() argument 119 if (Objects.equals(properties, this.properties)) { in withProperties() 122 return new State(allowed, properties, identity, extraAttributionTags); in withProperties() 133 return new State(allowed, properties, identity, extraAttributionTags); in withIdentity() 144 return new State(allowed, properties, identity, extraAttributionTags); in withExtraAttributionTags() 158 return allowed == state.allowed && properties == state.properties in equals() [all …]
|
/frameworks/base/core/java/android/app/admin/ |
D | ProvisioningIntentHelper.java | 104 Properties properties = loadPropertiesFromPayload(firstRecord.getPayload()); in createProvisioningIntentFromNdefRecord() local 106 if (properties == null) { in createProvisioningIntentFromNdefRecord() 111 Bundle bundle = createBundleFromProperties(properties); in createProvisioningIntentFromNdefRecord() 122 Properties properties = new Properties(); in loadPropertiesFromPayload() local 125 properties.load(new StringReader(new String(payload, UTF_8))); in loadPropertiesFromPayload() 131 return properties; in loadPropertiesFromPayload() 134 private static Bundle createBundleFromProperties(Properties properties) { in createBundleFromProperties() argument 135 Enumeration propertyNames = properties.propertyNames(); in createBundleFromProperties() 140 addPropertyToBundle(propertyName, properties, bundle); in createBundleFromProperties() 146 String propertyName, Properties properties, Bundle bundle) { in addPropertyToBundle() argument [all …]
|
/frameworks/base/core/java/android/view/textclassifier/ |
D | TextClassificationConstants.java | 134 DeviceConfig.Properties properties = in ensureMemoizedValues() local 137 properties.getBoolean( in ensureMemoizedValues() 141 properties.getBoolean( in ensureMemoizedValues() 145 properties.getBoolean( in ensureMemoizedValues() 149 properties.getBoolean( in ensureMemoizedValues() 153 properties.getBoolean( in ensureMemoizedValues() 157 properties.getBoolean( in ensureMemoizedValues() 161 properties.getInt( in ensureMemoizedValues() 165 properties.getLong( in ensureMemoizedValues() 169 properties.getInt( in ensureMemoizedValues()
|
/frameworks/native/vulkan/vkprofiles/generated/ |
D | vulkan_profiles.cpp | 67 return std::string("deviceName=") + std::string(&deviceProps.properties.deviceName[0]) in vpGetDeviceAndDriverInfoString() 437 s->properties.limits.maxColorAttachments = 8; in __anon526a5adc0302() 438 s->properties.limits.maxPerStageDescriptorSampledImages = 128; in __anon526a5adc0302() 439 s->properties.limits.maxPerStageDescriptorSamplers = 128; in __anon526a5adc0302() 440 s->properties.limits.maxPerStageDescriptorStorageBuffers = 12; in __anon526a5adc0302() 441 s->properties.limits.maxPerStageDescriptorUniformBuffers = 13; in __anon526a5adc0302() 455 …ceProperties2KHR->properties.limits.maxColorAttachments >= 8); VP_DEBUG_COND_MSG(!(prettify_VkPhys… in __anon526a5adc0402() 456 …ties2KHR->properties.limits.maxPerStageDescriptorSampledImages >= 128); VP_DEBUG_COND_MSG(!(pretti… in __anon526a5adc0402() 457 …erties2KHR->properties.limits.maxPerStageDescriptorSamplers >= 128); VP_DEBUG_COND_MSG(!(prettify_… in __anon526a5adc0402() 458 …ties2KHR->properties.limits.maxPerStageDescriptorStorageBuffers >= 12); VP_DEBUG_COND_MSG(!(pretti… in __anon526a5adc0402() [all …]
|
/frameworks/base/apex/blobstore/service/java/com/android/server/blob/ |
D | BlobStoreConfig.java | 182 static void refresh(Properties properties) { in refresh() argument 183 if (!NAMESPACE_BLOBSTORE.equals(properties.getNamespace())) { in refresh() 186 properties.getKeyset().forEach(key -> { in refresh() 189 IDLE_JOB_PERIOD_MS = properties.getLong(key, DEFAULT_IDLE_JOB_PERIOD_MS); in refresh() 192 SESSION_EXPIRY_TIMEOUT_MS = properties.getLong(key, in refresh() 196 TOTAL_BYTES_PER_APP_LIMIT_FLOOR = properties.getLong(key, in refresh() 200 TOTAL_BYTES_PER_APP_LIMIT_FRACTION = properties.getFloat(key, in refresh() 204 LEASE_ACQUISITION_WAIT_DURATION_MS = properties.getLong(key, in refresh() 208 COMMIT_COOL_OFF_DURATION_MS = properties.getLong(key, in refresh() 212 USE_REVOCABLE_FD_FOR_READS = properties.getBoolean(key, in refresh() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/ |
D | PropertyAnimator.java | 48 AnimationProperties properties, boolean animated) { in setProperty() argument 52 startAnimation(view, animatableProperty, newEndValue, animated ? properties : null); in setProperty() 61 AnimationProperties properties) { in startAnimation() argument 72 AnimationFilter filter = properties != null ? properties.getAnimationFilter() : null; in startAnimation() 94 AnimatorListenerAdapter listener = properties.getAnimationFinishListener(property); in startAnimation() 108 Interpolator customInterpolator = properties.getCustomInterpolator(view, property); in startAnimation() 112 long newDuration = ViewState.cancelAnimatorAndGetNewDuration(properties.duration, in startAnimation() 115 if (properties.delay > 0 && (previousAnimator == null in startAnimation() 117 animator.setStartDelay(properties.delay); in startAnimation()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/animation/ |
D | FlingAnimationUtils.java | 152 AnimatorProperties properties = getProperties(currValue, endValue, velocity, in apply() local 154 animator.setDuration(properties.mDuration); in apply() 155 animator.setInterpolator(properties.mInterpolator); in apply() 171 AnimatorProperties properties = getProperties(currValue, endValue, velocity, maxDistance); in apply() local 172 animator.setDuration(properties.mDuration); in apply() 173 animator.setInterpolator(properties.getInterpolator()); in apply() 189 AnimatorProperties properties = getProperties(currValue, endValue, velocity, in apply() local 191 animator.setDuration(properties.mDuration); in apply() 192 animator.setInterpolator(properties.mInterpolator); in apply() 266 AnimatorProperties properties = getDismissingProperties(currValue, endValue, velocity, in applyDismissing() local [all …]
|
/frameworks/libs/modules-utils/java/com/android/modules/utils/testing/ |
D | TestableDeviceConfig.java | 117 Properties properties = invocationOnMock.getArgument(0); in setUpMockBehaviors() local 118 String namespace = properties.getNamespace(); in setUpMockBehaviors() 120 for (String name : properties.getKeyset()) { in setUpMockBehaviors() 121 String value = properties.getString(name, /* defaultValue= */ ""); in setUpMockBehaviors() 178 private void invokeListeners(String namespace, Properties properties) { in invokeListeners() argument 183 () -> listener.onPropertiesChanged(properties)); in invokeListeners() 197 Properties properties = spy(builder.build()); in getProperties() local 198 when(properties.getNamespace()).thenReturn(namespace); in getProperties() 199 when(properties.getKeyset()).thenReturn(keyValues.keySet()); in getProperties() 200 when(properties.getBoolean(anyString(), anyBoolean())).thenAnswer( in getProperties() [all …]
|