Home
last modified time | relevance | path

Searched refs:PrimitiveSegment (Results 1 – 21 of 21) sorted by relevance

/aosp12/frameworks/base/core/tests/coretests/src/android/os/vibrator/
H A DPrimitiveSegmentTest.java40 PrimitiveSegment primitive = new PrimitiveSegment( in testCreation()
52 PrimitiveSegment original = new PrimitiveSegment( in testSerialization()
57 assertEquals(original, PrimitiveSegment.CREATOR.createFromParcel(parcel)); in testSerialization()
62 new PrimitiveSegment(VibrationEffect.Composition.PRIMITIVE_CLICK, 1, 0).validate(); in testValidate()
65 () -> new PrimitiveSegment(1000, 0, 10).validate()); in testValidate()
67 () -> new PrimitiveSegment(VibrationEffect.Composition.PRIMITIVE_NOOP, -1, 0) in testValidate()
76 PrimitiveSegment primitive = new PrimitiveSegment( in testResolve_ignoresAndReturnsSameEffect()
83 PrimitiveSegment primitive = new PrimitiveSegment( in testApplyEffectStrength_ignoresAndReturnsSameEffect()
91 PrimitiveSegment initial = new PrimitiveSegment( in testScale_fullPrimitiveScaleValue()
106 PrimitiveSegment initial = new PrimitiveSegment( in testScale_halfPrimitiveScaleValue()
[all …]
/aosp12/frameworks/base/core/java/android/os/vibrator/
H A DPrimitiveSegment.java37 public final class PrimitiveSegment extends VibrationEffectSegment { class
42 PrimitiveSegment(@NonNull Parcel in) { in PrimitiveSegment() method in PrimitiveSegment
47 public PrimitiveSegment(int id, float scale, int delay) { in PrimitiveSegment() method in PrimitiveSegment
78 public PrimitiveSegment resolve(int defaultAmplitude) { in resolve()
84 public PrimitiveSegment scale(float scaleFactor) { in scale()
91 public PrimitiveSegment applyEffectStrength(int effectStrength) { in applyEffectStrength()
129 PrimitiveSegment that = (PrimitiveSegment) o; in equals()
142 new Parcelable.Creator<PrimitiveSegment>() {
147 return new PrimitiveSegment(in);
151 public PrimitiveSegment[] newArray(int size) {
[all …]
H A DVibrationEffectSegment.java106 return new PrimitiveSegment(in);
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/vibrator/
H A DStepToRampAdapterTest.java25 import android.os.vibrator.PrimitiveSegment;
61 new PrimitiveSegment(VibrationEffect.Composition.PRIMITIVE_TICK, 1, 10))); in testRampAndPrebakedAndPrimitiveSegments_returnsOriginalSegments()
121 new PrimitiveSegment(VibrationEffect.Composition.PRIMITIVE_TICK, 1, 10), in testStepAndRampSegments_withPwleCapabilityAndNoFrequency_keepsOriginalSteps()
H A DDeviceVibrationEffectAdapterTest.java28 import android.os.vibrator.PrimitiveSegment;
77 new PrimitiveSegment(VibrationEffect.Composition.PRIMITIVE_TICK, 1, 10), in testPrebakedAndPrimitiveSegments_returnsOriginalSegment()
80 new PrimitiveSegment(VibrationEffect.Composition.PRIMITIVE_SPIN, 0.5f, 100)), in testPrebakedAndPrimitiveSegments_returnsOriginalSegment()
H A DFakeVibratorControllerProvider.java25 import android.os.vibrator.PrimitiveSegment;
117 public long compose(PrimitiveSegment[] effects, long vibrationId) { in compose()
119 for (PrimitiveSegment primitive : effects) { in compose()
H A DRampToStepAdapterTest.java25 import android.os.vibrator.PrimitiveSegment;
62 new PrimitiveSegment(VibrationEffect.Composition.PRIMITIVE_TICK, 1, 10))); in testStepAndPrebakedAndPrimitiveSegments_keepsListUnchanged()
H A DVibratorControllerTest.java47 import android.os.vibrator.PrimitiveSegment;
222 PrimitiveSegment[] primitives = new PrimitiveSegment[]{ in on_withComposed_performsEffect()
223 new PrimitiveSegment(VibrationEffect.Composition.PRIMITIVE_CLICK, 0.5f, 10) in on_withComposed_performsEffect()
H A DRampDownAdapterTest.java24 import android.os.vibrator.PrimitiveSegment;
61 new PrimitiveSegment(VibrationEffect.Composition.PRIMITIVE_TICK, 1, 10))); in testPrebakedAndPrimitiveSegments_keepsListUnchanged()
H A DVibrationScalerTest.java38 import android.os.vibrator.PrimitiveSegment;
256 PrimitiveSegment scaled = getFirstSegment(mVibrationScaler.scale(composed,
H A DVibratorManagerServiceTest.java73 import android.os.vibrator.PrimitiveSegment;
721 PrimitiveSegment expected = new PrimitiveSegment(
865 assertTrue(0.5 < ((PrimitiveSegment) fakeVibrator.getEffectSegments().get(1)).getScale());
866 assertTrue(0.5 > ((PrimitiveSegment) fakeVibrator.getEffectSegments().get(2)).getScale());
H A DVibrationThreadTest.java49 import android.os.vibrator.PrimitiveSegment;
1356 return new PrimitiveSegment(primitiveId, scale, delay); in expectedPrimitive()
/aosp12/frameworks/base/services/core/java/com/android/server/vibrator/
H A DVibratorController.java27 import android.os.vibrator.PrimitiveSegment;
270 public long on(PrimitiveSegment[] primitives, long vibrationId) { in on()
394 private static native long performComposedEffect(long nativePtr, PrimitiveSegment[] effect, in performComposedEffect()
451 public long compose(PrimitiveSegment[] primitives, long vibrationId) { in compose()
H A DVibration.java26 import android.os.vibrator.PrimitiveSegment;
355 } else if (segment instanceof PrimitiveSegment) { in dumpEffect()
356 dumpEffect(proto, SegmentProto.PRIMITIVE, (PrimitiveSegment) segment); in dumpEffect()
389 PrimitiveSegment segment) { in dumpEffect()
H A DVibrationThread.java33 import android.os.vibrator.PrimitiveSegment;
358 if (segment instanceof PrimitiveSegment) { in nextVibrateStep()
1112 List<PrimitiveSegment> primitives = new ArrayList<>(); in play()
1115 if (segment instanceof PrimitiveSegment) { in play()
1116 primitives.add((PrimitiveSegment) segment); in play()
1133 primitives.toArray(new PrimitiveSegment[primitives.size()]), in play()
1616 } else if (firstSegment instanceof PrimitiveSegment) { in calculateRequiredSyncCapabilities()
/aosp12/frameworks/base/core/tests/coretests/src/android/os/
H A DVibrationEffectTest.java35 import android.os.vibrator.PrimitiveSegment;
307 assertTrue(0.5f < ((PrimitiveSegment) scaledUp.getSegments().get(0)).getScale()); in testScaleComposed()
311 assertTrue(0.5f > ((PrimitiveSegment) scaledDown.getSegments().get(0)).getScale()); in testScaleComposed()
/aosp12/frameworks/base/core/java/android/os/
H A DVibrationEffect.java33 import android.os.vibrator.PrimitiveSegment;
867 PrimitiveSegment primitive = new PrimitiveSegment(primitiveId, scale, in addPrimitive()
/aosp12/frameworks/base/core/api/
H A Dtest-current.txt1998 public final class PrimitiveSegment extends android.os.vibrator.VibrationEffectSegment {
1999 method @NonNull public android.os.vibrator.PrimitiveSegment applyEffectStrength(int);
2006 method @NonNull public android.os.vibrator.PrimitiveSegment resolve(int);
2007 method @NonNull public android.os.vibrator.PrimitiveSegment scale(float);
2010 …ll public static final android.os.Parcelable.Creator<android.os.vibrator.PrimitiveSegment> CREATOR;
/aosp12/frameworks/base/boot/
H A Dboot-image-profile.txt13595 …/vibrator/PrebakedSegment;,Landroid/os/vibrator/StepSegment;,Landroid/os/vibrator/PrimitiveSegment;
/aosp12/frameworks/base/services/
H A Dart-profile42692 …rver/vibrator/VibratorController$NativeWrapper;->compose([Landroid/os/vibrator/PrimitiveSegment;J)J
42713 HPLcom/android/server/vibrator/VibratorController;->on([Landroid/os/vibrator/PrimitiveSegment;J)J+]…
/aosp12/frameworks/base/config/
H A Dboot-image-profile.txt13585 …/vibrator/PrebakedSegment;,Landroid/os/vibrator/StepSegment;,Landroid/os/vibrator/PrimitiveSegment;