Home
last modified time | relevance | path

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

/aosp14/frameworks/base/core/tests/coretests/src/android/os/vibrator/
H A DPrimitiveSegmentTest.java47 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 DPrimitiveSegment.java38 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 DVibrationEffectSegment.java197 return new PrimitiveSegment(in);
/aosp14/frameworks/base/services/core/java/com/android/server/vibrator/
H A DComposePrimitivesVibratorStep.java21 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 DVibrationStats.java23 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 DVibratorController.java27 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 DVibration.java26 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 DStartSequentialEffectStep.java27 import android.os.vibrator.PrimitiveSegment;
345 } else if (firstSegment instanceof PrimitiveSegment) { in calculateRequiredSyncCapabilities()
H A DVibrationStepConductor.java26 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 DStepToRampAdapterTest.java25 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 DFakeVibratorControllerProvider.java25 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 DDeviceVibrationEffectAdapterTest.java31 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 DRampToStepAdapterTest.java25 import android.os.vibrator.PrimitiveSegment;
68 new PrimitiveSegment(VibrationEffect.Composition.PRIMITIVE_TICK, 1, 10))); in testStepAndPrebakedAndPrimitiveSegments_keepsListUnchanged()
H A DVibratorControllerTest.java46 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 DRampDownAdapterTest.java24 import android.os.vibrator.PrimitiveSegment;
61 new PrimitiveSegment(VibrationEffect.Composition.PRIMITIVE_TICK, 1, 10))); in testPrebakedAndPrimitiveSegments_keepsListUnchanged()
H A DVibrationScalerTest.java47 import android.os.vibrator.PrimitiveSegment;
254 PrimitiveSegment scaled = getFirstSegment(mVibrationScaler.scale(composed, USAGE_RINGTONE));
H A DVibratorManagerServiceTest.java75 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 DVibrationThreadTest.java56 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 DVibrationEffect.java33 import android.os.vibrator.PrimitiveSegment;
1153 PrimitiveSegment primitive = new PrimitiveSegment(primitiveId, scale,
/aosp14/frameworks/base/core/tests/coretests/src/android/os/
H A DVibrationEffectTest.java45 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 Dtest-current.txt2593 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 Dpreloaded-classes6358 android.os.vibrator.PrimitiveSegment$1
6359 android.os.vibrator.PrimitiveSegment
H A Dboot-image-profile.txt29147 Landroid/os/vibrator/PrimitiveSegment$1;
29148 Landroid/os/vibrator/PrimitiveSegment;
/aosp14/frameworks/base/config/
H A Dpreloaded-classes6362 android.os.vibrator.PrimitiveSegment$1
6363 android.os.vibrator.PrimitiveSegment
H A Dboot-image-profile.txt39254 Landroid/os/vibrator/PrimitiveSegment$1;
39255 Landroid/os/vibrator/PrimitiveSegment;