Home
last modified time | relevance | path

Searched refs:vibrators (Results 1 – 9 of 9) sorted by relevance

/frameworks/base/core/java/android/os/vibrator/
DMultiVibratorInfo.java46 public MultiVibratorInfo(int id, VibratorInfo[] vibrators) { in MultiVibratorInfo() argument
47 this(id, vibrators, frequencyProfileIntersection(vibrators)); in MultiVibratorInfo()
51 int id, VibratorInfo[] vibrators, VibratorInfo.FrequencyProfile mergedProfile) { in MultiVibratorInfo() argument
53 capabilitiesIntersection(vibrators, mergedProfile.isEmpty()), in MultiVibratorInfo()
54 supportedEffectsIntersection(vibrators), in MultiVibratorInfo()
55 supportedBrakingIntersection(vibrators), in MultiVibratorInfo()
56 supportedPrimitivesAndDurationsIntersection(vibrators), in MultiVibratorInfo()
57 integerLimitIntersection(vibrators, VibratorInfo::getPrimitiveDelayMax), in MultiVibratorInfo()
58 integerLimitIntersection(vibrators, VibratorInfo::getCompositionSizeMax), in MultiVibratorInfo()
59 integerLimitIntersection(vibrators, VibratorInfo::getPwlePrimitiveDurationMax), in MultiVibratorInfo()
[all …]
/frameworks/base/services/core/java/com/android/server/vibrator/
DDeviceAdapter.java52 DeviceAdapter(VibrationSettings settings, SparseArray<VibratorController> vibrators) { in DeviceAdapter() argument
66 mAvailableVibrators = vibrators; in DeviceAdapter()
67 mAvailableVibratorIds = new int[vibrators.size()]; in DeviceAdapter()
68 for (int i = 0; i < vibrators.size(); i++) { in DeviceAdapter()
69 mAvailableVibratorIds[i] = vibrators.keyAt(i); in DeviceAdapter()
DStartSequentialEffectStep.java257 SparseArray<VibratorController> vibrators = conductor.getVibrators(); in DeviceEffectMap() local
260 mVibratorEffects = new SparseArray<>(vibrators.size()); in DeviceEffectMap()
261 mVibratorIds = new int[vibrators.size()]; in DeviceEffectMap()
264 for (int i = 0; i < vibrators.size(); i++) { in DeviceEffectMap()
265 int vibratorId = vibrators.keyAt(i); in DeviceEffectMap()
279 SparseArray<VibratorController> vibrators = conductor.getVibrators(); in DeviceEffectMap() local
284 if (vibrators.contains(vibratorId)) { in DeviceEffectMap()
/frameworks/base/services/tests/vibrator/src/com/android/server/vibrator/
DDeviceAdapterTest.java81 SparseArray<VibratorController> vibrators = new SparseArray<>(); in setUp() local
82 vibrators.put(EMPTY_VIBRATOR_ID, createEmptyVibratorController(EMPTY_VIBRATOR_ID)); in setUp()
83 vibrators.put(PWLE_VIBRATOR_ID, createPwleVibratorController(PWLE_VIBRATOR_ID)); in setUp()
84 vibrators.put(PWLE_WITHOUT_FREQUENCIES_VIBRATOR_ID, in setUp()
87 mAdapter = new DeviceAdapter(mVibrationSettings, vibrators); in setUp()
/frameworks/native/services/inputflinger/reader/
DInputDevice.cpp626 std::vector<int32_t> vibrators; in getVibratorIds() local
627 for_each_mapper([&vibrators](InputMapper& mapper) { in getVibratorIds()
629 vibrators.reserve(vibrators.size() + devVibs.size()); in getVibratorIds()
630 vibrators.insert(vibrators.end(), devVibs.begin(), devVibs.end()); in getVibratorIds()
632 return vibrators; in getVibratorIds()
DEventHub.cpp1703 std::vector<int32_t> vibrators; in getVibratorIds() local
1707 vibrators.push_back(FF_STRONG_MAGNITUDE_CHANNEL_IDX); in getVibratorIds()
1708 vibrators.push_back(FF_WEAK_MAGNITUDE_CHANNEL_IDX); in getVibratorIds()
1710 return vibrators; in getVibratorIds()
/frameworks/base/services/core/jni/
Dcom_android_server_input_InputManagerService.cpp2202 std::vector<int32_t> vibrators = im->getInputManager()->getReader().getVibratorIds(deviceId); in nativeVibrate() local
2209 for (int32_t channel = 0; channel < vibrators.size(); channel++) { in nativeVibrate()
2210 element.addChannel(vibrators[channel], static_cast<uint8_t>(amplitudes[i])); in nativeVibrate()
2284 std::vector<int32_t> vibrators = im->getInputManager()->getReader().getVibratorIds(deviceId); in nativeGetVibratorIds() local
2286 jintArray vibIdArray = env->NewIntArray(vibrators.size()); in nativeGetVibratorIds()
2288 env->SetIntArrayRegion(vibIdArray, 0, vibrators.size(), vibrators.data()); in nativeGetVibratorIds()
/frameworks/base/media/java/android/media/
DAudioSystem.java2363 public static native int setVibratorInfos(@NonNull List<Vibrator> vibrators); in setVibratorInfos() argument
/frameworks/base/services/core/java/com/android/server/audio/
DAudioService.java1614 List<Vibrator> vibrators = new ArrayList<>(vibratorIds.length); in updateVibratorInfos() local
1618 vibrators.add(vibrator); in updateVibratorInfos()
1623 if (vibrators.isEmpty()) { in updateVibratorInfos()
1627 AudioSystem.setVibratorInfos(vibrators); in updateVibratorInfos()