/frameworks/base/core/tests/coretests/src/android/os/ |
D | VibratorInfoTest.java | 45 private static final VibratorInfo.FrequencyMapping EMPTY_FREQUENCY_MAPPING = 46 new VibratorInfo.FrequencyMapping(Float.NaN, Float.NaN, Float.NaN, Float.NaN, null); 47 private static final VibratorInfo.FrequencyMapping TEST_FREQUENCY_MAPPING = 48 new VibratorInfo.FrequencyMapping(TEST_MIN_FREQUENCY, 54 VibratorInfo noCapabilities = new VibratorInfo.Builder(TEST_VIBRATOR_ID).build(); in testHasAmplitudeControl() 56 VibratorInfo composeAndAmplitudeControl = new VibratorInfo.Builder(TEST_VIBRATOR_ID) in testHasAmplitudeControl() 65 VibratorInfo info = new VibratorInfo.Builder(TEST_VIBRATOR_ID) in testHasCapabilities() 74 VibratorInfo noEffects = new VibratorInfo.Builder(TEST_VIBRATOR_ID).build(); in testIsEffectSupported() 75 VibratorInfo canClick = new VibratorInfo.Builder(TEST_VIBRATOR_ID) in testIsEffectSupported() 88 VibratorInfo info = new VibratorInfo.Builder(TEST_VIBRATOR_ID) in testIsPrimitiveSupported() [all …]
|
D | VibratorTest.java | 78 new VibratorInfo[0]); in areEffectsSupported_noVibrator_returnsAlwaysNo() 85 VibratorInfo supportedVibrator = new VibratorInfo.Builder(/* id= */ 1) in areEffectsSupported_unsupportedInOneVibrator_returnsNo() 88 VibratorInfo unsupportedVibrator = new VibratorInfo.Builder(/* id= */ 2) in areEffectsSupported_unsupportedInOneVibrator_returnsNo() 92 new VibratorInfo[]{supportedVibrator, unsupportedVibrator}); in areEffectsSupported_unsupportedInOneVibrator_returnsNo() 99 VibratorInfo supportedVibrator = new VibratorInfo.Builder(/* id= */ 1) in areEffectsSupported_unknownInOneVibrator_returnsUnknown() 102 VibratorInfo unknownSupportVibrator = VibratorInfo.EMPTY_VIBRATOR_INFO; in areEffectsSupported_unknownInOneVibrator_returnsUnknown() 104 new VibratorInfo[]{supportedVibrator, unknownSupportVibrator}); in areEffectsSupported_unknownInOneVibrator_returnsUnknown() 111 VibratorInfo firstVibrator = new VibratorInfo.Builder(/* id= */ 1) in arePrimitivesSupported_supportedInAllVibrators_returnsYes() 114 VibratorInfo secondVibrator = new VibratorInfo.Builder(/* id= */ 2) in arePrimitivesSupported_supportedInAllVibrators_returnsYes() 118 new VibratorInfo[]{firstVibrator, secondVibrator}); in arePrimitivesSupported_supportedInAllVibrators_returnsYes() [all …]
|
/frameworks/base/services/core/java/com/android/server/vibrator/ |
D | ClippingAmplitudeAndFrequencyAdapter.java | 19 import android.os.VibratorInfo; 38 implements VibrationEffectAdapters.SegmentsAdapter<VibratorInfo> { 41 public int apply(List<VibrationEffectSegment> segments, int repeatIndex, VibratorInfo info) { in apply() 54 private StepSegment apply(StepSegment segment, VibratorInfo info) { in apply() 62 private RampSegment apply(RampSegment segment, VibratorInfo info) { in apply() 73 private float clampFrequency(VibratorInfo info, float frequency) { in clampFrequency() 77 private float clampAmplitude(VibratorInfo info, float frequency, float amplitude) { in clampAmplitude()
|
D | DeviceVibrationEffectAdapter.java | 20 import android.os.VibratorInfo; 27 implements VibrationEffectAdapters.EffectAdapter<VibratorInfo> { 29 private final List<VibrationEffectAdapters.SegmentsAdapter<VibratorInfo>> mSegmentAdapters; 43 public VibrationEffect apply(VibrationEffect effect, VibratorInfo info) { in apply()
|
D | VibratorController.java | 25 import android.os.VibratorInfo; 44 private final VibratorInfo.Builder mVibratorInfoBuilder; 47 private VibratorInfo mVibratorInfo; 76 mVibratorInfoBuilder = new VibratorInfo.Builder(vibratorId); in VibratorController() 112 public VibratorInfo getVibratorInfo() { in getVibratorInfo() 408 VibratorInfo.Builder infoBuilder); in getInfo() 478 public boolean getInfo(float suggestedFrequencyRange, VibratorInfo.Builder infoBuilder) { in getInfo()
|
D | RampToStepAdapter.java | 20 import android.os.VibratorInfo; 34 final class RampToStepAdapter implements VibrationEffectAdapters.SegmentsAdapter<VibratorInfo> { 44 VibratorInfo info) { in apply()
|
D | StepToRampAdapter.java | 20 import android.os.VibratorInfo; 35 final class StepToRampAdapter implements VibrationEffectAdapters.SegmentsAdapter<VibratorInfo> { 39 VibratorInfo info) { in apply() 76 private int splitLongRampSegments(VibratorInfo info, List<VibrationEffectSegment> segments, in splitLongRampSegments()
|
D | RampDownAdapter.java | 19 import android.os.VibratorInfo; 45 final class RampDownAdapter implements VibrationEffectAdapters.SegmentsAdapter<VibratorInfo> { 56 VibratorInfo info) { in apply()
|
D | VibrationThread.java | 30 import android.os.VibratorInfo; 1500 VibratorInfo vibratorInfo = mVibrators.valueAt(i).getVibratorInfo(); in DeviceEffectMap() 1516 VibratorInfo vibratorInfo = mVibrators.valueAt(i).getVibratorInfo(); in DeviceEffectMap()
|
D | VibratorManagerService.java | 50 import android.os.VibratorInfo; 255 public VibratorInfo getVibratorInfo(int vibratorId) { in getVibratorInfo()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/vibrator/ |
D | DeviceVibrationEffectAdapterTest.java | 25 import android.os.VibratorInfo; 56 private static final VibratorInfo.FrequencyMapping EMPTY_FREQUENCY_MAPPING = 57 new VibratorInfo.FrequencyMapping(Float.NaN, Float.NaN, Float.NaN, Float.NaN, null); 58 private static final VibratorInfo.FrequencyMapping TEST_FREQUENCY_MAPPING = 59 new VibratorInfo.FrequencyMapping(TEST_MIN_FREQUENCY, 132 VibratorInfo info = createVibratorInfo(TEST_FREQUENCY_MAPPING, in testStepAndRampSegments_withPwleCapability_convertsStepsToRamps() 163 VibratorInfo info = createVibratorInfo(EMPTY_FREQUENCY_MAPPING, in testStepAndRampSegments_withEmptyFreqMapping_returnsSameAmplitudesAndZeroFreq() 192 VibratorInfo info = createVibratorInfo(TEST_FREQUENCY_MAPPING, in testStepAndRampSegments_withValidFreqMapping_returnsClippedValues() 197 private static VibratorInfo createVibratorInfo(VibratorInfo.FrequencyMapping frequencyMapping, in createVibratorInfo() 200 return new VibratorInfo.Builder(0) in createVibratorInfo()
|
D | StepToRampAdapterTest.java | 23 import android.os.VibratorInfo; 92 VibratorInfo vibratorInfo = new VibratorInfo.Builder(0) in testRampSegments_withPwleDurationLimit_splitsLongRamps() 128 VibratorInfo vibratorInfo = createVibratorInfo(IVibrator.CAP_COMPOSE_PWLE_EFFECTS); in testStepAndRampSegments_withPwleCapabilityAndNoFrequency_keepsOriginalSteps() 158 VibratorInfo vibratorInfo = createVibratorInfo(IVibrator.CAP_COMPOSE_PWLE_EFFECTS); in testStepAndRampSegments_withPwleCapabilityAndStepNextToRamp_convertsStepsToRamps() 176 VibratorInfo vibratorInfo = createVibratorInfo(IVibrator.CAP_COMPOSE_PWLE_EFFECTS); in testStepSegments_withPwleCapabilityAndFrequency_convertsStepsToRamps() 183 private static VibratorInfo createVibratorInfo(int... capabilities) { in createVibratorInfo() 184 return new VibratorInfo.Builder(0) in createVibratorInfo()
|
D | RampToStepAdapterTest.java | 23 import android.os.VibratorInfo; 79 VibratorInfo vibratorInfo = createVibratorInfo(IVibrator.CAP_COMPOSE_PWLE_EFFECTS); in testRampSegments_withPwleCapability_keepsListUnchanged() 117 private static VibratorInfo createVibratorInfo(int... capabilities) { in createVibratorInfo() 118 return new VibratorInfo.Builder(0) in createVibratorInfo()
|
D | VibratorControllerTest.java | 44 import android.os.VibratorInfo; 299 VibratorInfo.FrequencyMapping frequencyMapping = new VibratorInfo.FrequencyMapping( in mockVibratorCapabilities() 301 when(mNativeWrapperMock.getInfo(anyFloat(), any(VibratorInfo.Builder.class))) in mockVibratorCapabilities() 303 ((VibratorInfo.Builder) invocation.getArgument(1)) in mockVibratorCapabilities()
|
D | FakeVibratorControllerProvider.java | 23 import android.os.VibratorInfo; 158 public boolean getInfo(float suggestedFrequencyRange, VibratorInfo.Builder infoBuilder) { in getInfo() 170 infoBuilder.setFrequencyMapping(new VibratorInfo.FrequencyMapping(mMinFrequency, in getInfo()
|
D | RampDownAdapterTest.java | 22 import android.os.VibratorInfo; 47 private static final VibratorInfo TEST_VIBRATOR_INFO = new VibratorInfo.Builder(0).build();
|
D | VibratorManagerServiceTest.java | 70 import android.os.VibratorInfo; 284 VibratorInfo info = createSystemReadyService().getVibratorInfo(1);
|
/frameworks/base/core/java/android/os/ |
D | SystemVibrator.java | 64 protected VibratorInfo getInfo() { in getInfo() 71 return VibratorInfo.EMPTY_VIBRATOR_INFO; in getInfo() 74 VibratorInfo[] vibratorInfos = new VibratorInfo[vibratorIds.length]; in getInfo() 262 public static class AllVibratorsInfo extends VibratorInfo { 263 private final VibratorInfo[] mVibratorInfos; 265 public AllVibratorsInfo(VibratorInfo[] vibrators) { in AllVibratorsInfo() 267 vibrators.length > 0 ? vibrators[0] : VibratorInfo.EMPTY_VIBRATOR_INFO); in AllVibratorsInfo() 277 for (VibratorInfo info : mVibratorInfos) { in isEffectSupported() 293 for (VibratorInfo info : mVibratorInfos) { in isPrimitiveSupported() 304 for (VibratorInfo info : mVibratorInfos) { in getPrimitiveDuration() [all …]
|
D | VibratorInfo.java | 42 public class VibratorInfo implements Parcelable { class 46 public static final VibratorInfo EMPTY_VIBRATOR_INFO = new VibratorInfo.Builder(-1).build(); 62 VibratorInfo(Parcel in) { in VibratorInfo() method in VibratorInfo 73 mFrequencyMapping = in.readParcelable(VibratorInfo.class.getClassLoader()); in VibratorInfo() 100 public VibratorInfo(int id, long capabilities, @Nullable SparseBooleanArray supportedEffects, in VibratorInfo() method in VibratorInfo 118 protected VibratorInfo(int id, int capabilities, VibratorInfo baseVibrator) { in VibratorInfo() method in VibratorInfo 150 if (!(o instanceof VibratorInfo)) { in equals() 153 VibratorInfo that = (VibratorInfo) o; in equals() 780 public VibratorInfo build() { in build() 781 return new VibratorInfo(mId, mCapabilities, mSupportedEffects, mSupportedBraking, in build() [all …]
|
D | IVibratorManagerService.aidl | 22 import android.os.VibratorInfo; 27 VibratorInfo getVibratorInfo(int vibratorId); in getVibratorInfo()
|
D | Vibrator.java | 169 protected VibratorInfo getInfo() { in getInfo() 170 return VibratorInfo.EMPTY_VIBRATOR_INFO; in getInfo() 509 VibratorInfo info = getInfo(); in areEffectsSupported() 566 VibratorInfo info = getInfo(); in arePrimitivesSupported() 606 VibratorInfo info = getInfo(); in getPrimitiveDurations()
|
D | SystemVibratorManager.java | 92 VibratorInfo info = null; in getVibrator() 190 private final VibratorInfo mVibratorInfo; 192 SingleVibrator(@NonNull VibratorInfo vibratorInfo) { in SingleVibrator() 197 protected VibratorInfo getInfo() { in getInfo()
|
D | VibratorInfo.aidl | 19 parcelable VibratorInfo;
|
/frameworks/base/core/java/android/hardware/input/ |
D | InputDeviceVibrator.java | 29 import android.os.VibratorInfo; 46 private final VibratorInfo mVibratorInfo; 57 mVibratorInfo = new VibratorInfo.Builder(vibratorId) in InputDeviceVibrator() 85 protected VibratorInfo getInfo() { in getInfo()
|
/frameworks/base/services/ |
D | art-profile | 42508 …or/StepSegment;Landroid/os/VibratorInfo;)Landroid/os/vibrator/StepSegment;+]Landroid/os/VibratorIn… 42509 …pingAmplitudeAndFrequencyAdapter;->apply(Ljava/util/List;ILandroid/os/VibratorInfo;)I+]Ljava/util/… 42511 …uencyAdapter;->clampAmplitude(Landroid/os/VibratorInfo;FF)F+]Landroid/os/VibratorInfo;Landroid/os/… 42512 …quencyAdapter;->clampFrequency(Landroid/os/VibratorInfo;F)F+]Landroid/os/VibratorInfo;Landroid/os/… 42514 …ibrationEffectAdapter;->apply(Landroid/os/VibrationEffect;Landroid/os/VibratorInfo;)Landroid/os/Vi… 42523 HPLcom/android/server/vibrator/RampDownAdapter;->apply(Ljava/util/List;ILandroid/os/VibratorInfo;)I 42526 …apter;->apply(Ljava/util/List;ILandroid/os/VibratorInfo;)I+]Landroid/os/VibratorInfo;Landroid/os/V… 42529 …apter;->apply(Ljava/util/List;ILandroid/os/VibratorInfo;)I+]Landroid/os/VibratorInfo;Landroid/os/V… 42605 …udeStep;->shouldPlayWhenVibratorComplete(I)Z+]Landroid/os/VibratorInfo;Landroid/os/VibratorInfo;]L… 42612 …/vibrator/VibrationThread$ComposePrimitivesStep;]Landroid/os/VibratorInfo;Landroid/os/VibratorInfo; [all …]
|