/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));
|
/hardware/interfaces/vibrator/1.0/default/ |
Vibrator.cpp | 24 #include <hardware/vibrator.h> 26 #include "Vibrator.h" 30 namespace vibrator { namespace in namespace:android::hardware 34 Vibrator::Vibrator(vibrator_device_t *device) : mDevice(device) {} 36 // Methods from ::android::hardware::vibrator::V1_0::IVibrator follow. 37 Return<Status> Vibrator::on(uint32_t timeout_ms) { 46 Return<Status> Vibrator::off() { 55 Return<bool> Vibrator::supportsAmplitudeControl() { 59 Return<Status> Vibrator::setAmplitude(uint8_t) [all...] |
Vibrator.h | 19 #include <android/hardware/vibrator/1.0/IVibrator.h> 25 namespace vibrator { namespace in namespace:android::hardware 29 struct Vibrator : public IVibrator { 30 Vibrator(vibrator_device_t *device); 32 // Methods from ::android::hardware::vibrator::V1_0::IVibrator follow. 47 } // namespace vibrator
|
/external/robolectric/v1/src/main/java/android/os/ |
TestVibrator.java | 3 public class TestVibrator extends Vibrator {
|
/device/google/marlin/vibrator/ |
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...] |
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...] |
/developers/build/prebuilts/gradle/JumpingJack/Wearable/src/main/java/com/example/android/wearable/jumpingjack/ |
Utils.java | 21 import android.os.Vibrator; 40 Vibrator v = (Vibrator) context.getSystemService(Context.VIBRATOR_SERVICE);
|
/developers/samples/android/wearable/wear/JumpingJack/Wearable/src/main/java/com/example/android/wearable/jumpingjack/ |
Utils.java | 21 import android.os.Vibrator; 40 Vibrator v = (Vibrator) context.getSystemService(Context.VIBRATOR_SERVICE);
|
/development/samples/ApiDemos/src/com/example/android/apis/os/ |
MorseCode.java | 25 import android.os.Vibrator; 31 * <h3>App that vibrates the vibrator with the Morse Code for a string.</h3> 33 <p>This demonstrates the {@link android.os.Vibrator android.os.Vibrator} class. 36 OS / Morse Code Vibrator 42 * <td >The Morse Code Vibrator</td> 85 // android.os.Vibrator for more info about the format of this array 89 Vibrator vibrator = (Vibrator)getSystemService(Context.VIBRATOR_SERVICE) [all...] |
/development/samples/browseable/JumpingJack/src/com.example.android.wearable.jumpingjack/ |
Utils.java | 21 import android.os.Vibrator; 40 Vibrator v = (Vibrator) context.getSystemService(Context.VIBRATOR_SERVICE);
|
/packages/apps/Settings/src/com/android/settings/notification/ |
VibrateOnTouchPreferenceController.java | 22 import android.os.Vibrator; 45 final Vibrator vibrator = (Vibrator) context.getSystemService(Context.VIBRATOR_SERVICE); local 46 return vibrator != null && vibrator.hasVibrator();
|
/packages/apps/DeskClock/src/com/android/deskclock/alarms/ |
AlarmKlaxon.java | 23 import android.os.Vibrator; 48 ((Vibrator) context.getSystemService(Context.VIBRATOR_SERVICE)).cancel(); 63 final Vibrator vibrator = getVibrator(context); local 65 vibrateLOrLater(vibrator); 67 vibrator.vibrate(VIBRATE_PATTERN, 0); 75 private static void vibrateLOrLater(Vibrator vibrator) { 76 vibrator.vibrate(VIBRATE_PATTERN, 0, new AudioAttributes.Builder() 82 private static Vibrator getVibrator(Context context) [all...] |
/packages/apps/DeskClock/src/com/android/deskclock/timer/ |
TimerKlaxon.java | 24 import android.os.Vibrator; 49 ((Vibrator) context.getSystemService(Context.VIBRATOR_SERVICE)).cancel(); 69 final Vibrator vibrator = getVibrator(context); local 71 vibrateLOrLater(vibrator); 73 vibrator.vibrate(VIBRATE_PATTERN, 0); 80 private static void vibrateLOrLater(Vibrator vibrator) { 81 vibrator.vibrate(VIBRATE_PATTERN, 0, new AudioAttributes.Builder() 87 private static Vibrator getVibrator(Context context) [all...] |
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowVibrator.java | 3 import android.os.Vibrator; 8 @Implements(Vibrator.class)
|
/frameworks/base/core/java/android/os/ |
NullVibrator.java | 22 * Vibrator implementation that does nothing. 26 public class NullVibrator extends Vibrator {
|
Vibrator.java | 27 * Class that operates the vibrator on the device. 33 public abstract class Vibrator { 34 private static final String TAG = "Vibrator"; 41 public Vibrator() { 48 protected Vibrator(Context context) { 53 * Check whether the hardware has a vibrator. 55 * @return True if the hardware has a vibrator, else false. 60 * Check whether the vibrator has amplitude control. 108 * the vibrator in milliseconds. The first value indicates the number of milliseconds 109 * to wait before turning the vibrator on. The next value indicates the number of millisecond [all...] |
/frameworks/base/services/core/java/com/android/server/fingerprint/ |
FingerprintUtils.java | 21 import android.os.Vibrator; 76 Vibrator vibrator = context.getSystemService(Vibrator.class); local 77 if (vibrator != null) { 78 vibrator.vibrate(FP_ERROR_VIBRATE_PATTERN, -1); 83 Vibrator vibrator = context.getSystemService(Vibrator.class); local 84 if (vibrator != null) [all...] |
/cts/tests/tests/os/src/android/os/cts/ |
VibratorTest.java | 20 import android.os.Vibrator; 26 private Vibrator mVibrator; 31 mVibrator = (Vibrator) getContext().getSystemService(Context.VIBRATOR_SERVICE); 79 // This test only get two threads to run vibrator at the same time
|
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/ |
VibratorTest.java | 14 import android.os.Vibrator; 20 private Vibrator vibrator; field in class:VibratorTest 25 vibrator = (Vibrator) new Activity().getSystemService(Context.VIBRATOR_SERVICE); 26 shadowVibrator = shadowOf(vibrator); 31 vibrator.vibrate(5000); 40 vibrator.vibrate(pattern, 2); 49 vibrator.vibrate(5000); 52 vibrator.cancel() [all...] |
/frameworks/opt/datetimepicker/src/com/android/datetimepicker/ |
HapticFeedbackController.java | 8 import android.os.Vibrator; 26 private Vibrator mVibrator; 44 mVibrator = (Vibrator) mContext.getSystemService(Service.VIBRATOR_SERVICE);
|
/cts/tests/tests/permission/src/android/permission/cts/ |
NoSystemFunctionPermissionTest.java | 26 import android.os.Vibrator; 116 * Verify that Vibrator's vibrating related methods requires permissions. 122 Vibrator vibrator = (Vibrator)getContext().getSystemService(Context.VIBRATOR_SERVICE); local 125 vibrator.cancel(); 126 fail("Vibrator.cancel() did not throw SecurityException as expected."); 132 vibrator.vibrate(1); 133 fail("Vibrator.vibrate(long) did not throw SecurityException as expected."); 141 vibrator.vibrate(testPattern, 1) [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
AudioAndHapticFeedbackManager.java | 21 import android.os.Vibrator; 36 private Vibrator mVibrator; 58 mVibrator = (Vibrator) context.getSystemService(Context.VIBRATOR_SERVICE);
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/ |
NotificationVolumePreferenceControllerTest.java | 21 import android.os.Vibrator; 50 private Vibrator mVibrator;
|
/packages/services/Telephony/src/com/android/services/telephony/ |
EmergencyTonePlayer.java | 24 import android.os.Vibrator; 49 // We don't rely on getSystemService(Context.VIBRATOR_SERVICE) to make sure that this vibrator 51 private final Vibrator mVibrator = new SystemVibrator();
|