/frameworks/base/core/java/android/os/vibrator/ |
D | MultiVibratorInfo.java | 46 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/ |
D | DeviceAdapter.java | 52 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()
|
D | StartSequentialEffectStep.java | 257 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/ |
D | DeviceAdapterTest.java | 81 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/ |
D | InputDevice.cpp | 626 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()
|
D | EventHub.cpp | 1703 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/ |
D | com_android_server_input_InputManagerService.cpp | 2202 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/ |
D | AudioSystem.java | 2363 public static native int setVibratorInfos(@NonNull List<Vibrator> vibrators); in setVibratorInfos() argument
|
/frameworks/base/services/core/java/com/android/server/audio/ |
D | AudioService.java | 1614 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()
|