HomeSort by relevance Sort by last modified time
    Searched defs:vibrator (Results 1 - 22 of 22) sorted by null

  /external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
ShadowVibratorTest.java 8 import android.os.Vibrator;
19 private Vibrator vibrator; field in class:ShadowVibratorTest
23 vibrator =
24 (Vibrator)
30 assertThat(vibrator.hasVibrator()).isTrue();
32 shadowOf(vibrator).setHasVibrator(false);
34 assertThat(vibrator.hasVibrator()).isFalse();
40 assertThat(vibrator.hasAmplitudeControl()).isFalse();
42 shadowOf(vibrator).setHasAmplitudeControl(true)
    [all...]
  /external/replicaisland/src/com/replica/replicaisland/
VibrationSystem.java 18 import android.os.Vibrator;
21 /** A system for accessing the Android vibrator. Note that this system requires the app's
22 * AndroidManifest.xml to contain permissions for the Vibrator service.
37 Vibrator vibrator = (Vibrator)params.context.getSystemService(Context.VIBRATOR_SERVICE); local
38 if (vibrator != null) {
39 vibrator.vibrate((int)(seconds * 1000));
PlayerComponent.java 401 VibrationSystem vibrator = sSystemRegistry.vibrationSystem; local
403 if (vibrator != null) {
404 vibrator.vibrate(STOMP_VIBRATE_TIME);
  /cts/tests/tests/permission/src/android/permission/cts/
NoSystemFunctionPermissionTest.java 26 import android.os.Vibrator;
118 * Verify that Vibrator's vibrating related methods requires permissions.
124 Vibrator vibrator = (Vibrator)getContext().getSystemService(Context.VIBRATOR_SERVICE); local
127 vibrator.cancel();
128 fail("Vibrator.cancel() did not throw SecurityException as expected.");
134 vibrator.vibrate(1);
135 fail("Vibrator.vibrate(long) did not throw SecurityException as expected.");
143 vibrator.vibrate(testPattern, 1)
    [all...]
  /device/google/marlin/vibrator/
Vibrator.h 19 #include <android/hardware/vibrator/1.0/IVibrator.h>
26 namespace vibrator { namespace in namespace:android::hardware
30 class Vibrator : public IVibrator {
32 Vibrator(std::ofstream&& enable, std::ofstream&& amplitude);
34 // Methods from ::android::hardware::vibrator::V1_0::IVibrator follow.
47 } // namespace vibrator
service.cpp 16 #define LOG_TAG "android.hardware.vibrator@1.0-service.marlin"
18 #include <android/hardware/vibrator/1.0/IVibrator.h>
24 #include "Vibrator.h"
28 using android::hardware::vibrator::V1_0::IVibrator;
29 using android::hardware::vibrator::V1_0::implementation::Vibrator;
32 static const char *ENABLE_PATH = "/sys/class/timed_output/vibrator/enable";
33 static const char *AMPLITUDE_PATH = "/sys/class/timed_output/vibrator/voltage_level";
50 sp<IVibrator> vibrator = new Vibrator(std::move(enable), std::move(amplitude)) local
    [all...]
Vibrator.cpp 22 #include <hardware/vibrator.h>
24 #include "Vibrator.h"
34 namespace vibrator { namespace in namespace:android::hardware
43 Vibrator::Vibrator(std::ofstream&& enable, std::ofstream&& amplitude) :
47 // Methods from ::android::hardware::vibrator::V1_0::IVibrator follow.
48 Return<Status> Vibrator::on(uint32_t timeout_ms) {
51 ALOGE("Failed to turn vibrator on (%d): %s", errno, strerror(errno));
57 Return<Status> Vibrator::off() {
60 ALOGE("Failed to turn vibrator off (%d): %s", errno, strerror(errno))
    [all...]
  /device/google/crosshatch/vibrator/
Vibrator.h 19 #include <android/hardware/vibrator/1.2/IVibrator.h>
26 namespace vibrator { namespace in namespace:android::hardware
30 class Vibrator : public IVibrator {
32 Vibrator(std::ofstream&& activate, std::ofstream&& duration, std::ofstream&& effect,
35 // Methods from ::android::hardware::vibrator::V1_0::IVibrator follow.
36 using Status = ::android::hardware::vibrator::V1_0::Status;
42 using EffectStrength = ::android::hardware::vibrator::V1_0::EffectStrength;
62 } // namespace vibrator
Vibrator.cpp 22 #include <hardware/vibrator.h>
25 #include "Vibrator.h"
35 namespace vibrator { namespace in namespace:android::hardware
39 using Status = ::android::hardware::vibrator::V1_0::Status;
40 using EffectStrength = ::android::hardware::vibrator::V1_0::EffectStrength;
103 Vibrator::Vibrator(std::ofstream&& activate, std::ofstream&& duration, std::ofstream&& effect,
112 Return<Status> Vibrator::on(uint32_t timeoutMs, uint32_t effectIndex) {
121 // Methods from ::android::hardware::vibrator::V1_1::IVibrator follow.
122 Return<Status> Vibrator::on(uint32_t timeoutMs)
    [all...]
  /device/google/wahoo/vibrator/
Vibrator.h 19 #include <android/hardware/vibrator/1.2/IVibrator.h>
26 namespace vibrator { namespace in namespace:android::hardware
30 class Vibrator : public IVibrator {
32 Vibrator(std::ofstream&& activate, std::ofstream&& duration,
37 // Methods from ::android::hardware::vibrator::V1_0::IVibrator follow.
38 using Status = ::android::hardware::vibrator::V1_0::Status;
44 using EffectStrength = ::android::hardware::vibrator::V1_0::EffectStrength;
71 } // namespace vibrator
Vibrator.cpp 22 #include <hardware/vibrator.h>
25 #include "Vibrator.h"
35 namespace vibrator { namespace in namespace:android::hardware
64 using Status = ::android::hardware::vibrator::V1_0::Status;
65 using EffectStrength = ::android::hardware::vibrator::V1_0::EffectStrength;
67 Vibrator::Vibrator(std::ofstream&& activate, std::ofstream&& duration,
81 mClickDuration = property_get_int32("ro.vibrator.hal.click.duration", WAVEFORM_CLICK_EFFECT_MS);
82 mTickDuration = property_get_int32("ro.vibrator.hal.tick.duration", WAVEFORM_TICK_EFFECT_MS);
84 "ro.vibrator.hal.heavyclick.duration", WAVEFORM_HEAVY_CLICK_EFFECT_MS)
    [all...]
service.cpp 16 #define LOG_TAG "android.hardware.vibrator@1.2-service.wahoo"
18 #include <android/hardware/vibrator/1.2/IVibrator.h>
24 #include "Vibrator.h"
28 using android::hardware::vibrator::V1_2::IVibrator;
29 using android::hardware::vibrator::V1_2::implementation::Vibrator;
34 static constexpr char ACTIVATE_PATH[] = "/sys/class/leds/vibrator/activate";
35 static constexpr char DURATION_PATH[] = "/sys/class/leds/vibrator/duration";
36 static constexpr char STATE_PATH[] = "/sys/class/leds/vibrator/state";
37 static constexpr char RTP_INPUT_PATH[] = "/sys/class/leds/vibrator/device/rtp_input"
192 sp<IVibrator> vibrator = new Vibrator(std::move(activate), std::move(duration), local
    [all...]
  /device/google/bonito/vibrator/
Vibrator.cpp 23 #include <hardware/vibrator.h>
25 #include "Vibrator.h"
34 namespace vibrator { namespace in namespace:android::hardware
67 using Status = ::android::hardware::vibrator::V1_0::Status;
68 using EffectStrength = ::android::hardware::vibrator::V1_0::EffectStrength;
70 Vibrator::Vibrator(HwApi &&hwapi, std::uint32_t short_lra_period, std::uint32_t long_lra_period)
72 mClickDuration = property_get_int32("ro.vibrator.hal.click.duration", WAVEFORM_CLICK_EFFECT_MS);
73 mTickDuration = property_get_int32("ro.vibrator.hal.tick.duration", WAVEFORM_TICK_EFFECT_MS);
75 property_get_int32("ro.vibrator.hal.heavyclick.duration", WAVEFORM_HEAVY_CLICK_EFFECT_MS)
    [all...]
Vibrator.h 19 #include <android/hardware/vibrator/1.2/IVibrator.h>
26 namespace vibrator { namespace in namespace:android::hardware
30 class Vibrator : public IVibrator {
48 Vibrator(HwApi &&hwapi, std::uint32_t short_lra_period, std::uint32_t long_lra_period);
50 // Methods from ::android::hardware::vibrator::V1_0::IVibrator follow.
51 using Status = ::android::hardware::vibrator::V1_0::Status;
57 using EffectStrength = ::android::hardware::vibrator::V1_0::EffectStrength;
80 } // namespace vibrator
service.cpp 16 #define LOG_TAG "android.hardware.vibrator@1.2-service.bonito"
18 #include <android/hardware/vibrator/1.2/IVibrator.h>
25 #include "Vibrator.h"
29 using android::hardware::vibrator::V1_2::IVibrator;
30 using android::hardware::vibrator::V1_2::implementation::Vibrator;
35 static constexpr char ACTIVATE_PATH[] = "/sys/class/leds/vibrator/activate";
36 static constexpr char DURATION_PATH[] = "/sys/class/leds/vibrator/duration";
37 static constexpr char STATE_PATH[] = "/sys/class/leds/vibrator/state";
38 static constexpr char RTP_INPUT_PATH[] = "/sys/class/leds/vibrator/device/rtp_input"
233 sp<IVibrator> vibrator = new Vibrator(std::move(hwapi), short_lra_period, long_lra_period); local
    [all...]
  /cts/apps/CtsVerifier/src/com/android/cts/verifier/location/base/
BaseGnssTestActivity.java 33 import android.os.Vibrator;
311 Vibrator vibrator = (Vibrator) getSystemService(Context.VIBRATOR_SERVICE); local
312 vibrator.vibrate(timeInMs);
317 * See {@link Vibrator#vibrate(long[], int)} for more information.
320 Vibrator vibrator = (Vibrator) getSystemService(Context.VIBRATOR_SERVICE); local
321 vibrator.vibrate(pattern, -1)
    [all...]
  /cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/base/
BaseSensorTestActivity.java 35 import android.os.Vibrator;
443 Vibrator vibrator = (Vibrator) getSystemService(Context.VIBRATOR_SERVICE); local
444 vibrator.vibrate(timeInMs);
449 * See {@link Vibrator#vibrate(long[], int)} for more information.
452 Vibrator vibrator = (Vibrator) getSystemService(Context.VIBRATOR_SERVICE); local
453 vibrator.vibrate(pattern, -1)
    [all...]
  /external/sl4a/ScriptingLayerForAndroid/src/org/connectbot/service/
TerminalManager.java 32 import android.os.Vibrator;
74 private Vibrator vibrator; field in class:TerminalManager
90 vibrator = (Vibrator) mService.getSystemService(Context.VIBRATOR_SERVICE);
210 if (vibrator != null) {
211 vibrator.vibrate(VIBRATE_DURATION);
  /cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/
RingerModeActivity.java 46 import android.os.Vibrator;
93 Vibrator vibrator = (Vibrator) mContext.getSystemService(Context.VIBRATOR_SERVICE); local
94 mHasVibrator = (vibrator != null) && vibrator.hasVibrator();
    [all...]
  /development/samples/ControllerSample/src/com/example/controllersample/
GameView.java 31 import android.os.Vibrator;
47 * the game controller has a vibrator, then it is used to provide feedback when
49 * vibrator is used for that purpose.
783 * Gets the vibrator from the controller if it is present. Note that it
784 * would be easy to get the system vibrator here if the controller one
787 * @return the Vibrator for the controller, or null if it is not
791 private final Vibrator getVibrator() {
800 Vibrator vibrator = getVibrator(); local
801 if (null != vibrator) {
807 Vibrator vibrator = getVibrator(); local
    [all...]
  /cts/hostsidetests/appsecurity/test-apps/EphemeralTestApp/EphemeralApp1/src/com/android/cts/ephemeralapp1/
ClientTest.java 65 import android.os.Vibrator;
1308 final Vibrator vibrator = (Vibrator) InstrumentationRegistry.getContext() local
    [all...]
  /cts/tests/tests/media/src/android/media/cts/
AudioManagerTest.java 54 import android.os.Vibrator;
103 Vibrator vibrator = (Vibrator) mContext.getSystemService(Context.VIBRATOR_SERVICE); local
105 mHasVibrator = (vibrator != null) && vibrator.hasVibrator();
    [all...]

Completed in 728 milliseconds