/frameworks/base/libs/hwui/pipeline/skia/ |
D | RenderNodeDrawable.cpp | 90 return mRenderNode->properties(); in getNodeProperties() 96 if ((!mInReorderingSection) || MathUtils::isZero(mRenderNode->properties().getZ())) { in onDraw() 119 const RenderProperties& properties = this->getNodeProperties(); in forceDraw() local 122 ? &properties.getOutline() : nullptr; in forceDraw() 123 if (!properties.getProjectBackwards()) { in forceDraw() 140 static bool layerNeedsPaint(const LayerProperties& properties, in layerNeedsPaint() argument 143 || properties.alpha() < 255 in layerNeedsPaint() 144 || properties.xferMode() != SkBlendMode::kSrcOver in layerNeedsPaint() 145 || properties.colorFilter() != nullptr) { in layerNeedsPaint() 146 paint->setAlpha(properties.alpha() * alphaMultiplier); 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() 98 properties().debugOutputProperties(output, level + 1); in output() 113 pprops->set_left(properties().getLeft()); in copyTo() 114 pprops->set_top(properties().getTop()); in copyTo() 115 pprops->set_right(properties().getRight()); in copyTo() 116 pprops->set_bottom(properties().getBottom()); in copyTo() 117 pprops->set_clip_flags(properties().getClippingFlags()); in copyTo() 118 pprops->set_alpha(properties().getAlpha()); in copyTo() [all …]
|
D | FrameBuilder.cpp | 130 auto& props = node.properties(); in nodeBounds() 211 const RenderProperties& properties = node.properties(); in deferNodePropsAndOps() local 212 const Outline& outline = properties.getOutline(); in deferNodePropsAndOps() 213 if (properties.getAlpha() <= 0 in deferNodePropsAndOps() 215 || properties.getScaleX() == 0 in deferNodePropsAndOps() 216 || properties.getScaleY() == 0) { in deferNodePropsAndOps() 220 if (properties.getLeft() != 0 || properties.getTop() != 0) { in deferNodePropsAndOps() 221 mCanvasState.translate(properties.getLeft(), properties.getTop()); in deferNodePropsAndOps() 223 if (properties.getStaticMatrix()) { in deferNodePropsAndOps() 224 mCanvasState.concatMatrix(*properties.getStaticMatrix()); in deferNodePropsAndOps() [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() 152 const FullPathProperties& properties = useStagingData ? mStagingProperties : mProperties; in draw() local 159 if (properties.getFillGradient() != nullptr) { in draw() 160 paint.setColor(applyAlpha(SK_ColorBLACK, properties.getFillAlpha())); in draw() 161 paint.setShader(sk_sp<SkShader>(SkSafeRef(properties.getFillGradient()))); in draw() 163 } else if (properties.getFillColor() != SK_ColorTRANSPARENT) { in draw() 164 paint.setColor(applyAlpha(properties.getFillColor(), properties.getFillAlpha())); in draw() [all …]
|
/frameworks/base/libs/hwui/tests/unit/ |
D | SkiaRenderPropertiesTests.cpp | 77 testProperty([](RenderProperties& properties) { in TEST() argument 78 properties.setClipToBounds(true); in TEST() 79 properties.setClipBounds(android::uirenderer::Rect(10, 20, 300, 400)); in TEST() 87 testProperty([](RenderProperties& properties) { in TEST() argument 88 properties.mutableRevealClip().set(true, 50, 50, 25); in TEST() 95 testProperty([](RenderProperties& properties) { in TEST() argument 96 properties.mutableOutline().setShouldClip(true); in TEST() 97 properties.mutableOutline().setRoundRect(10, 20, 30, 40, 5.0f, 0.5f); in TEST() 104 testProperty([](RenderProperties& properties) { in TEST() argument 105 properties.setLeftTopRightBottom(10, 10, 110, 110); in TEST() [all …]
|
D | VectorDrawableTests.cpp | 353 VectorDrawable::Group::GroupProperties* properties = group.mutateProperties(); in TEST() local 355 EXPECT_EQ(0.0f, properties->getTranslateX()); in TEST() 356 properties->setTranslateX(1.0f); in TEST() 357 EXPECT_EQ(1.0f, properties->getTranslateX()); in TEST() 359 EXPECT_EQ(0.0f, properties->getTranslateY()); in TEST() 360 properties->setTranslateY(1.0f); in TEST() 361 EXPECT_EQ(1.0f, properties->getTranslateY()); in TEST() 363 EXPECT_EQ(0.0f, properties->getRotation()); in TEST() 364 properties->setRotation(1.0f); in TEST() 365 EXPECT_EQ(1.0f, properties->getRotation()); in TEST() [all …]
|
D | RenderNodeDrawableTests.cpp | 54 ASSERT_EQ(&drawable.getNodeProperties(), &rootNode->properties()); in TEST() 280 [](RenderProperties& properties, SkiaRecordingCanvas& canvas) { in RENDERTHREAD_TEST() argument 281 properties.setProjectionReceiver(true); in RENDERTHREAD_TEST() 284 properties.setTranslationX(SCROLL_X); in RENDERTHREAD_TEST() 285 properties.setTranslationY(SCROLL_Y); in RENDERTHREAD_TEST() 293 [](RenderProperties& properties, SkiaRecordingCanvas& canvas) { in RENDERTHREAD_TEST() argument 294 properties.setProjectBackwards(true); in RENDERTHREAD_TEST() 295 properties.setClipToBounds(false); in RENDERTHREAD_TEST() 301 [&projectingRipple](RenderProperties& properties, SkiaRecordingCanvas& canvas) { in RENDERTHREAD_TEST() argument 308 … [&receiverBackground, &child](RenderProperties& properties, SkiaRecordingCanvas& canvas) { in RENDERTHREAD_TEST() argument [all …]
|
D | FrameBuilderTests.cpp | 1667 [](RenderProperties& properties, RecordingCanvas& canvas) { in RENDERTHREAD_OPENGL_PIPELINE_TEST() argument 1668 properties.setProjectionReceiver(true); in RENDERTHREAD_OPENGL_PIPELINE_TEST() 1671 properties.setTranslationX(scrollX); in RENDERTHREAD_OPENGL_PIPELINE_TEST() 1672 properties.setTranslationY(scrollY); in RENDERTHREAD_OPENGL_PIPELINE_TEST() 1679 [](RenderProperties& properties, RecordingCanvas& canvas) { in RENDERTHREAD_OPENGL_PIPELINE_TEST() argument 1680 properties.setProjectBackwards(true); in RENDERTHREAD_OPENGL_PIPELINE_TEST() 1681 properties.setClipToBounds(false); in RENDERTHREAD_OPENGL_PIPELINE_TEST() 1687 [&projectingRipple](RenderProperties& properties, RecordingCanvas& canvas) { in RENDERTHREAD_OPENGL_PIPELINE_TEST() argument 1694 [&receiverBackground, &child](RenderProperties& properties, RecordingCanvas& canvas) { in RENDERTHREAD_OPENGL_PIPELINE_TEST() argument 1696 properties.mutableOutline().setRoundRect(10, 10, 90, 90, 5, 1.0f); in RENDERTHREAD_OPENGL_PIPELINE_TEST() [all …]
|
/frameworks/base/location/java/android/location/ |
D | LocationProvider.java | 59 public LocationProvider(String name, ProviderProperties properties) { in LocationProvider() argument 64 mProperties = properties; in LocationProvider() 85 public static boolean propertiesMeetCriteria(String name, ProviderProperties properties, in propertiesMeetCriteria() argument 91 if (properties == null) { in propertiesMeetCriteria() 98 criteria.getAccuracy() < properties.mAccuracy) { in propertiesMeetCriteria() 102 criteria.getPowerRequirement() < properties.mPowerRequirement) { in propertiesMeetCriteria() 105 if (criteria.isAltitudeRequired() && !properties.mSupportsAltitude) { in propertiesMeetCriteria() 108 if (criteria.isSpeedRequired() && !properties.mSupportsSpeed) { in propertiesMeetCriteria() 111 if (criteria.isBearingRequired() && !properties.mSupportsBearing) { in propertiesMeetCriteria() 114 if (!criteria.isCostAllowed() && properties.mHasMonetaryCost) { in propertiesMeetCriteria()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/ |
D | ExpandableViewState.java | 182 public void animateTo(View child, AnimationProperties properties) { in animateTo() argument 183 super.animateTo(child, properties); in animateTo() 188 AnimationFilter animationFilter = properties.getAnimationFilter(); in animateTo() 192 startHeightAnimation(expandableView, properties); in animateTo() 199 startShadowAlphaAnimation(expandableView, properties); in animateTo() 206 startInsetAnimation(expandableView, properties); in animateTo() 219 properties.delay, properties.duration); in animateTo() 222 expandableView.setDark(this.dark, animationFilter.animateDark, properties.delay); in animateTo() 224 if (properties.wasAdded(child) && !hidden) { in animateTo() 225 expandableView.performAddAnimation(properties.delay, properties.duration); in animateTo() [all …]
|
D | ViewState.java | 324 private void startAlphaAnimation(final View child, AnimationProperties properties) { in startAlphaAnimation() argument 332 AnimationFilter filter = properties.getAnimationFilter(); in startAlphaAnimation() 385 long newDuration = cancelAnimatorAndGetNewDuration(properties.duration, previousAnimator); in startAlphaAnimation() 387 if (properties.delay > 0 && (previousAnimator == null in startAlphaAnimation() 389 animator.setStartDelay(properties.delay); in startAlphaAnimation() 391 AnimatorListenerAdapter listener = properties.getAnimationFinishListener(); in startAlphaAnimation() 411 private void startZTranslationAnimation(final View child, AnimationProperties properties) { in startZTranslationAnimation() argument 419 AnimationFilter filter = properties.getAnimationFilter(); in startZTranslationAnimation() 442 long newDuration = cancelAnimatorAndGetNewDuration(properties.duration, previousAnimator); in startZTranslationAnimation() 444 if (properties.delay > 0 && (previousAnimator == null in startZTranslationAnimation() [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/SettingsLib/src/com/android/settingslib/animation/ |
D | AppearAnimationUtils.java | 74 AppearAnimationProperties properties = getDelays(objects); in startAnimation2d() local 75 startAnimations(properties, objects, finishListener, creator); in startAnimation2d() 80 AppearAnimationProperties properties = getDelays(objects); in startAnimation() local 81 startAnimations(properties, objects, finishListener, creator); in startAnimation() 84 private <T> void startAnimations(AppearAnimationProperties properties, T[] objects, in startAnimations() argument 86 if (properties.maxDelayRowIndex == -1 || properties.maxDelayColIndex == -1) { in startAnimations() 90 for (int row = 0; row < properties.delays.length; row++) { in startAnimations() 91 long[] columns = properties.delays[row]; in startAnimations() 94 if (properties.maxDelayRowIndex == row && properties.maxDelayColIndex == 0) { in startAnimations() 98 ? mRowTranslationScaler.getRowTranslationScale(row, properties.delays.length) in startAnimations() [all …]
|
/frameworks/support/samples/SupportLeanbackShowcase/ |
D | build.gradle | 3 // This will be set by local.properties file. By default it 7 // library and update local.properties file. Gradle build file in turn 8 // will pick up the settings from local.properties. 9 Properties properties = new Properties() 10 properties.load(project.rootProject.file('local.properties').newDataInputStream()) 11 supportLibVersion = properties.getProperty('LIBRARY_VERSION') 13 localRepo = properties.getProperty('LOCAL_REPO')
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
D | FlingAnimationUtils.java | 137 AnimatorProperties properties = getProperties(currValue, endValue, velocity, in apply() local 139 animator.setDuration(properties.duration); in apply() 140 animator.setInterpolator(properties.interpolator); in apply() 156 AnimatorProperties properties = getProperties(currValue, endValue, velocity, in apply() local 158 animator.setDuration(properties.duration); in apply() 159 animator.setInterpolator(properties.interpolator); in apply() 222 AnimatorProperties properties = getDismissingProperties(currValue, endValue, velocity, in applyDismissing() local 224 animator.setDuration(properties.duration); in applyDismissing() 225 animator.setInterpolator(properties.interpolator); in applyDismissing() 242 AnimatorProperties properties = getDismissingProperties(currValue, endValue, velocity, in applyDismissing() local [all …]
|
/frameworks/native/vulkan/nulldrv/ |
D | null_driver.cpp | 264 VkExtensionProperties* properties) { in EnumerateInstanceExtensionProperties() argument 277 if (!properties || *count > kExtensionsCount) in EnumerateInstanceExtensionProperties() 279 if (properties) in EnumerateInstanceExtensionProperties() 280 std::copy(kExtensions, kExtensions + *count, properties); in EnumerateInstanceExtensionProperties() 363 VkExtensionProperties* properties) { in EnumerateDeviceExtensionProperties() argument 379 if (!properties || *count > kExtensionsCount) in EnumerateDeviceExtensionProperties() 381 if (properties) in EnumerateDeviceExtensionProperties() 382 std::copy(kExtensions, kExtensions + *count, properties); in EnumerateDeviceExtensionProperties() 387 VkPhysicalDeviceProperties* properties) { in GetPhysicalDeviceProperties() argument 388 properties->apiVersion = VK_MAKE_VERSION(1, 0, VK_HEADER_VERSION); in GetPhysicalDeviceProperties() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/ |
D | PropertyAnimator.java | 39 AnimationProperties properties) { in startAnimation() argument 50 AnimationFilter filter = properties.getAnimationFilter(); in startAnimation() 75 Interpolator customInterpolator = properties.getCustomInterpolator(view, property); in startAnimation() 79 long newDuration = ViewState.cancelAnimatorAndGetNewDuration(properties.duration, in startAnimation() 82 if (properties.delay > 0 && (previousAnimator == null in startAnimation() 84 animator.setStartDelay(properties.delay); in startAnimation() 86 AnimatorListenerAdapter listener = properties.getAnimationFinishListener(); in startAnimation()
|
/frameworks/base/services/usb/java/com/android/server/usb/ |
D | UsbAlsaManager.java | 415 Bundle properties = new Bundle(); in usbDeviceAdded() local 427 properties.putString(MidiDeviceInfo.PROPERTY_NAME, name); in usbDeviceAdded() 428 properties.putString(MidiDeviceInfo.PROPERTY_MANUFACTURER, manufacturer); in usbDeviceAdded() 429 properties.putString(MidiDeviceInfo.PROPERTY_PRODUCT, product); in usbDeviceAdded() 430 properties.putString(MidiDeviceInfo.PROPERTY_VERSION, version); in usbDeviceAdded() 431 properties.putString(MidiDeviceInfo.PROPERTY_SERIAL_NUMBER, in usbDeviceAdded() 433 properties.putInt(MidiDeviceInfo.PROPERTY_ALSA_CARD, alsaDevice.mCard); in usbDeviceAdded() 434 properties.putInt(MidiDeviceInfo.PROPERTY_ALSA_DEVICE, alsaDevice.mDevice); in usbDeviceAdded() 435 properties.putParcelable(MidiDeviceInfo.PROPERTY_USB_DEVICE, usbDevice); in usbDeviceAdded() 437 UsbMidiDevice usbMidiDevice = UsbMidiDevice.create(mContext, properties, in usbDeviceAdded() [all …]
|
/frameworks/data-binding/compiler/src/main/java/android/databinding/annotationprocessor/ |
D | ProcessBindable.java | 110 HashSet<String> properties = new HashSet<String>(); in generateBRClasses() local 111 mProperties.captureProperties(properties); in generateBRClasses() 114 intermediate.captureProperties(properties); in generateBRClasses() 117 BRWriter brWriter = new BRWriter(properties, useFinalFields); in generateBRClasses() 231 void captureProperties(Set<String> properties); in captureProperties() argument 252 public void captureProperties(Set<String> properties) { in captureProperties() argument 254 properties.addAll(propertySet); in captureProperties() 260 HashSet<String> properties = mProperties.get(className); in addProperty() local 261 if (properties == null) { in addProperty() 262 properties = new HashSet<String>(); in addProperty() [all …]
|
/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 …]
|
/frameworks/rs/ |
D | rsDefines.h | 493 static inline uint32_t getGlobalRsType(uint32_t properties) { in getGlobalRsType() argument 494 return properties & RS_GLOBAL_TYPE; in getGlobalRsType() 496 static inline bool isGlobalConstant(uint32_t properties) { in isGlobalConstant() argument 497 return properties & RS_GLOBAL_CONSTANT; in isGlobalConstant() 499 static inline bool isGlobalStatic(uint32_t properties) { in isGlobalStatic() argument 500 return properties & RS_GLOBAL_STATIC; in isGlobalStatic() 502 static inline bool isGlobalPointer(uint32_t properties) { in isGlobalPointer() argument 503 return properties & RS_GLOBAL_POINTER; in isGlobalPointer()
|
/frameworks/av/services/soundtrigger/ |
D | SoundTriggerHalHidl.cpp | 38 int SoundTriggerHalHidl::getProperties(struct sound_trigger_properties *properties) in getProperties() argument 59 convertPropertiesFromHal(properties, &halProperties); in getProperties() 319 struct sound_trigger_properties *properties, in convertPropertiesFromHal() argument 322 strlcpy(properties->implementor, in convertPropertiesFromHal() 324 strlcpy(properties->description, in convertPropertiesFromHal() 326 properties->version = halProperties->version; in convertPropertiesFromHal() 327 convertUuidFromHal(&properties->uuid, &halProperties->uuid); in convertPropertiesFromHal() 328 properties->max_sound_models = halProperties->maxSoundModels; in convertPropertiesFromHal() 329 properties->max_key_phrases = halProperties->maxKeyPhrases; in convertPropertiesFromHal() 330 properties->max_users = halProperties->maxUsers; in convertPropertiesFromHal() [all …]
|
/frameworks/base/core/tests/coretests/src/android/animation/ |
D | AutoCancelTest.java | 42 ObjectAnimator setupAnimator(long startDelay, String... properties) { in setupAnimator() argument 44 if (properties.length == 1) { in setupAnimator() 45 returnVal = ObjectAnimator.ofFloat(this, properties[0], 0, 1); in setupAnimator() 47 PropertyValuesHolder[] pvhArray = new PropertyValuesHolder[properties.length]; in setupAnimator() 48 for (int i = 0; i < properties.length; i++) { in setupAnimator() 49 pvhArray[i] = PropertyValuesHolder.ofFloat(properties[i], 0, 1); in setupAnimator()
|
/frameworks/base/services/core/java/com/android/server/location/ |
D | GpsXtraDownloader.java | 51 GpsXtraDownloader(Properties properties) { in GpsXtraDownloader() argument 54 String server1 = properties.getProperty("XTRA_SERVER_1"); in GpsXtraDownloader() 55 String server2 = properties.getProperty("XTRA_SERVER_2"); in GpsXtraDownloader() 56 String server3 = properties.getProperty("XTRA_SERVER_3"); in GpsXtraDownloader() 62 String agent = properties.getProperty("XTRA_USER_AGENT"); in GpsXtraDownloader()
|
/frameworks/native/vulkan/libvulkan/ |
D | layers_extensions.cpp | 56 VkLayerProperties properties; member 191 VkLayerProperties* properties = static_cast<VkLayerProperties*>(alloca( in EnumerateLayers() local 193 result = enumerate_instance_layers(&num_instance_layers, properties); in EnumerateLayers() 201 properties + num_instance_layers); in EnumerateLayers() 214 const VkLayerProperties& props = properties[i]; in EnumerateLayers() 217 layer.properties = props; in EnumerateLayers() 245 const auto& dev_props = properties[num_instance_layers + j]; in EnumerateLayers() 291 std::max(size_t{2}, strlen(layer.properties.layerName)); in GetGPA() 293 strcpy(name, layer.properties.layerName); in GetGPA() 447 return strcmp(entry.properties.layerName, name) == 0; in FindLayer() [all …]
|