Home
last modified time | relevance | path

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

1234

/system/core/libutils/binder/
DUnicode.cpp283 static constexpr bool is_any_surrogate(char16_t w) { in is_any_surrogate() argument
284 return (w & 0xf800) == 0xd800; in is_any_surrogate()
305 char16_t w = *in++; in utf16_to_utf8_length() local
306 if (w < 0x0080) [[likely]] { in utf16_to_utf8_length()
310 if (w < 0x0800) [[likely]] { in utf16_to_utf8_length()
314 if (!is_any_surrogate(w)) [[likely]] { in utf16_to_utf8_length()
318 if (in < end && is_surrogate_pair(w, *in)) { in utf16_to_utf8_length()
346 char16_t w = *in++; in utf16_to_utf8() local
347 if (w < 0x0080) [[likely]] { in utf16_to_utf8()
350 *out++ = (char)(w & 0xff); in utf16_to_utf8()
[all …]
/system/hardware/interfaces/suspend/1.0/default/
DWakeupList.cpp32 for (const WakeupInfo& w : mWakeups) { in getWakeupStats() local
33 wakeups->push_back(w); in getWakeupStats()
49 WakeupInfo w; in update() local
50 w.name = key; in update()
51 w.count = 1; in update()
53 insert(std::move(w)); in update()
/system/chre/apps/nearby/location/lbs/contexthub/nanoapps/nearby/crypto/
Dsha2.c94 ctx->w[i] = BSWAP32(ctx->w[i]); in sha2processBlock()
98 uint32_t s0 = ror(ctx->w[i - 15], 7) ^ ror(ctx->w[i - 15], 18) ^ in sha2processBlock()
99 (ctx->w[i - 15] >> 3); in sha2processBlock()
101 ror(ctx->w[i - 2], 17) ^ ror(ctx->w[i - 2], 19) ^ (ctx->w[i - 2] >> 10); in sha2processBlock()
102 ctx->w[i] = ctx->w[i - 16] + s0 + ctx->w[i - 7] + s1; in sha2processBlock()
119 uint32_t temp1 = h + s1 + ch + k[i] + ctx->w[i]; in sha2processBlock()
/system/teeui/libteeui/src/
Dbutton.cpp43 for (int x = 0; x < box.w().count(); ++x) { in draw()
66 cBounds.translateSelf(Point<intpxs>(right * (intBounds.w() - intRadius), in draw()
74 for (int x = 0; x < cBounds.w().count(); ++x) { in draw()
97 if (auto error = drawBox(Box<intpxs>(intBounds.w() - intRadius, 0, intRadius, intRadius) in draw()
117 if (auto error = drawBox(Box<intpxs>(intBounds.w() - intRadius, intBounds.h() - intRadius, in draw()
125 auto centerbox = Box<intpxs>(intRadius, intRadius, intBounds.w() - intRadius - intRadius, in draw()
138 drawBox(Box<intpxs>(intRadius, 0, intBounds.w() - intRadius - intRadius, intRadius) in draw()
143 if (auto error = drawBox(Box<intpxs>(intBounds.w() - intRadius, intRadius, intRadius, in draw()
150 intBounds.w() - intRadius - intRadius, intRadius) in draw()
163 auto start = PxPoint{bounds.w() - coBBox.w(), bounds.h() - coBBox.h()} / pxs(2.0); in draw()
[all …]
Dlabel.cpp42 intpxs((int64_t)bounds.w().count()), intpxs((int64_t)bounds.h().count())); in draw()
57 for (int x = 0; x < box.w().count(); ++x) { in draw()
98 pen += {(bounds.w() - bBox.w()) / 2.0_px, 0}; in draw()
101 pen += {bounds.w() - bBox.w(), 0}; in draw()
/system/extras/tests/framebuffer/
Dfb_test.c207 void draw_grid(int w, int h, void* _loc) { in draw_grid() argument
214 for (i = 0; i < w/2; i++) in draw_grid()
219 for (; i < w; i++) in draw_grid()
227 for (i = 0; i < w/2; i++) in draw_grid()
232 for (; i < w; i++) in draw_grid()
241 void clear_screen(int w, int h, void* _loc) in clear_screen() argument
249 for (i = 0; i < w; i++) in clear_screen()
257 int w; in main() local
271 w = atoi(argv[2]); in main()
274 w = vi.xres; in main()
[all …]
Drefresh.c134 int l,t,w,h; in main() local
137 w=320; in main()
141 info.reserved[2] = (uint16_t)(l+w) | ((uint32_t)(t+h) << 16); in main()
/system/teeui/test/
Dteeui_device_config.cpp42 void saveToPpm(const uint32_t* data, uint32_t w, uint32_t h, uint32_t linestride) { in saveToPpm() argument
53 out << "P6\n" << w << " " << h << "\n255\n"; in saveToPpm()
57 for (uint32_t col = 0; col < w; col++) { in saveToPpm()
82 uint32_t w = device_info_ptr->width_; in runRenderTest() local
84 uint32_t linestride = w; in runRenderTest()
91 sCurrentExample->renderUIIntoBuffer(0, 0, w, h, linestride, buffer.data(), buffer_size); in runRenderTest()
94 saveToPpm(buffer.data(), w, h, linestride); in runRenderTest()
/system/extras/slideshow/
Dslideshow.cpp61 int w, h, x, y; in draw() local
68 w = gr_get_width(surface); in draw()
70 x = (gr_fb_width() - w) / 2; in draw()
73 gr_blit(surface, 0, 0, w, h, x, y); in draw()
/system/media/audio_utils/
Dfixedfft.cpp131 int32_t w = MAX_FFT_SIZE / 4 - (r << scale); in fixed_fft() local
132 i = w >> 31; in fixed_fft()
133 w = ((int32_t) twiddle[(w ^ i) - i]) ^ (i << 16); in fixed_fft()
136 int32_t y = mult(w, v[i + p]); in fixed_fft()
/system/extras/cppreopts/
Dcppreopts.sh28 log -p w -t cppreopts "Unable to copy file ${source_file} to ${temp_dest_name}!"
33 log -p w -t cppreopts "Unable to rename temporary file from ${temp_dest_name} to ${dest_name}"
34 … rm ${temp_dest_name} || log -p w -t cppreopts "Unable to remove temporary file ${temp_dest_name}"
/system/server_configurable_flags/aconfigd/
Daconfigd.rc7 file /dev/kmsg w
17 file /dev/kmsg w
27 file /dev/kmsg w
/system/authgraph/hal/src/
Dchannel.rs35 pub fn write_msg<W: Write>(w: &mut W, data: &[u8]) -> binder::Result<()> { in write_msg()
46 w.write_all(&data_len_data[..]).map_err(|e| { in write_msg()
53 w.write_all(data).map_err(|e| { in write_msg()
/system/teeui/libteeui/example/
Dphys_button_example.cpp60 uint32_t renderUIIntoBuffer(uint32_t x, uint32_t y, uint32_t w, uint32_t h, uint32_t lineStride,
105 uint32_t GUIStatePhysButtons::renderUIIntoBuffer(uint32_t x, uint32_t y, uint32_t w, uint32_t h, in renderUIIntoBuffer() argument
113 __builtin_add_overflow(afterLastPixelIndex, w, &afterLastPixelIndex) || in renderUIIntoBuffer()
123 for (uint32_t xi = 0; xi < w; ++xi) { in renderUIIntoBuffer()
131 fb.width_ = w; in renderUIIntoBuffer()
Dtouch_button_example.cpp83 uint32_t renderUIIntoBuffer(uint32_t x, uint32_t y, uint32_t w, uint32_t h, uint32_t lineStride,
142 uint32_t GUIStateTouch::renderUIIntoBuffer(uint32_t x, uint32_t y, uint32_t w, uint32_t h, in renderUIIntoBuffer() argument
150 __builtin_add_overflow(afterLastPixelIndex, w, &afterLastPixelIndex) || in renderUIIntoBuffer()
160 for (uint32_t xi = 0; xi < w; ++xi) { in renderUIIntoBuffer()
168 fb.width_ = w; in renderUIIntoBuffer()
/system/core/healthd/
Dhealthd_draw.cpp125 int w = gr_get_width(surface); in draw_surface_centered() local
127 int x = (screen_width_ - w) / 2 + kSplitOffset; in draw_surface_centered()
130 LOGV("drawing surface %dx%d+%d+%d\n", w, h, x, y); in draw_surface_centered()
131 gr_blit(surface, 0, 0, w, h, x, y); in draw_surface_centered()
134 LOGV("drawing surface %dx%d+%d+%d\n", w, h, x, y); in draw_surface_centered()
135 gr_blit(surface, 0, 0, w, h, x, y); in draw_surface_centered()
/system/core/llkd/
Dllkd-debuggable.rc17 file /dev/kmsg w
18 file /proc/sysrq-trigger w
Dllkd.rc43 file /dev/kmsg w
44 file /proc/sysrq-trigger w
/system/tools/aidl/build/
Daidl_api.go281 Text("-w -m " + m.properties.BaseName).
304 Text("-w -m " + m.properties.BaseName).
309 Text("-w -m " + m.properties.BaseName).
345 Text("-w -m " + m.properties.BaseName).
685 Custom: func(w io.Writer, name, prefix, moduleDir string, data android.AndroidMkData) {
686 android.WriteAndroidMkData(w, data)
688 fmt.Fprintln(w, ".PHONY:", targetName)
689 fmt.Fprintln(w, targetName+":", m.freezeApiTimestamp.String())
692 fmt.Fprintln(w, ".PHONY:", targetName)
693 fmt.Fprintln(w, targetName+":", m.updateApiTimestamp.String())
DAndroid.bp104 "tests_1/some_package/sub_package/*.aidl", // testing glob w/o filegroup
126 "tests_1/some_package/sub_package/*.aidl", // testing glob w/o filegroup
148 "tests_1/some_package/sub_package/*.aidl", // testing glob w/o filegroup
169 "tests_1/some_package/sub_package/*.aidl", // testing glob w/o filegroup
190 "tests_1/some_package/sub_package/*.aidl", // testing glob w/o filegroup
211 "tests_1/some_package/sub_package/*.aidl", // testing glob w/o filegroup
/system/sepolicy/build/soong/
Dmac_permissions.go126 func(w io.Writer, outputFile android.Path) {
127 fmt.Fprintln(w, "LOCAL_MODULE_PATH :=", m.installPath.String())
128 fmt.Fprintln(w, "LOCAL_INSTALLED_MODULE_STEM :=", m.stem())
/system/security/keystore2/test_utils/
Drun_as.rs90 w if w != std::mem::size_of::<usize>() => { in send()
93 w in send()
103 w if w != serialized.len() => { in send()
106 w in send()
/system/keymint/hal/src/
Dlib.rs88 pub fn write_msg<W: Write>(w: &mut W, data: &[u8]) -> binder::Result<()> { in write_msg()
99 w.write_all(&data_len_data[..]).map_err(|e| { in write_msg()
106 w.write_all(data).map_err(|e| { in write_msg()
139 w: W, field
146 write_msg(&mut self.w, serialized_req)?; in execute()
/system/apex/tests/testdata/sharedlibs/build/com.android.apex.test.bar/
Dcom.android.apex.test.bar.pem31 eqHres2x7XjE64tF4AIYLPNVmMQKc/5Ke7uTsA2W4YYHSwDKODRFGKhgc4oI5G+w
41 aZwiw34+w+ELCWBYE8bkmE0ST4VLdEX++iQNVFGMBQ+TgHef0st8FrnS3uSQvQUJ
/system/teeui/tools/framebufferizer/src/com/android/framebufferizer/utils/
DFrameBufferBuffer.java404 int w = deviceInfo.getWidthPx(); in renderNativeBuffer() local
406 final int linestride = w; in renderNativeBuffer()
414 WritableRaster raster = Raster.createPackedRaster(mBuffer, w, h, linestride, in renderNativeBuffer()
421 error = NativeRenderer.renderBuffer(0, 0, w, h, linestride, mBuffer.getData()); in renderNativeBuffer()
432 if (w / (double) h > getWidth() / (double) getHeight()) { in renderNativeBuffer()
433 mScale = (double) getWidth() / (double) w; in renderNativeBuffer()

1234