Home | History | Annotate | Download | only in cts

Lines Matching defs:vibrator

26 import android.os.Vibrator;
118 * Verify that Vibrator's vibrating related methods requires permissions.
124 Vibrator vibrator = (Vibrator)getContext().getSystemService(Context.VIBRATOR_SERVICE);
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);
144 fail("Vibrator.vibrate(long[], int) not throw SecurityException as expected.");