Home
last modified time | relevance | path

Searched refs:primitiveId (Results 1 – 8 of 8) sorted by relevance

/aosp14/frameworks/base/core/tests/coretests/src/android/os/vibrator/
H A DPrimitiveSegmentTest.java194 private static PrimitiveSegment createSegment(int primitiveId) { in createSegment() argument
196 return new PrimitiveSegment(primitiveId, 0.2f, 10); in createSegment()
199 private static Vibrator createVibratorWithSupportedPrimitive(int primitiveId) { in createVibratorWithSupportedPrimitive() argument
205 .setSupportedPrimitive(primitiveId, 10) in createVibratorWithSupportedPrimitive()
/aosp14/frameworks/base/core/java/android/os/
H A DVibratorInfo.java300 @VibrationEffect.Composition.PrimitiveType int primitiveId) { in isPrimitiveSupported()
302 && (mSupportedPrimitives.indexOfKey(primitiveId) >= 0); in isPrimitiveSupported()
313 @VibrationEffect.Composition.PrimitiveType int primitiveId) { in getPrimitiveDuration()
314 return mSupportedPrimitives.get(primitiveId); in getPrimitiveDuration()
732 public Builder setSupportedPrimitive(int primitiveId, int duration) { in setSupportedPrimitive() argument
733 mSupportedPrimitives.put(primitiveId, duration); in setSupportedPrimitive()
H A DVibrationEffect.java1122 public Composition addPrimitive(@PrimitiveType int primitiveId) {
1123 return addPrimitive(primitiveId, /*scale*/ 1.0f, /*delay*/ 0);
1136 public Composition addPrimitive(@PrimitiveType int primitiveId,
1138 return addPrimitive(primitiveId, scale, /*delay*/ 0);
1151 public Composition addPrimitive(@PrimitiveType int primitiveId,
1153 PrimitiveSegment primitive = new PrimitiveSegment(primitiveId, scale,
H A DVibrator.java635 for (int primitiveId : primitiveIds) { in areAllPrimitivesSupported()
636 if (!info.isPrimitiveSupported(primitiveId)) { in areAllPrimitivesSupported()
H A DSystemVibrator.java423 int primitiveId = firstVibratorPrimitives.keyAt(i); in supportedPrimitivesAndDurationsIntersection() local
431 int vibratorPrimitiveDuration = infos[j].getPrimitiveDuration(primitiveId); in supportedPrimitivesAndDurationsIntersection()
441 intersection.put(primitiveId, primitiveDuration); in supportedPrimitivesAndDurationsIntersection()
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/vibrator/
H A DVibrationThreadTest.java1654 private VibrationEffectSegment expectedPrimitive(int primitiveId, float scale, int delay) { in expectedPrimitive() argument
1655 return new PrimitiveSegment(primitiveId, scale, delay); in expectedPrimitive()
/aosp14/frameworks/base/services/core/java/com/android/server/policy/
H A DPhoneWindowManager.java6075 private VibrationEffect getScaledPrimitiveOrElseEffect(int primitiveId, float scale,
6077 if (mVibrator.areAllPrimitivesSupported(primitiveId)) {
6079 .addPrimitive(primitiveId, scale)
/aosp14/frameworks/base/tools/aapt2/integration-tests/CommandTests/
H A Dandroid-33.jarAndroidManifest.xml META-INF/ META-INF/MANIFEST.MF NOTICES/ NOTICES/libcore ...