HomeSort by relevance Sort by last modified time
    Searched refs:tilt (Results 1 - 19 of 19) sorted by null

  /hardware/ti/omap4xxx/camera/
SensorListener.cpp 54 int tilt = 0, orient = 0; local
64 tilt = (int) asinf(z / radius) * RADIANS_2_DEG;
80 listener->handleOrientation(orient, tilt);
81 CAMHAL_LOGVB(" tilt = %d orientation = %d", tilt, orient);
184 void SensorListener::handleOrientation(uint32_t orientation, uint32_t tilt) {
190 mOrientationCb(orientation, tilt, mCbCookie);
CameraHal.cpp 61 static void orientation_cb(uint32_t orientation, uint32_t tilt, void* cookie) {
66 camera->onOrientationEvent(orientation, tilt);
75 void CameraHal::onOrientationEvent(uint32_t orientation, uint32_t tilt) {
79 mCameraAdapter->onOrientationEvent(orientation, tilt);
    [all...]
BaseCameraAdapter.cpp     [all...]
  /hardware/ti/omap4xxx/camera/inc/
SensorListener.h 39 typedef void (*orientation_callback_t) (uint32_t orientation, uint32_t tilt, void* cookie);
85 void handleOrientation(uint32_t orientation, uint32_t tilt);
BaseCameraAdapter.h 144 virtual void onOrientationEvent(uint32_t orientation, uint32_t tilt);
CameraHal.h 840 virtual void onOrientationEvent(uint32_t orientation, uint32_t tilt) = 0;
931 void onOrientationEvent(uint32_t orientation, uint32_t tilt);
    [all...]
  /development/samples/ApiDemos/src/com/example/android/apis/graphics/
TouchPaint.java 48 * an eraser tool. Second, the tilt angle and orientation of the stylus can be
420 float distance, float tilt) {
443 drawSplat(mCanvas, x, y, orientation, distance, tilt, mPaint);
475 * indicated by the orientation and tilt of the tool and throws paint at
481 float distance, float tilt, Paint paint) {
485 float nx = (float) (Math.sin(orientation) * Math.sin(tilt));
486 float ny = (float) (- Math.cos(orientation) * Math.sin(tilt));
487 float nz = (float) Math.cos(tilt);
505 // Apply the nozzle tilt angle.
507 vy = temp * Math.cos(tilt) - vz * Math.sin(tilt)
    [all...]
  /external/chromium_org/third_party/flot/
jquery.flot.pie.min.js 1 (function(b){function c(D){var h=null;var L=null;var n=null;var B=null;var p=null;var M=0;var F=true;var o=10;var w=0.95;var A=0;var d=false;var z=false;var j=[];D.hooks.processOptions.push(g);D.hooks.bindEvents.push(e);function g(O,N){if(N.series.pie.show){N.grid.show=false;if(N.series.pie.label.show=="auto"){if(N.legend.show){N.series.pie.label.show=false}else{N.series.pie.label.show=true}}if(N.series.pie.radius=="auto"){if(N.series.pie.label.show){N.series.pie.radius=3/4}else{N.series.pie.radius=1}}if(N.series.pie.tilt>1){N.series.pie.tilt=1}if(N.series.pie.tilt<0){N.series.pie.tilt=0}O.hooks.processDatapoints.push(E);O.hooks.drawOverlay.push(H);O.hooks.draw.push(r)}}function e(P,N){var O=P.getOptions();if(O.series.pie.show&&O.grid.hoverable){N.unbind("mousemove").mousemove(t)}if(O.series.pie.show&&O.grid.clickable){N.unbind("click").click(l)}}function G(O){var P="";function N(S,T){if(!T){T=0}for(var R=0;R<S.length;++R){for(var Q=0;Q<T;Q++){P+="\t"}if(typeof S[R]=="object"){P+=""+R+":\n";N(S[R],T+1)}else{P+=""+R+": "+S[R]+"\n"}}}N(O);alert(P)}function q(P){for(var N=0;N<P.length;++N){var O=parseFloat(P[N].data[0][1]);if(O){M+=O}}}function E(Q,N,O,P){if(!d){d=true;h=Q.getCanvas();L=b(h).parent();a=Q.getOptions();Q.setData(K(Q.getData()))}}function I(){A=L.children().filter(".legend").children().width();n=Math.min(h.width,(h.height/a.series.pie.tilt))/2;p=(h.height/2)+a.series.pie.offset.top;B=(h.width/2);if(a.series.pie.offset.left=="auto"){if(a.legend.position.match("w")){B+=A/2}else{B-=A/2}}else{B+=a.series.pie.offset.left}if(B<n){B=n}else{if(B>h.width-n){B=h.width-n}}}function v(O){for(var N=0;N<O.length;++N){if(typeof(O[N].data)=="number"){O[N].data=[[1,O[N].data]]}else{if(typeof(O[N].data)=="undefined"||typeof(O[N].data[0])=="undefined"){if(typeof(O[N].data)!="undefined"&&typeof(O[N].data.label)!="undefined"){O[N].label=O[N].data.label}O[N].data=[[1,0]]}}}return O}function K(Q){Q=v(Q);q(Q);var P=0;var S=0;var N=a.series.pie.combine.color;var R=[];for(var O=0;O<Q.length;++O){Q[O].data[0][1]=parseFloat(Q[O].data[0][1]);if(!Q[O].data[0][1]){Q[O].data[0][1]=0}if(Q[O].data[0][1]/M<=a.series.pie.combine.threshold){P+=Q[O].data[0][1];S++;if(!N){N=Q[O].color}}else{R.push({data:[[1,Q[O].data[0][1]]],color:Q[O].color,label:Q[O].label,angle:(Q[O].data[0][1]*(Math.PI*2))/M,percent:(Q[O].data[0][1]/M*100)})}}if(S>0){R.push({data:[[1,P]],color:N,label:a.series.pie.combine.label,angle:(P*(Math.PI*2))/M,percent:(P/M*100)})}return R}function r(S,Q){if(!L){return}ctx=Q;I();var T=S.getData();var P=0;while(F&&P<o){F=false;if(P>0){n*=w}P+=1;N();if(a.series.pie.tilt<=0.8){O()}R()}if(P>=o){N();L.prepend('<div class="error">Could not draw pie with labels contained inside canvas</div>')}if(S.setSeries&&S.insertLegend){S.setSeries(T);S.insertLegend()}function N(){ctx.clearRect(0,0,h.width,h.height);L.children().filter(".pieLabel, .pieLabelBackground").remove()}function O(){var Z=5;var Y=15;var W=10;var X=0.02;if(a.series.pie.radius>1){var U=a.series.pie.radius}else{var U=n*a.series.pie.radius}if(U>=(h.width/2)-Z||U*a.series.pie.tilt>=(h.height/2)-Y||U<=W){return}ctx.save();ctx.translate(Z,Y);ctx.globalAlpha=X;ctx.fillStyle="#000";ctx.translate(B,p);ctx.scale(1,a.series.pie.tilt);for(var V=1;V<=W;V++){ctx.beginPath();ctx.arc(0,0,U,0,Math.PI*2,false);ctx.fill();U-=V}ctx.restore()}function R(){startAngle=Math.PI*a.series.pie.startAngle;if(a.series.pie.radius>1){var U=a.series.pie.radius}else{var U=n*a.series.pie.radius}ctx.save();ctx.translate(B,p);ctx.scale(1,a.series.pie.tilt);ctx.save();var Y=startAngle;for(var W=0;W<T.length;++W){T[W].startAngle=Y;X(T[W].angle,T[W].color,true)}ctx.restore();ctx.save();ctx.lineWidth=a.series.pie.stroke.width;Y=startAngle;for(var W=0;W<T.length;++W){X(T[W].angle,a.series.pie.stroke.color,false)}ctx.restore();J(ctx);if(a.series.pie.label.show){V()}ctx.restore();function X(ab,Z,aa){if(ab<=0){return}if(aa){ctx.fillStyle=Z}else{ctx.strokeStyle=Z;ctx.lineJoin="round"}ctx.beginPath();if(Math.abs(ab-Math.PI*2)>1e-9){ctx.moveTo(0,0)}else{if(b.browser.msie){ab-=0.0001}}ctx.arc(0,0,U,Y,Y+ab,false);ctx.closePath();Y+=ab;if(aa){ctx.fill()}else{ctx.stroke()}}function V(){var ac=startAngle;if(a.series.pie.label.radius>1){var Z=a.series.pie.label.radius}else{var Z=n*a.series.pie.label.radius}for(var ab=0;ab<T.length;++ab){if(T[ab].percent>=a.series.pie.label.threshold*100){aa(T[ab],ac,ab)}ac+=T[ab].angle}function aa(ap,ai,ag){if(ap.data[0][1]==0){return}var ar=a.legend.labelFormatter,aq,ae=a.series.pie.label.formatter;if(ar){aq=ar(ap.label,ap)}else{aq=ap.label}if(ae){aq=ae(aq,ap)}var aj=((ai+ap.angle)+ai)/2;var ao=B+Math.round(Math.cos(aj)*Z);var am=p+Math.round(Math.sin(aj)*Z)*a.series.pie.tilt;var af='<span class="pieLabel" id="pieLabel'+ag+'" style="position:absolute;top:'+am+"px;left:"+ao (…)
    [all...]
  /frameworks/base/policy/src/com/android/internal/policy/impl/
WindowOrientationListener.java 199 * The elevation angle is referred to as the "tilt" below.
204 * - If the tilt angle is too close to horizontal (near 90 or -90 degrees), do nothing.
206 * The tilt angle thresholds are set differently for each orientation and different
256 // If the tilt angle remains greater than the specified angle for a minimum of
262 // If the tilt angle has increased by at least delta degrees within the specified amount
264 // down towards flat (tilt = 90).
279 // try to calculate the tilt and orientation angles.
310 // singularities in the tilt and orientation calculations.
323 // Maximum absolute tilt angle at which to consider orientation data. Beyond this (i.e.
327 // The tilt angle range in degrees for each orientation
    [all...]
  /hardware/ti/omap4xxx/camera/inc/V4LCameraAdapter/
V4LCameraAdapter.h 94 virtual void onOrientationEvent(uint32_t orientation, uint32_t tilt);
  /external/replicaisland/src/com/replica/replicaisland/
GhostComponent.java 93 final InputXY tilt = input.getTilt(); local
95 tilt.getX() * mMovementSpeed;
98 tilt.getY() * mMovementSpeed;
  /hardware/ti/omap4xxx/camera/V4LCameraAdapter/
V4LCameraAdapter.cpp 477 void V4LCameraAdapter::onOrientationEvent(uint32_t orientation, uint32_t tilt)
  /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/lib-tk/
turtle.py 136 'speed', 'st', 'stamp', 'tilt', 'tiltangle', 'towards', 'tracer',
2765 def tilt(self, angle): function
    [all...]
  /prebuilts/python/linux-x86/2.7.5/lib/python2.7/lib-tk/
turtle.py 136 'speed', 'st', 'stamp', 'tilt', 'tiltangle', 'towards', 'tracer',
2765 def tilt(self, angle): function
    [all...]
  /frameworks/base/services/input/
InputReader.cpp 4187 float tilt; local
    [all...]
InputReader.h 1415 InputDeviceInfo::MotionRange tilt; member in struct:android::TouchInputMapper::OrientedRanges
    [all...]
  /hardware/ti/omap4xxx/camera/OMXCameraAdapter/
OMXCameraAdapter.cpp     [all...]
  /hardware/ti/omap4xxx/camera/inc/OMXCameraAdapter/
OMXCameraAdapter.h 413 virtual void onOrientationEvent(uint32_t orientation, uint32_t tilt);
    [all...]
  /frameworks/base/services/input/tests/
InputReader_test.cpp 3213 float tilt = acosf(cosf(tiltXAngle) * cosf(tiltYAngle)); local
    [all...]

Completed in 864 milliseconds