Home
last modified time | relevance | path

Searched refs:w (Results 1 – 25 of 2275) sorted by relevance

12345678910>>...91

/frameworks/base/libs/androidfw/tests/
DCursorWindow_test.cpp24 CursorWindow* w; \
25 CursorWindow::create(String8("test"), 1 << 10, &w);
28 CursorWindow* w; \
29 CursorWindow::create(String8("test"), 1 << 10, &w); \
30 ASSERT_EQ(w->setNumColumns(3), OK); \
31 ASSERT_EQ(w->allocRow(), OK); \
32 ASSERT_EQ(w->allocRow(), OK); \
33 ASSERT_EQ(w->allocRow(), OK);
36 CursorWindow* w; \
37 CursorWindow::create(String8("test"), 1 << 21, &w);
[all …]
DCursorWindow_bench.cpp24 CursorWindow* w; in BM_CursorWindowWrite() local
25 CursorWindow::create(String8("test"), 1 << 21, &w); in BM_CursorWindowWrite()
28 w->clear(); in BM_CursorWindowWrite()
29 w->setNumColumns(cols); in BM_CursorWindowWrite()
31 w->allocRow(); in BM_CursorWindowWrite()
33 w->putLong(row, col, 0xcafe); in BM_CursorWindowWrite()
55 CursorWindow* w; in BM_CursorWindowRead() local
56 CursorWindow::create(String8("test"), 1 << 21, &w); in BM_CursorWindowRead()
57 w->setNumColumns(cols); in BM_CursorWindowRead()
59 w->allocRow(); in BM_CursorWindowRead()
[all …]
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DWindowFrameTests.java77 private void assertFrame(WindowState w, Rect frame) { in assertFrame() argument
78 assertEquals(w.getFrame(), frame); in assertFrame()
81 private void assertFrame(WindowState w, int left, int top, int right, int bottom) { in assertFrame() argument
82 assertRect(w.getFrame(), left, top, right, bottom); in assertFrame()
85 private void assertRelFrame(WindowState w, int left, int top, int right, int bottom) { in assertRelFrame() argument
86 assertRect(w.getRelativeFrame(), left, top, right, bottom); in assertRelFrame()
92 WindowState w = createWindow(); in testLayoutInFullscreenTask() local
93 w.mAttrs.gravity = Gravity.LEFT | Gravity.TOP; in testLayoutInFullscreenTask()
101 w.getWindowFrames().setFrames(pf, pf); in testLayoutInFullscreenTask()
102 w.computeFrame(); in testLayoutInFullscreenTask()
[all …]
/frameworks/base/rs/java/android/renderscript/
DShort4.java32 public short w; field in Short4
39 this.x = this.y = this.z = this.w = i; in Short4()
42 public Short4(short x, short y, short z, short w) { in Short4() argument
46 this.w = w; in Short4()
54 this.w = source.w; in Short4()
66 this.w += a.w; in add()
81 result.w = (short)(a.w + b.w); in add()
95 w += value; in add()
110 result.w = (short)(a.w + b); in add()
124 this.w -= a.w; in sub()
[all …]
DLong4.java32 public long w; field in Long4
39 this.x = this.y = this.z = this.w = i; in Long4()
42 public Long4(long x, long y, long z, long w) { in Long4() argument
46 this.w = w; in Long4()
54 this.w = source.w; in Long4()
66 this.w += a.w; in add()
81 result.w = a.w + b.w; in add()
95 w += value; in add()
110 result.w = a.w + b; in add()
124 this.w -= a.w; in sub()
[all …]
DInt4.java32 public int w; field in Int4
39 this.x = this.y = this.z = this.w = i; in Int4()
42 public Int4(int x, int y, int z, int w) { in Int4() argument
46 this.w = w; in Int4()
54 this.w = source.w; in Int4()
66 this.w += a.w; in add()
81 result.w = a.w + b.w; in add()
95 w += value; in add()
110 result.w = a.w + b; in add()
124 this.w -= a.w; in sub()
[all …]
DFloat4.java32 public float w; field in Float4
41 this.w = data.w; in Float4()
44 public Float4(float x, float y, float z, float w) { in Float4() argument
48 this.w = w; in Float4()
63 res.w = a.w + b.w; in add()
77 w += value.w; in add()
89 w += value; in add()
104 res.w = a.w + b; in add()
118 w -= value.w; in sub()
130 w -= value; in sub()
[all …]
DDouble4.java32 public double w; field in Double4
41 this.w = data.w; in Double4()
44 public Double4(double x, double y, double z, double w) { in Double4() argument
48 this.w = w; in Double4()
63 res.w = a.w + b.w; in add()
77 w += value.w; in add()
89 w += value; in add()
104 res.w = a.w + b; in add()
118 w -= value.w; in sub()
130 w -= value; in sub()
[all …]
DByte4.java32 public byte w; field in Byte4
41 w = initW; in Byte4()
48 this.w = source.w; in Byte4()
60 this.w += a.w; in add()
75 result.w = (byte)(a.w + b.w); in add()
89 w += value; in add()
104 result.w = (byte)(a.w + b); in add()
118 this.w -= a.w; in sub()
133 result.w = (byte)(a.w - b.w); in sub()
147 w -= value; in sub()
[all …]
/frameworks/base/services/core/java/com/android/server/wm/
DRefreshRatePolicy.java91 int getPreferredModeId(WindowState w) { in getPreferredModeId() argument
94 if (w.isAnimating(TRANSITION | PARENTS)) { in getPreferredModeId()
98 return w.mAttrs.preferredDisplayModeId; in getPreferredModeId()
109 int calculatePriority(WindowState w) { in calculatePriority() argument
110 boolean isFocused = w.isFocused(); in calculatePriority()
111 int preferredModeId = getPreferredModeId(w); in calculatePriority()
125 float getPreferredRefreshRate(WindowState w) { in getPreferredRefreshRate() argument
128 if (w.isAnimating(TRANSITION | PARENTS)) { in getPreferredRefreshRate()
134 final int preferredModeId = w.mAttrs.preferredDisplayModeId; in getPreferredRefreshRate()
136 DisplayInfo info = w.getDisplayInfo(); in getPreferredRefreshRate()
[all …]
DInputMonitor.java271 final WindowState w) { in populateInputWindowHandle() argument
273 inputWindowHandle.setInputApplicationHandle(w.mActivityRecord != null in populateInputWindowHandle()
274 ? w.mActivityRecord.getInputApplicationHandle(false /* update */) : null); in populateInputWindowHandle()
275 inputWindowHandle.setToken(w.mInputChannelToken); in populateInputWindowHandle()
276 inputWindowHandle.setDispatchingTimeoutMillis(w.getInputDispatchingTimeoutMillis()); in populateInputWindowHandle()
277 inputWindowHandle.setTouchOcclusionMode(w.getTouchOcclusionMode()); in populateInputWindowHandle()
278 inputWindowHandle.setInputFeatures(w.mAttrs.inputFeatures); in populateInputWindowHandle()
279 inputWindowHandle.setPaused(w.mActivityRecord != null && w.mActivityRecord.paused); in populateInputWindowHandle()
280 inputWindowHandle.setVisible(w.isVisible()); in populateInputWindowHandle()
282 final boolean focusable = w.canReceiveKeys() in populateInputWindowHandle()
[all …]
/frameworks/base/libs/androidfw/fuzz/cursorwindow_fuzzer/
Dcursorwindow_fuzzer.cpp42 CursorWindow* w = nullptr; in LLVMFuzzerTestOneInput() local
43 if (!CursorWindow::createFromParcel(&p, &w)) { in LLVMFuzzerTestOneInput()
44 LOG(WARNING) << "Valid cursor with " << w->getNumRows() << " rows, " in LLVMFuzzerTestOneInput()
45 << w->getNumColumns() << " cols"; in LLVMFuzzerTestOneInput()
49 auto rows = std::min(w->getNumRows(), static_cast<uint32_t>(128)); in LLVMFuzzerTestOneInput()
50 auto cols = std::min(w->getNumColumns(), static_cast<uint32_t>(128)); in LLVMFuzzerTestOneInput()
53 auto field = w->getFieldSlot(row, col); in LLVMFuzzerTestOneInput()
55 switch (w->getFieldSlotType(field)) { in LLVMFuzzerTestOneInput()
58 w->getFieldSlotValueString(field, &size); in LLVMFuzzerTestOneInput()
63 w->getFieldSlotValueBlob(field, &size); in LLVMFuzzerTestOneInput()
[all …]
/frameworks/base/services/core/java/com/android/server/graphics/fonts/
DFontManagerShellCommand.java91 PrintWriter w = getOutPrintWriter(); in onHelp() local
92 w.println("Font service (font) commands"); in onHelp()
93 w.println("help"); in onHelp()
94 w.println(" Print this help text."); in onHelp()
95 w.println(); in onHelp()
96 w.println("dump [family name]"); in onHelp()
97 w.println(" Dump all font files in the specified family name."); in onHelp()
98 w.println(" Dump current system font configuration if no family name was specified."); in onHelp()
99 w.println(); in onHelp()
100 w.println("update [font file path] [signature file path]"); in onHelp()
[all …]
/frameworks/rs/script_api/
Drs_math.spec169 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/
Dquat_test.cpp51 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 …]
Dvec_test.cpp46 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/core/java/android/service/quickaccesswallet/
DGetWalletCardsCallbackImpl.java60 Log.w(TAG, "Invalid GetWalletCards response"); in onSuccess()
79 Log.w(TAG, "already called"); in onSuccessInternal()
86 Log.w(TAG, "Error returning wallet cards", e); in onSuccessInternal()
92 Log.w(TAG, "already called"); in onFailureInternal()
105 Log.w(TAG, "Invalid response: response is null"); in isValidResponse()
109 Log.w(TAG, "Invalid response: walletCards is null"); in isValidResponse()
113 Log.w(TAG, "Invalid response: selectedIndex is negative"); in isValidResponse()
118 Log.w(TAG, "Invalid response: selectedIndex out of bounds"); in isValidResponse()
122 Log.w(TAG, "Invalid response: too many cards"); in isValidResponse()
127 Log.w(TAG, "Invalid response: card is null"); in isValidResponse()
[all …]
/frameworks/base/services/core/java/com/android/server/policy/keyguard/
DKeyguardServiceWrapper.java55 Slog.w(TAG , "Remote Exception", e); in verifyUnlock()
64 Slog.w(TAG , "Remote Exception", e); in setOccluded()
73 Slog.w(TAG , "Remote Exception", e); in addStateMonitorCallback()
82 Slog.w(TAG , "Remote Exception", e); in dismiss()
91 Slog.w(TAG , "Remote Exception", e); in onDreamingStarted()
100 Slog.w(TAG , "Remote Exception", e); in onDreamingStopped()
109 Slog.w(TAG , "Remote Exception", e); in onStartedGoingToSleep()
119 Slog.w(TAG , "Remote Exception", e); in onFinishedGoingToSleep()
129 Slog.w(TAG , "Remote Exception", e); in onStartedWakingUp()
138 Slog.w(TAG , "Remote Exception", e); in onFinishedWakingUp()
[all …]
/frameworks/rs/driver/runtime/
Drs_quaternion.c13 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/
DAllocation.cpp282 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()
301w, h, ptr, w * h * mType->getElement()->getSizeBytes(), in copy2DRangeFrom()
302 w * mType->getElement()->getSizeBytes())); in copy2DRangeFrom()
307w, h, data, w * h * mType->getElement()->getSizeBytes(), in copy2DRangeFrom()
308 w * mType->getElement()->getSizeBytes())); in copy2DRangeFrom()
[all …]
/frameworks/base/core/tests/coretests/src/android/view/
DWindowInfoTest.java80 WindowInfo w = WindowInfo.obtain(); in testDefaultValues() local
82 assertEquals(0, w.type); in testDefaultValues()
83 assertEquals(0, w.layer); in testDefaultValues()
84 assertEquals(AccessibilityNodeInfo.UNDEFINED_NODE_ID, w.accessibilityIdOfAnchor); in testDefaultValues()
85 assertEquals(Display.INVALID_DISPLAY, w.displayId); in testDefaultValues()
86 assertNull(w.title); in testDefaultValues()
87 assertNull(w.token); in testDefaultValues()
88 assertNull(w.childTokens); in testDefaultValues()
89 assertNull(w.parentToken); in testDefaultValues()
90 assertNull(w.activityToken); in testDefaultValues()
[all …]
/frameworks/base/services/core/java/com/android/server/biometrics/sensors/fingerprint/aidl/
DTestHal.java47 Slog.w(TAG, "getSensorProps"); in getSensorProps()
53 Slog.w(TAG, "createSession, sensorId: " + sensorId + " userId: " + userId); in createSession()
68 Slog.w(TAG, "generateChallenge"); in createSession()
74 Slog.w(TAG, "revokeChallenge: " + challenge); in createSession()
80 Slog.w(TAG, "enroll"); in createSession()
99 Slog.w(TAG, "authenticate"); in createSession()
118 Slog.w(TAG, "detectInteraction"); in createSession()
137 Slog.w(TAG, "enumerateEnrollments"); in createSession()
143 Slog.w(TAG, "removeEnrollments"); in createSession()
149 Slog.w(TAG, "getAuthenticatorId"); in createSession()
[all …]
/frameworks/base/telephony/java/android/telephony/ims/stub/
DSipTransportImplBase.java158 for (SipDelegateAidlWrapper w : mDelegates) { in destroySipDelegateInternal()
159 if (Objects.equals(d, w.getDelegateBinder())) { in destroySipDelegateInternal()
160 result = w; in destroySipDelegateInternal()
170 Log.w(LOG_TAG, "destroySipDelegateInternal, could not findSipDelegate corresponding to " in destroySipDelegateInternal()
175 private void linkDeathRecipient(SipDelegateAidlWrapper w) { in linkDeathRecipient() argument
177 w.getStateCallbackBinder().asBinder().linkToDeath(mDeathRecipient, 0); in linkDeathRecipient()
179 Log.w(LOG_TAG, "linkDeathRecipient, remote process already died, cleaning up."); in linkDeathRecipient()
180 mDeathRecipient.binderDied(w.getStateCallbackBinder().asBinder()); in linkDeathRecipient()
184 private void unlinkDeathRecipient(SipDelegateAidlWrapper w) { in unlinkDeathRecipient() argument
186 w.getStateCallbackBinder().asBinder().unlinkToDeath(mDeathRecipient, 0); in unlinkDeathRecipient()
[all …]
/frameworks/native/cmds/flatland/
DComposers.cpp47 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/services/core/java/com/android/server/biometrics/sensors/face/aidl/
DTestHal.java49 Slog.w(TAG, "getSensorProps"); in getSensorProps()
55 Slog.w(TAG, "createSession, sensorId: " + sensorId + " userId: " + userId); in createSession()
70 Slog.w(TAG, "generateChallenge"); in createSession()
76 Slog.w(TAG, "revokeChallenge: " + challenge); in createSession()
88 Slog.w(TAG, "enroll"); in createSession()
107 Slog.w(TAG, "authenticate"); in createSession()
126 Slog.w(TAG, "detectInteraction"); in createSession()
145 Slog.w(TAG, "enumerateEnrollments"); in createSession()
151 Slog.w(TAG, "removeEnrollments"); in createSession()
157 Slog.w(TAG, "getFeatures"); in createSession()
[all …]

12345678910>>...91