Home
last modified time | relevance | path

Searched refs:usageHint (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/services/core/java/com/android/server/vibrator/
DVibrationScaler.java74 public int getExternalVibrationScale(int usageHint) { in getExternalVibrationScale() argument
75 int defaultIntensity = mSettingsController.getDefaultIntensity(usageHint); in getExternalVibrationScale()
76 int currentIntensity = mSettingsController.getCurrentIntensity(usageHint); in getExternalVibrationScale()
90 + scaleLevel + " for vibration with usage " + usageHint); in getExternalVibrationScale()
103 public <T extends VibrationEffect> T scale(VibrationEffect effect, int usageHint) { in scale() argument
104 int defaultIntensity = mSettingsController.getDefaultIntensity(usageHint); in scale()
105 int currentIntensity = mSettingsController.getCurrentIntensity(usageHint); in scale()
134 public PrebakedSegment scale(PrebakedSegment prebaked, int usageHint) { in scale() argument
135 int currentIntensity = mSettingsController.getCurrentIntensity(usageHint); in scale()
139 currentIntensity = mSettingsController.getDefaultIntensity(usageHint); in scale()
DVibrationSettings.java338 public int getDefaultIntensity(@VibrationAttributes.Usage int usageHint) { in getDefaultIntensity() argument
339 return mVibrationConfig.getDefaultVibrationIntensity(usageHint); in getDefaultIntensity()
348 public int getCurrentIntensity(@VibrationAttributes.Usage int usageHint) { in getCurrentIntensity() argument
349 int defaultIntensity = getDefaultIntensity(usageHint); in getCurrentIntensity()
351 return mCurrentVibrationIntensities.get(usageHint, defaultIntensity); in getCurrentIntensity()
460 private boolean shouldVibrateForRingerModeLocked(@VibrationAttributes.Usage int usageHint) { in shouldVibrateForRingerModeLocked() argument
461 if ((usageHint != USAGE_RINGTONE) && (usageHint != USAGE_NOTIFICATION)) { in shouldVibrateForRingerModeLocked()
/frameworks/base/libs/hwui/
DRenderNode.h219 void setUsageHint(UsageHint usageHint) { mUsageHint = usageHint; } in setUsageHint() argument
221 UsageHint usageHint() const { return mUsageHint; } in usageHint() function
DRenderNode.cpp393 auto usage = usageHint(); in handleForceDark()
405 children.front()->usageHint() != in handleForceDark()
/frameworks/base/graphics/java/android/graphics/
DRenderNode.java1023 public void setUsageHint(@UsageHint int usageHint) { in setUsageHint() argument
1024 nSetUsageHint(mNativeRenderNode, usageHint); in setUsageHint()
1794 private static native void nSetUsageHint(long renderNode, int usageHint); in nSetUsageHint() argument
/frameworks/base/libs/hwui/jni/
Dandroid_graphics_RenderNode.cpp252 …droid_view_RenderNode_setUsageHint(CRITICAL_JNI_PARAMS_COMMA jlong renderNodePtr, jint usageHint) { in android_view_RenderNode_setUsageHint() argument
254 renderNode->setUsageHint(static_cast<UsageHint>(usageHint)); in android_view_RenderNode_setUsageHint()