/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | WindowFrameTests.java | 91 private void assertContentInset(WindowState w, int left, int top, int right, int bottom) { in assertContentInset() argument 92 assertRect(w.getContentInsets(), left, top, right, bottom); in assertContentInset() 95 private void assertVisibleInset(WindowState w, int left, int top, int right, int bottom) { in assertVisibleInset() argument 96 assertRect(w.getVisibleInsets(), left, top, right, bottom); in assertVisibleInset() 99 private void assertStableInset(WindowState w, int left, int top, int right, int bottom) { in assertStableInset() argument 100 assertRect(w.getStableInsets(), left, top, right, bottom); in assertStableInset() 103 private void assertFrame(WindowState w, int left, int top, int right, int bottom) { in assertFrame() argument 104 assertRect(w.getFrameLw(), left, top, right, bottom); in assertFrame() 107 private void assertContentFrame(WindowState w, Rect expectedRect) { in assertContentFrame() argument 108 assertRect(w.getContentFrameLw(), expectedRect.left, expectedRect.top, expectedRect.right, in assertContentFrame() [all …]
|
/frameworks/base/rs/java/android/renderscript/ |
D | Int4.java | 27 public int w; field in Int4 34 this.x = this.y = this.z = this.w = i; in Int4() 37 public Int4(int x, int y, int z, int w) { in Int4() argument 41 this.w = w; in Int4() 49 this.w = source.w; in Int4() 61 this.w += a.w; in add() 76 result.w = a.w + b.w; in add() 90 w += value; in add() 105 result.w = a.w + b; in add() 119 this.w -= a.w; in sub() [all …]
|
D | Short4.java | 27 public short w; field in Short4 34 this.x = this.y = this.z = this.w = i; in Short4() 37 public Short4(short x, short y, short z, short w) { in Short4() argument 41 this.w = w; in Short4() 49 this.w = source.w; in Short4() 61 this.w += a.w; in add() 76 result.w = (short)(a.w + b.w); in add() 90 w += value; in add() 105 result.w = (short)(a.w + b); in add() 119 this.w -= a.w; in sub() [all …]
|
D | Long4.java | 27 public long w; field in Long4 34 this.x = this.y = this.z = this.w = i; in Long4() 37 public Long4(long x, long y, long z, long w) { in Long4() argument 41 this.w = w; in Long4() 49 this.w = source.w; in Long4() 61 this.w += a.w; in add() 76 result.w = a.w + b.w; in add() 90 w += value; in add() 105 result.w = a.w + b; in add() 119 this.w -= a.w; in sub() [all …]
|
D | Float4.java | 27 public float w; field in Float4 36 this.w = data.w; in Float4() 39 public Float4(float x, float y, float z, float w) { in Float4() argument 43 this.w = w; in Float4() 58 res.w = a.w + b.w; in add() 72 w += value.w; in add() 84 w += value; in add() 99 res.w = a.w + b; in add() 113 w -= value.w; in sub() 125 w -= value; in sub() [all …]
|
D | Double4.java | 27 public double w; field in Double4 36 this.w = data.w; in Double4() 39 public Double4(double x, double y, double z, double w) { in Double4() argument 43 this.w = w; in Double4() 58 res.w = a.w + b.w; in add() 72 w += value.w; in add() 84 w += value; in add() 99 res.w = a.w + b; in add() 113 w -= value.w; in sub() 125 w -= value; in sub() [all …]
|
D | Byte4.java | 28 public byte w; field in Byte4 37 w = initW; in Byte4() 44 this.w = source.w; in Byte4() 56 this.w += a.w; in add() 71 result.w = (byte)(a.w + b.w); in add() 85 w += value; in add() 100 result.w = (byte)(a.w + b); in add() 114 this.w -= a.w; in sub() 129 result.w = (byte)(a.w - b.w); in sub() 143 w -= value; in sub() [all …]
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | WindowStateAnimator.java | 427 final WindowState w = mWin; in createSurfaceLocked() local 438 w.setHasSurface(false); in createSurfaceLocked() 445 mService.makeWindowFreezingScreenIfNeededLocked(w); in createSurfaceLocked() 448 final WindowManager.LayoutParams attrs = w.mAttrs; in createSurfaceLocked() 450 if (mService.isSecureLocked(w)) { in createSurfaceLocked() 454 calculateSurfaceBounds(w, attrs, mTmpSize); in createSurfaceLocked() 483 && !w.isDragResizing()) { in createSurfaceLocked() 496 w.setHasSurface(true); in createSurfaceLocked() 508 Slog.w(TAG, "OutOfResourcesException creating surface"); in createSurfaceLocked() 519 + ", set left=" + w.getFrameLw().left + " top=" + w.getFrameLw().top); in createSurfaceLocked() [all …]
|
D | DisplayContent.java | 585 private final Consumer<WindowState> mUpdateWindowsForAnimator = w -> { 586 WindowStateAnimator winAnimator = w.mWinAnimator; 587 final AppWindowToken atoken = w.mAppToken; 590 if (w.performShowLocked()) { 601 private final Consumer<WindowState> mUpdateWallpaperForAnimator = w -> { 602 final WindowStateAnimator winAnimator = w.mWinAnimator; 608 final AnimationAdapter anim = w.mAppToken != null 609 ? w.mAppToken.getAnimation() 610 : w.getAnimation(); 614 final TaskStack stack = w.getStack(); [all …]
|
D | RootWindowContainer.java | 139 private final Consumer<WindowState> mCloseSystemDialogsConsumer = w -> { 140 if (w.mHasSurface) { 142 w.mClient.closeSystemDialogs(mCloseSystemDialogsReason); 148 private static final Consumer<WindowState> sRemoveReplacedWindowsConsumer = w -> { 149 final AppWindowToken aToken = w.mAppToken; 151 aToken.removeReplacedWindowIfNeeded(w); 308 forAllWindows((w) -> { in getWindowsByName() argument 310 if (w.mAttrs.getTitle().toString().contains(name)) { in getWindowsByName() 311 output.add(w); in getWindowsByName() 313 } else if (System.identityHashCode(w) == objectId) { in getWindowsByName() [all …]
|
D | WallpaperController.java | 112 private final ToBooleanFunction<WindowState> mFindWallpaperTargetFunction = w -> { 114 if ((w.mAttrs.type == TYPE_WALLPAPER)) { 116 mFindResults.setTopWallpaper(w); 123 if (w.mAppToken != null && w.mAppToken.isHidden() && !w.mAppToken.isSelfAnimating()) { 126 if (DEBUG_WALLPAPER) Slog.v(TAG, "Skipping hidden and not animating token: " + w); 129 if (DEBUG_WALLPAPER) Slog.v(TAG, "Win " + w + ": isOnScreen=" + w.isOnScreen() 130 + " mDrawState=" + w.mWinAnimator.mDrawState); 132 if (w.mWillReplaceWindow && mWallpaperTarget == null 140 final boolean keyguardGoingAwayWithWallpaper = (w.mAppToken != null 141 && w.mAppToken.isSelfAnimating() [all …]
|
/frameworks/rs/script_api/ |
D | rs_math.spec | 169 w: 1, 2, 3, 4 183 w: 1, 2, 3, 4 197 w: 1, 2, 3, 4 206 w: 1, 2, 3, 4 220 w: 1, 2, 3, 4 229 w: 1, 2, 3, 4 245 w: 1, 2, 3, 4 254 w: 1, 2, 3, 4 268 w: 1, 2, 3, 4 277 w: 1, 2, 3, 4 [all …]
|
/frameworks/native/libs/math/tests/ |
D | quat_test.cpp | 51 EXPECT_EQ(q0.w, 0); in TEST_F() 57 EXPECT_EQ(q1.w, 1); in TEST_F() 63 EXPECT_EQ(q2.w, 1); in TEST_F() 69 EXPECT_EQ(q3.w, 1); in TEST_F() 75 EXPECT_EQ(q4.w, 42); in TEST_F() 81 EXPECT_EQ(q5.w, 24); in TEST_F() 88 EXPECT_EQ(q6.w, 12); in TEST_F() 94 EXPECT_EQ(q7.w, 1); in TEST_F() 100 EXPECT_EQ(qf.w, 2); in TEST_F() 108 q0.w = 40; in TEST_F() [all …]
|
D | vec_test.cpp | 46 EXPECT_EQ(v0.w, 0); in TEST_F() 52 EXPECT_EQ(v1.w, 1); in TEST_F() 58 EXPECT_EQ(v2.w, 4); in TEST_F() 64 EXPECT_EQ(v3.w, 4); in TEST_F() 70 EXPECT_EQ(v4.w, 42); in TEST_F() 76 EXPECT_EQ(v5.w, 24); in TEST_F() 82 EXPECT_EQ(vf.w, 2); in TEST_F() 91 v0.w = 40; in TEST_F() 95 EXPECT_EQ(v0.w, 40); in TEST_F() 104 EXPECT_EQ(v0.w, 400); in TEST_F() [all …]
|
/frameworks/base/services/core/java/com/android/server/policy/keyguard/ |
D | KeyguardServiceWrapper.java | 54 Slog.w(TAG , "Remote Exception", e); in verifyUnlock() 63 Slog.w(TAG , "Remote Exception", e); in setOccluded() 72 Slog.w(TAG , "Remote Exception", e); in addStateMonitorCallback() 81 Slog.w(TAG , "Remote Exception", e); in dismiss() 90 Slog.w(TAG , "Remote Exception", e); in onDreamingStarted() 99 Slog.w(TAG , "Remote Exception", e); in onDreamingStopped() 108 Slog.w(TAG , "Remote Exception", e); in onStartedGoingToSleep() 117 Slog.w(TAG , "Remote Exception", e); in onFinishedGoingToSleep() 126 Slog.w(TAG , "Remote Exception", e); in onStartedWakingUp() 135 Slog.w(TAG , "Remote Exception", e); in onFinishedWakingUp() [all …]
|
/frameworks/rs/driver/runtime/ |
D | rs_quaternion.c | 13 q->w += rhs->w; in rsQuaternionAdd() 28 return q0->w*q1->w + q0->x*q1->x + q0->y*q1->y + q0->z*q1->z; in rsQuaternionDot() 36 float xw = q->x * q->w; in rsQuaternionGetMatrixUnit() 39 float yw = q->y * q->w; in rsQuaternionGetMatrixUnit() 41 float zw = q->z * q->w; in rsQuaternionGetMatrixUnit() 62 q->w = c; in rsQuaternionLoadRotateUnit() 69 rsQuaternionSet(rs_quaternion* q, float w, float x, float y, float z) { in rsQuaternionSet() argument 70 q->w = w; in rsQuaternionSet() 78 q->w = rhs->w; in rsQuaternionSet() 101 q->w *= recipLen; in rsQuaternionNormalize() [all …]
|
/frameworks/rs/cpp/ |
D | Allocation.cpp | 282 void Allocation::validate2DRange(uint32_t xoff, uint32_t yoff, uint32_t w, uint32_t h) { in validate2DRange() argument 286 if (((xoff + w) > mCurrentDimX) || ((yoff + h) > mCurrentDimY)) { in validate2DRange() 292 void Allocation::copy2DRangeFrom(uint32_t xoff, uint32_t yoff, uint32_t w, uint32_t h, in copy2DRangeFrom() argument 294 validate2DRange(xoff, yoff, w, h); in copy2DRangeFrom() 297 void *ptr = malloc(eSize * w * h); in copy2DRangeFrom() 298 copyWithPadding(ptr, data, eSize / 4, w * h); in copy2DRangeFrom() 301 … w, h, ptr, w * h * mType->getElement()->getSizeBytes(), in copy2DRangeFrom() 302 w * mType->getElement()->getSizeBytes())); in copy2DRangeFrom() 307 … w, h, data, w * h * mType->getElement()->getSizeBytes(), in copy2DRangeFrom() 308 w * mType->getElement()->getSizeBytes())); in copy2DRangeFrom() [all …]
|
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/examples/ |
D | list_people.go | 14 func writePerson(w io.Writer, p *pb.Person) { 15 fmt.Fprintln(w, "Person ID:", p.Id) 16 fmt.Fprintln(w, " Name:", p.Name) 18 fmt.Fprintln(w, " E-mail address:", p.Email) 24 fmt.Fprint(w, " Mobile phone #: ") 26 fmt.Fprint(w, " Home phone #: ") 28 fmt.Fprint(w, " Work phone #: ") 30 fmt.Fprintln(w, pn.Number) 34 func listPeople(w io.Writer, book *pb.AddressBook) { 36 writePerson(w, p)
|
/frameworks/native/cmds/flatland/ |
D | Composers.cpp | 47 int32_t x, int32_t y, uint32_t w, uint32_t h) { in blit() argument 49 return modBlit(texName, texMatrix, modColor, x, y, w, h); in blit() 53 int32_t x, int32_t y, uint32_t w, uint32_t h) { in modBlit() argument 66 float(x+w), float(y), in modBlit() 68 float(x+w), float(y+h), in modBlit() 155 int32_t w = mLayerDesc.width; in opaque() local 158 return mBlitter.blit(texName, texMatrix, x, y, w, h); in opaque() 179 int32_t w = mLayerDesc.width; in opaqueShrink() local 184 x += w / 128; in opaqueShrink() 186 w -= w / 64; in opaqueShrink() [all …]
|
/frameworks/base/core/tests/coretests/src/android/graphics/drawable/ |
D | AdaptiveIconDrawableTest.java | 224 final int w = a.getWidth(); in equalBitmaps() local 226 int[] aPix = new int[w * h]; in equalBitmaps() 227 int[] bPix = new int[w * h]; in equalBitmaps() 230 for (int i = 0; i < w; i++) { in equalBitmaps() 245 a.getPixels(aPix, 0, w, 0, 0, w, h); in equalBitmaps() 246 b.getPixels(bPix, 0, w, 0, 0, w, h); in equalBitmaps() 258 final int w = a.getWidth(); in findBitmapDifferences() local 260 int[] aPix = new int[w * h]; in findBitmapDifferences() 261 int[] bPix = new int[w * h]; in findBitmapDifferences() 263 a.getPixels(aPix, 0, w, 0, 0, w, h); in findBitmapDifferences() [all …]
|
/frameworks/rs/driver/runtime/arch/ |
D | generic.c | 54 r.w = amount.w < low.w ? low.w : (amount.w > high.w ? high.w : amount.w); \ 78 r.w = amount.w < low ? low : (amount.w > high ? high : amount.w); \ 142 r.w = v1.w > v2.w ? v1.w : v2.w; in fmax() 166 r.w = v1.w > v2 ? v1.w : v2; in fmax() 198 r.w = v1.w < v2.w ? v1.w : v2.w; in fmin() 222 r.w = v1.w < v2 ? v1.w : v2; in fmin() 255 r.w = v1.w > v2.w ? v1.w : v2.w; in max() 283 r.w = v1.w > v2.w ? v1.w : v2.w; in max() 311 r.w = v1.w > v2.w ? v1.w : v2.w; in max() 339 r.w = v1.w > v2.w ? v1.w : v2.w; in max() [all …]
|
/frameworks/native/libs/math/include/math/ |
D | vec4.h | 48 struct { T x, y, z, w; }; member 89 constexpr TVec4() : x(0), y(0), z(0), w(0) { } in TVec4() 93 constexpr TVec4(A v) : x(v), y(v), z(v), w(v) { } in TVec4() 96 constexpr TVec4(A x, B y, C z, D w) : x(x), y(y), z(z), w(w) { } in TVec4() argument 99 constexpr TVec4(const TVec2<A>& v, B z, C w) : x(v.x), y(v.y), z(z), w(w) { } in TVec4() argument 102 constexpr TVec4(const TVec3<A>& v, B w) : x(v.x), y(v.y), z(v.z), w(w) { } in TVec4() argument 106 constexpr TVec4(const TVec4<A>& v) : x(v.x), y(v.y), z(v.z), w(v.w) { } in TVec4()
|
D | quat.h | 66 struct { T x, y, z, w; }; member 102 constexpr TQuaternion() : x(0), y(0), z(0), w(0) { } in TQuaternion() 106 constexpr TQuaternion(A w) : x(0), y(0), z(0), w(w) { in TQuaternion() argument 112 constexpr TQuaternion(A w, B x, C y, D z) : x(x), y(y), z(z), w(w) { } in TQuaternion() argument 116 constexpr TQuaternion(const TVec3<A>& v, B w) : x(v.x), y(v.y), z(v.z), w(w) { } in TQuaternion() argument 120 constexpr explicit TQuaternion(const TVec4<A>& v) : x(v.x), y(v.y), z(v.z), w(v.w) { } in TQuaternion() 124 constexpr explicit TQuaternion(const TQuaternion<A>& v) : x(v.x), y(v.y), z(v.z), w(v.w) { } in TQuaternion()
|
/frameworks/base/tests/touchlag/ |
D | touchlag.cpp | 41 size_t w; member 54 void drawTwoPixels(Buffer* buf, uint32_t pixel, ssize_t x, ssize_t y, size_t w) { in drawTwoPixels() argument 57 if (x>=0 && x<ssize_t(buf->w)) { in drawTwoPixels() 60 ssize_t W(w); in drawTwoPixels() 61 if ((x+W)>=0 && (x+W)<ssize_t(buf->w)) { in drawTwoPixels() 67 void drawHLine(Buffer* buf, uint32_t pixel, ssize_t x, ssize_t y, size_t w) { in drawHLine() argument 69 ssize_t W(w); in drawHLine() 74 if (x+w > buf->w) { in drawHLine() 75 W = buf->w - x; in drawHLine() 84 void drawRect(Buffer* buf, uint32_t pixel, ssize_t x, ssize_t y, size_t w, size_t h) { in drawRect() argument [all …]
|
/frameworks/native/services/sensorservice/ |
D | Fusion.cpp | 313 void Fusion::handleGyro(const vec3_t& w, float dT) { in handleGyro() argument 314 if (!checkInitComplete(GYRO, w, dT)) in handleGyro() 317 predict(w, dT); in handleGyro() 423 F[0].x = q.w; F[1].x =-q.z; F[2].x = q.y; in getF() 424 F[0].y = q.z; F[1].y = q.w; F[2].y =-q.x; in getF() 425 F[0].z =-q.y; F[1].z = q.x; F[2].z = q.w; in getF() 426 F[0].w =-q.x; F[1].w =-q.y; F[2].w =-q.z; in getF() 430 void Fusion::predict(const vec3_t& w, float dT) { in predict() argument 433 vec3_t we = w - b; in predict() 477 O[0].xyz = O33[0]; O[0].w = -psi.x; in predict() [all …]
|