/aosp14/frameworks/base/core/tests/coretests/src/android/os/vibrator/ |
H A D | PrimitiveSegmentTest.java | 47 PrimitiveSegment primitive = new PrimitiveSegment( in testCreation() 59 PrimitiveSegment original = new PrimitiveSegment( in testSerialization() 83 PrimitiveSegment primitive = new PrimitiveSegment( in testResolve_ignoresAndReturnsSameEffect() 90 PrimitiveSegment primitive = new PrimitiveSegment( in testApplyEffectStrength_ignoresAndReturnsSameEffect() 98 PrimitiveSegment initial = new PrimitiveSegment( in testScale_fullPrimitiveScaleValue() 113 PrimitiveSegment initial = new PrimitiveSegment( in testScale_halfPrimitiveScaleValue() 128 PrimitiveSegment initial = new PrimitiveSegment( in testScale_zeroPrimitiveScaleValue() 182 assertTrue(new PrimitiveSegment( in testIsHapticFeedbackCandidate_returnsTrue() 184 assertTrue(new PrimitiveSegment( in testIsHapticFeedbackCandidate_returnsTrue() 186 assertTrue(new PrimitiveSegment( in testIsHapticFeedbackCandidate_returnsTrue() [all …]
|
/aosp14/frameworks/base/core/java/android/os/vibrator/ |
H A D | PrimitiveSegment.java | 38 public final class PrimitiveSegment extends VibrationEffectSegment { class 43 PrimitiveSegment(@NonNull Parcel in) { in PrimitiveSegment() method in PrimitiveSegment 48 public PrimitiveSegment(int id, float scale, int delay) { in PrimitiveSegment() method in PrimitiveSegment 93 public PrimitiveSegment resolve(int defaultAmplitude) { in resolve() 100 public PrimitiveSegment scale(float scaleFactor) { in scale() 108 public PrimitiveSegment applyEffectStrength(int effectStrength) { in applyEffectStrength() 147 PrimitiveSegment that = (PrimitiveSegment) o; in equals() 160 new Parcelable.Creator<PrimitiveSegment>() { 165 return new PrimitiveSegment(in); 169 public PrimitiveSegment[] newArray(int size) { [all …]
|
H A D | VibrationEffectSegment.java | 197 return new PrimitiveSegment(in);
|
/aosp14/frameworks/base/services/core/java/com/android/server/vibrator/ |
H A D | ComposePrimitivesVibratorStep.java | 21 import android.os.vibrator.PrimitiveSegment; 57 List<PrimitiveSegment> primitives = unrollPrimitiveSegments(effect, segmentIndex, in play() 72 PrimitiveSegment[] primitivesArray = in play() 73 primitives.toArray(new PrimitiveSegment[primitives.size()]); in play() 98 private List<PrimitiveSegment> unrollPrimitiveSegments(VibrationEffect.Composed effect, in unrollPrimitiveSegments() 100 List<PrimitiveSegment> segments = new ArrayList<>(limit); in unrollPrimitiveSegments() 114 if (segment instanceof PrimitiveSegment) { in unrollPrimitiveSegments() 115 segments.add((PrimitiveSegment) segment); in unrollPrimitiveSegments()
|
H A D | VibrationStats.java | 23 import android.os.vibrator.PrimitiveSegment; 231 void reportComposePrimitives(long halResult, PrimitiveSegment[] primitives) { in reportComposePrimitives() 238 for (PrimitiveSegment primitive : primitives) { in reportComposePrimitives() 247 for (PrimitiveSegment primitive : primitives) { in reportComposePrimitives()
|
H A D | VibratorController.java | 27 import android.os.vibrator.PrimitiveSegment; 286 public long on(PrimitiveSegment[] primitives, long vibrationId) { in on() 405 private static native long performComposedEffect(long nativePtr, PrimitiveSegment[] effect, in performComposedEffect() 461 public long compose(PrimitiveSegment[] primitives, long vibrationId) { in compose()
|
H A D | Vibration.java | 26 import android.os.vibrator.PrimitiveSegment; 341 } else if (segment instanceof PrimitiveSegment) { in dumpEffect() 342 dumpEffect(proto, SegmentProto.PRIMITIVE, (PrimitiveSegment) segment); in dumpEffect() 375 PrimitiveSegment segment) { in dumpEffect()
|
H A D | StartSequentialEffectStep.java | 27 import android.os.vibrator.PrimitiveSegment; 345 } else if (firstSegment instanceof PrimitiveSegment) { in calculateRequiredSyncCapabilities()
|
H A D | VibrationStepConductor.java | 26 import android.os.vibrator.PrimitiveSegment; 136 if (segment instanceof PrimitiveSegment) { in nextVibrateStep()
|
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/vibrator/ |
H A D | StepToRampAdapterTest.java | 25 import android.os.vibrator.PrimitiveSegment; 68 new PrimitiveSegment(VibrationEffect.Composition.PRIMITIVE_TICK, 1, 10))); in testRampAndPrebakedAndPrimitiveSegments_returnsOriginalSegments() 129 new PrimitiveSegment(VibrationEffect.Composition.PRIMITIVE_TICK, 1, 10), in testStepAndRampSegments_withPwleCapabilityAndNoFrequency_keepsOriginalSteps()
|
H A D | FakeVibratorControllerProvider.java | 25 import android.os.vibrator.PrimitiveSegment; 132 public long compose(PrimitiveSegment[] primitives, long vibrationId) { in compose() 136 for (PrimitiveSegment primitive : primitives) { in compose() 142 for (PrimitiveSegment primitive : primitives) { in compose()
|
H A D | DeviceVibrationEffectAdapterTest.java | 31 import android.os.vibrator.PrimitiveSegment; 94 new PrimitiveSegment(VibrationEffect.Composition.PRIMITIVE_TICK, 1, 10), in testPrebakedAndPrimitiveSegments_returnsOriginalSegment() 97 new PrimitiveSegment(VibrationEffect.Composition.PRIMITIVE_SPIN, 0.5f, 100)), in testPrebakedAndPrimitiveSegments_returnsOriginalSegment()
|
H A D | RampToStepAdapterTest.java | 25 import android.os.vibrator.PrimitiveSegment; 68 new PrimitiveSegment(VibrationEffect.Composition.PRIMITIVE_TICK, 1, 10))); in testStepAndPrebakedAndPrimitiveSegments_keepsListUnchanged()
|
H A D | VibratorControllerTest.java | 46 import android.os.vibrator.PrimitiveSegment; 221 PrimitiveSegment[] primitives = new PrimitiveSegment[]{ in on_withComposed_performsEffect() 222 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 | 47 import android.os.vibrator.PrimitiveSegment; 254 PrimitiveSegment scaled = getFirstSegment(mVibrationScaler.scale(composed, USAGE_RINGTONE));
|
H A D | VibratorManagerServiceTest.java | 75 import android.os.vibrator.PrimitiveSegment; 1189 PrimitiveSegment expected = new PrimitiveSegment( in vibrate_withTriggerCallback_finishesVibration() 1335 0.5 > ((PrimitiveSegment) fakeVibrator.getAllEffectSegments().get(0)).getScale()); in vibrate_withIntensitySettings_appliesSettingsToScaleVibrations() 1343 ((PrimitiveSegment) fakeVibrator.getAllEffectSegments().get(2)).getScale(), 1e-5); in vibrate_withIntensitySettings_appliesSettingsToScaleVibrations() 1471 assertTrue(segments.get(segments.size() - 1) instanceof PrimitiveSegment); in vibrate_prebakedAndComposedVibrationsWithFallbacks_playsFallbackOnlyForPredefined()
|
H A D | VibrationThreadTest.java | 56 import android.os.vibrator.PrimitiveSegment; 703 assertTrue(segments.get(1) instanceof PrimitiveSegment); in vibrate_singleVibratorComposedWithFallback_replacedInTheMiddleOfComposition() local 708 assertTrue(segments.get(segments.size() - 1) instanceof PrimitiveSegment); in vibrate_singleVibratorComposedWithFallback_replacedInTheMiddleOfComposition() 1655 return new PrimitiveSegment(primitiveId, scale, delay); in expectedPrimitive()
|
/aosp14/frameworks/base/core/java/android/os/ |
H A D | VibrationEffect.java | 33 import android.os.vibrator.PrimitiveSegment; 1153 PrimitiveSegment primitive = new PrimitiveSegment(primitiveId, scale,
|
/aosp14/frameworks/base/core/tests/coretests/src/android/os/ |
H A D | VibrationEffectTest.java | 45 import android.os.vibrator.PrimitiveSegment; 753 assertTrue(0.5f < ((PrimitiveSegment) scaledUp.getSegments().get(0)).getScale()); in testScaleComposed() 757 assertTrue(0.5f > ((PrimitiveSegment) scaledDown.getSegments().get(0)).getScale()); in testScaleComposed()
|
/aosp14/frameworks/base/core/api/ |
H A D | test-current.txt | 2593 public final class PrimitiveSegment extends android.os.vibrator.VibrationEffectSegment { 2600 …ll public static final android.os.Parcelable.Creator<android.os.vibrator.PrimitiveSegment> CREATOR;
|
/aosp14/frameworks/base/boot/ |
H A D | preloaded-classes | 6358 android.os.vibrator.PrimitiveSegment$1 6359 android.os.vibrator.PrimitiveSegment
|
H A D | boot-image-profile.txt | 29147 Landroid/os/vibrator/PrimitiveSegment$1; 29148 Landroid/os/vibrator/PrimitiveSegment;
|
/aosp14/frameworks/base/config/ |
H A D | preloaded-classes | 6362 android.os.vibrator.PrimitiveSegment$1 6363 android.os.vibrator.PrimitiveSegment
|
H A D | boot-image-profile.txt | 39254 Landroid/os/vibrator/PrimitiveSegment$1; 39255 Landroid/os/vibrator/PrimitiveSegment;
|