HomeSort by relevance Sort by last modified time
    Searched refs:acceleration (Results 1 - 25 of 55) sorted by null

1 2 3

  /cts/tests/acceleration/src/android/acceleration/cts/
HardwareAcceleratedActivity.java 17 package android.acceleration.cts;
SoftwareAcceleratedActivity.java 17 package android.acceleration.cts;
WindowFlagHardwareAcceleratedActivity.java 17 package android.acceleration.cts;
BaseAcceleratedActivity.java 17 package android.acceleration.cts;
19 import com.android.cts.acceleration.stub.R;
36 setContentView(R.layout.acceleration);
AcceleratedView.java 17 package android.acceleration.cts;
  /external/replicaisland/src/com/replica/replicaisland/
Interpolator.java 20 * Helper class for interpolating velocity over time given a target velocity and acceleration.
22 * Note that acceleration is effectively an absolute value--it always points in the direction of
35 // Rather than simply interpolating acceleration and velocity for each time step
36 // (as in, position += (velocity * time); velocity += (acceleration * time);),
49 // change in position = velocity * time + (0.5 * acceleration * (time^2))
50 // change in velocity = acceleration * time
52 public void set(float current, float target, float acceleration) {
55 mAcceleration = acceleration;
63 // point the acceleration at the target, or zero it if we are already
67 // calculate scaled acceleration (0.5 * acceleration * (time^2)
    [all...]
GameObject.java 188 public final void setAcceleration(Vector2 acceleration) {
189 mAcceleration.set(acceleration);
  /frameworks/base/include/androidfw/
VelocityControl.h 27 * Specifies parameters that govern pointer or wheel acceleration.
39 // The scaled speed at which acceleration begins to be applied.
41 // small precise motions that are performed without any acceleration.
47 // The scaled speed at which maximum acceleration is applied.
49 // the range of speeds over which the acceleration factor is interpolated.
50 // The wider the range, the smoother the acceleration.
56 // The acceleration factor.
61 // Default is 1.0 (no acceleration).
62 float acceleration; member in struct:android::VelocityControlParameters
65 scale(1.0f), lowThreshold(0.0f), highThreshold(0.0f), acceleration(1.0f)
    [all...]
  /external/webkit/Source/WebCore/dom/
DeviceMotionEvent.idl 31 readonly attribute [Custom] Acceleration acceleration;
32 readonly attribute [Custom] Acceleration accelerationIncludingGravity;
35 [Custom] void initDeviceMotionEvent(in DOMString type, in boolean bubbles, in boolean cancelable, in Acceleration acceleration, in Acceleration accelerationIncludingGravity, in RotationRate rotationRate, in double interval);
DeviceMotionData.cpp 31 PassRefPtr<DeviceMotionData::Acceleration> DeviceMotionData::Acceleration::create(bool canProvideX, double x,
35 return adoptRef(new DeviceMotionData::Acceleration(canProvideX, x, canProvideY, y, canProvideZ, z));
38 DeviceMotionData::Acceleration::Acceleration(bool canProvideX, double x, bool canProvideY, double y, bool canProvideZ, double z)
71 PassRefPtr<DeviceMotionData> DeviceMotionData::create(PassRefPtr<Acceleration> acceleration, PassRefPtr<Acceleration> accelerationIncludingGravity,
74 return adoptRef(new DeviceMotionData(acceleration, accelerationIncludingGravity, rotationRate, canProvideInterval, interval));
82 DeviceMotionData::DeviceMotionData(PassRefPtr<Acceleration> acceleration, PassRefPtr<Acceleration> accelerationIncludingGravity
    [all...]
DeviceMotionData.h 37 class Acceleration : public RefCounted<DeviceMotionData::Acceleration> {
39 static PassRefPtr<Acceleration> create(bool canProvideX, double x, bool canProvideY, double y, bool canProvideZ, double z);
50 Acceleration(bool canProvideX, double x, bool canProvideY, double y, bool canProvideZ, double z);
86 static PassRefPtr<DeviceMotionData> create(PassRefPtr<Acceleration> acceleration, PassRefPtr<Acceleration> accelerationIncludingGravity,
89 const Acceleration* acceleration() const { return m_acceleration.get(); } function in class:WebCore::DeviceMotionData
90 const Acceleration* accelerationIncludingGravity() const { return m_accelerationIncludingGravity.get();
    [all...]
  /external/webkit/LayoutTests/fast/dom/DeviceMotion/script-tests/
optional-event-properties.js 17 shouldBeTrue("event.acceleration == null");
23 shouldBeTrue("event.acceleration.x == 0");
24 shouldBeTrue("event.acceleration.y == 1");
25 shouldBeTrue("event.acceleration.z == 2");
43 shouldBeTrue("event.acceleration.x == 0");
44 shouldBeTrue("event.acceleration.y == 1");
45 shouldBeTrue("event.acceleration.z == null");
55 shouldBeTrue("event.acceleration == null");
61 shouldBeTrue("event.acceleration == null");
67 shouldBeTrue("event.acceleration == null")
    [all...]
create-event.js 10 shouldBeTrue("'acceleration' in event");
18 shouldBeTrue("typeof event.acceleration == 'object'");
  /cts/tests/tests/acceleration/src/android/acceleration/cts/
SoftwareAccelerationTest.java 17 package android.acceleration.cts;
20 * Test that uses an Activity with hardware acceleration explicitly disabled
21 * and makes sure that all views are rendered using software acceleration.
HardwareAccelerationTest.java 17 package android.acceleration.cts;
20 * Test that uses an Activity with hardware acceleration enabled.
30 // Hardware acceleration should be available on devices with GL ES 2 or higher...
WindowFlagHardwareAccelerationTest.java 17 package android.acceleration.cts;
20 * Test that uses an Activity with hardware acceleration enabled.
30 // Hardware acceleration should be available on devices with GL ES 2 or higher...
BaseAccelerationTest.java 17 package android.acceleration.cts;
  /frameworks/base/libs/androidfw/
VelocityControl.cpp 20 // Log debug messages about acceleration.
76 // Apply full acceleration above the high speed threshold.
77 scale *= mParameters.acceleration;
79 // Linearly interpolate the acceleration to apply between the low and high
83 * (mParameters.acceleration - 1);
90 mParameters.acceleration,
97 mParameters.acceleration);
  /external/webkit/Source/WebCore/bindings/js/
JSDeviceMotionEventCustom.cpp 38 static PassRefPtr<DeviceMotionData::Acceleration> readAccelerationArgument(JSValue value, ExecState* exec)
73 return DeviceMotionData::Acceleration::create(canProvideX, x, canProvideY, y, canProvideZ, z);
114 static JSObject* createAccelerationObject(const DeviceMotionData::Acceleration* acceleration, ExecState* exec)
117 object->putDirect(exec->globalData(), Identifier(exec, "x"), acceleration->canProvideX() ? jsNumber(acceleration->x()) : jsNull());
118 object->putDirect(exec->globalData(), Identifier(exec, "y"), acceleration->canProvideY() ? jsNumber(acceleration->y()) : jsNull());
119 object->putDirect(exec->globalData(), Identifier(exec, "z"), acceleration->canProvideZ() ? jsNumber(acceleration->z()) : jsNull())
132 JSValue JSDeviceMotionEvent::acceleration(ExecState* exec) const function in class:WebCore::JSDeviceMotionEvent
172 RefPtr<DeviceMotionData::Acceleration> acceleration = readAccelerationArgument(exec->argument(3), exec); local
    [all...]
  /frameworks/native/services/sensorservice/
LinearAccelerationSensor.cpp 43 outEvent->data[0] = event.acceleration.x - outEvent->data[0];
44 outEvent->data[1] = event.acceleration.y - outEvent->data[1];
45 outEvent->data[2] = event.acceleration.z - outEvent->data[2];
64 hwSensor.name = "Linear Acceleration Sensor";
  /external/webkit/Source/WebCore/bindings/v8/custom/
V8DeviceMotionEventCustom.cpp 42 v8::Handle<v8::Value> createAccelerationObject(const DeviceMotionData::Acceleration* acceleration)
45 object->Set(v8::String::New("x"), acceleration->canProvideX() ? v8::Number::New(acceleration->x()) : v8::Null());
46 object->Set(v8::String::New("y"), acceleration->canProvideY() ? v8::Number::New(acceleration->y()) : v8::Null());
47 object->Set(v8::String::New("z"), acceleration->canProvideZ() ? v8::Number::New(acceleration->z()) : v8::Null());
60 RefPtr<DeviceMotionData::Acceleration> readAccelerationArgument(v8::Local<v8::Value> value)
89 return DeviceMotionData::Acceleration::create(canProvideX, x, canProvideY, y, canProvideZ, z)
172 RefPtr<DeviceMotionData::Acceleration> acceleration = readAccelerationArgument(args[3]); local
    [all...]
  /external/qemu/android/
hw-sensors.c 86 } Acceleration;
114 Acceleration acceleration; member in union:__anon11797::__anon11798
152 * acceleration:<x>:<y>:<z>
300 snprintf(buffer, sizeof buffer, "acceleration:%g:%g:%g",
301 sensor->u.acceleration.x,
302 sensor->u.acceleration.y,
303 sensor->u.acceleration.z);
529 qemu_put_float(f, s->u.acceleration.x);
530 qemu_put_float(f, s->u.acceleration.y)
    [all...]
  /build/target/board/generic_x86/
BoardConfig.mk 34 # the GLES renderer disables itself if host GL acceleration isn't available.
  /development/ndk/platforms/android-9/include/android/
sensor.h 119 ASensorVector acceleration; member in union:ASensorEvent::__anon1460
  /frameworks/native/include/android/
sensor.h 119 ASensorVector acceleration; member in union:ASensorEvent::__anon18549

Completed in 794 milliseconds

1 2 3