/aosp12/frameworks/base/core/tests/coretests/src/android/os/vibrator/ |
H A D | PrimitiveSegmentTest.java | 40 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 D | PrimitiveSegment.java | 37 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 D | VibrationEffectSegment.java | 106 return new PrimitiveSegment(in);
|
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/vibrator/ |
H A D | StepToRampAdapterTest.java | 25 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 D | DeviceVibrationEffectAdapterTest.java | 28 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 D | FakeVibratorControllerProvider.java | 25 import android.os.vibrator.PrimitiveSegment; 117 public long compose(PrimitiveSegment[] effects, long vibrationId) { in compose() 119 for (PrimitiveSegment primitive : effects) { in compose()
|
H A D | RampToStepAdapterTest.java | 25 import android.os.vibrator.PrimitiveSegment; 62 new PrimitiveSegment(VibrationEffect.Composition.PRIMITIVE_TICK, 1, 10))); in testStepAndPrebakedAndPrimitiveSegments_keepsListUnchanged()
|
H A D | VibratorControllerTest.java | 47 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 D | RampDownAdapterTest.java | 24 import android.os.vibrator.PrimitiveSegment; 61 new PrimitiveSegment(VibrationEffect.Composition.PRIMITIVE_TICK, 1, 10))); in testPrebakedAndPrimitiveSegments_keepsListUnchanged()
|
H A D | VibrationScalerTest.java | 38 import android.os.vibrator.PrimitiveSegment; 256 PrimitiveSegment scaled = getFirstSegment(mVibrationScaler.scale(composed,
|
H A D | VibratorManagerServiceTest.java | 73 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 D | VibrationThreadTest.java | 49 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 D | VibratorController.java | 27 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 D | Vibration.java | 26 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 D | VibrationThread.java | 33 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 D | VibrationEffectTest.java | 35 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 D | VibrationEffect.java | 33 import android.os.vibrator.PrimitiveSegment; 867 PrimitiveSegment primitive = new PrimitiveSegment(primitiveId, scale, in addPrimitive()
|
/aosp12/frameworks/base/core/api/ |
H A D | test-current.txt | 1998 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 D | boot-image-profile.txt | 13595 …/vibrator/PrebakedSegment;,Landroid/os/vibrator/StepSegment;,Landroid/os/vibrator/PrimitiveSegment;
|
/aosp12/frameworks/base/services/ |
H A D | art-profile | 42692 …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 D | boot-image-profile.txt | 13585 …/vibrator/PrebakedSegment;,Landroid/os/vibrator/StepSegment;,Landroid/os/vibrator/PrimitiveSegment;
|