Home
last modified time | relevance | path

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

/packages/apps/ThemePicker/src/com/android/customization/module/
DWallpaperStatsLog.java81 byte[] buff = new byte[needed]; in write()
83 buff[pos] = LIST_TYPE; in write()
84 buff[pos + 1] = 12; in write()
87 buff[pos] = LONG_TYPE; in write()
88 copyLong(buff, pos + 1, elapsedRealtime); in write()
90 buff[pos] = INT_TYPE; in write()
91 copyInt(buff, pos + 1, code); in write()
93 buff[pos] = INT_TYPE; in write()
94 copyInt(buff, pos + 1, arg1); in write()
96 buff[pos] = INT_TYPE; in write()
[all …]
/packages/services/Car/evs/sampleDriver/
DEvsV4lCamera.cpp464 BufferDesc buff = {}; in forwardFrame() local
465 buff.width = mVideo.getWidth(); in forwardFrame()
466 buff.height = mVideo.getHeight(); in forwardFrame()
467 buff.stride = mStride; in forwardFrame()
468 buff.format = mFormat; in forwardFrame()
469 buff.usage = mUsage; in forwardFrame()
470 buff.bufferId = idx; in forwardFrame()
471 buff.memHandle = mBuffers[idx].handle; in forwardFrame()
476 mapper.lock(buff.memHandle, in forwardFrame()
478 android::Rect(buff.width, buff.height), in forwardFrame()
[all …]
/packages/services/BuiltInPrintService/jni/plugins/
Dplugin_pdf.c76 char *buff; in _print_page() local
86 buff = malloc(BUFF_SIZE); in _print_page()
87 if (buff == NULL) { in _print_page()
93 rbytes = read(fd, buff, BUFF_SIZE); in _print_page()
96 wbytes = priv->print_ifc->send_data(priv->print_ifc, buff, rbytes); in _print_page()
99 rbytes = read(fd, buff, BUFF_SIZE); in _print_page()
110 free(buff); in _print_page()
Dlib_pclm.c233 unsigned char *buff = (unsigned char *) rgb_pixels; in _print_swath() local
237 unsigned char gray = SP_GRAY(buff[readIndex + 0], buff[readIndex + 1], in _print_swath()
238 buff[readIndex + 2]); in _print_swath()
239 buff[writeIndex++] = gray; in _print_swath()
240 buff[writeIndex++] = gray; in _print_swath()
241 buff[writeIndex++] = gray; in _print_swath()
Dlib_pwg.c289 unsigned char *buff = (unsigned char *) rgb_pixels; in _print_swath() local
293 unsigned char gray = SP_GRAY(buff[readIndex + 0], buff[readIndex + 1], in _print_swath()
294 buff[readIndex + 2]); in _print_swath()
295 buff[writeIndex++] = gray; in _print_swath()
Dplugin_pcl.c283 char *buff; in _print_page() local
404 buff = buff_pool[buff_index]; in _print_page()
410 (unsigned char *) buff); in _print_page()
417 memset(buff, 0xff, buff_size); in _print_page()
422 msg.param.send.buffer = buff; in _print_page()
/packages/apps/Nfc/nci/jni/extns/pn54x/src/mifare/
DphNxpExtns_MifareStd.cpp41 uint8_t* buff, uint16_t* buffSz);
62 phNciNfc_TransceiveInfo_t tTranscvInfo, uint8_t bBlockAddr, uint8_t* buff,
65 phNciNfc_TransceiveInfo_t tTranscvInfo, uint8_t* buff, uint16_t* buffSz);
71 static NFCSTATUS nativeNfcExtns_doTransceive(uint8_t* buff, uint16_t buffSz);
1085 static NFCSTATUS nativeNfcExtns_doTransceive(uint8_t* buff, uint16_t buffSz) { in nativeNfcExtns_doTransceive() argument
1088 NFA_SendRawFrame(buff, buffSz, NFA_DM_DEFAULT_PRESENCE_CHECK_START_DELAY); in nativeNfcExtns_doTransceive()
1299 NFCSTATUS Mfc_RecvPacket(uint8_t* buff, uint8_t buffSz) { in Mfc_RecvPacket() argument
1305 RspBuff.pBuff = buff; in Mfc_RecvPacket()
1380 phNciNfc_TransceiveInfo_t tTranscvInfo, uint8_t* buff, uint16_t* buffSz) in phNciNfc_MfCreateXchgDataHdr() argument
1386 buff[i++] = phNciNfc_e_MfRawDataXchgHdr; in phNciNfc_MfCreateXchgDataHdr()
[all …]
DphNxpExtns_MifareStd.h228 NFCSTATUS Mfc_RecvPacket(uint8_t* buff, uint8_t buffSz);
/packages/apps/Launcher3/tests/src/com/android/launcher3/util/
DTestUtil.java42 byte[] buff = new byte[1024]; in installDummyApp()
45 while ((read = in.read(buff)) > 0) { in installDummyApp()
46 out.write(buff, 0, read); in installDummyApp()
/packages/services/BuiltInPrintService/jni/lib/
Dlib_wprint.c262 static void _stream_dbg_job_data(wJob_t job_handle, const unsigned char *buff, in _stream_dbg_job_data() argument
268 bytes_written = write(jq->job_debug_fd, buff, nbytes); in _stream_dbg_job_data()
273 buff += bytes_written; in _stream_dbg_job_data()
286 static void _stream_dbg_page_data(wJob_t job_handle, const unsigned char *buff, in _stream_dbg_page_data() argument
292 bytes_written = write(jq->page_debug_fd, buff, nbytes); in _stream_dbg_page_data()
297 buff += bytes_written; in _stream_dbg_page_data()
312 } buff; in _stream_dbg_start_page() local
313 snprintf(buff.filename, MAX_PATHNAME_LENGTH, "%s/page%4.4d.ppm", jq->debug_path, in _stream_dbg_start_page()
315 buff.filename[MAX_PATHNAME_LENGTH] = 0; in _stream_dbg_start_page()
316 jq->page_debug_fd = open(buff.filename, O_CREAT | O_TRUNC | O_WRONLY, 0600); in _stream_dbg_start_page()
[all …]
/packages/apps/Nfc/nci/src/com/android/nfc/dhimpl/
DNativeNfcTag.java806 byte[] buff = readNdef(); in findAndReadNdef()
807 if (buff != null && buff.length > 0) { in findAndReadNdef()
809 ndefMsg = new NdefMessage(buff); in findAndReadNdef()
820 } else if(buff != null){ in findAndReadNdef()
/packages/apps/Nfc/nci/jni/
DHciEventManager.cpp155 uint8_t* buff = eventData->rcvd_evt.p_evt_buf; in nfaHciCallback() local
157 std::vector<uint8_t> event_buff(buff, buff + buffLength); in nfaHciCallback()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/colorpicker/
DColorSVRectView.java97 int[] buff = new int[w * h]; in fillBitmap() local
105 buff[i] = Color.HSVToColor(hsv); in fillBitmap()
107 mBitmap.setPixels(buff, 0, w, 0, 0, w, h); in fillBitmap()
/packages/services/BuiltInPrintService/jni/include/
Difc_wprint.h35 void (*debug_job_data)(wJob_t job_handle, const unsigned char *buff, unsigned long nbytes);
41 void (*debug_page_data)(wJob_t job_handle, const unsigned char *buff, unsigned long nbytes);
/packages/apps/DocumentsUI/tests/functional/com/android/documentsui/
DFileCopyUiTest.java270 byte[] buff = new byte[1024]; in loadImageFromResources()
271 while ((read = in.read(buff)) > 0) { in loadImageFromResources()
272 helper.writeAppendDocument(uri, buff, read); in loadImageFromResources()
274 buff = null; in loadImageFromResources()
/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/
DAbstractDownloadProviderFunctionalTest.java78 StringBuilder buff = new StringBuilder();
80 buff.append("a" + i % 26);
82 STRING_1K = buff.toString();
/packages/services/BuiltInPrintService/jni/plugins/genPCLm/inc/
DPCLmGenerator.h116 void initOutBuff(char *buff, sint32 size);
126 void write2Buff(ubyte *buff, int buffSize);
/packages/services/Car/evs/app/
DEvsStateControl.cpp180 mDisplay->getTargetBuffer([&tgtBuffer](const BufferDesc& buff) { in updateLoop() argument
181 tgtBuffer = buff; in updateLoop()
/packages/services/BuiltInPrintService/jni/plugins/genPCLm/src/
DgenPCLm.cpp222 void PCLmGenerator::initOutBuff(char *buff, sint32 size) { in initOutBuff() argument
223 currBuffPtr = outBuffPtr = buff; in initOutBuff()
226 memset(buff, 0, size); in initOutBuff()
240 void PCLmGenerator::write2Buff(ubyte *buff, int buffSize) { in write2Buff() argument
245 memcpy(currBuffPtr, buff, buffSize); in write2Buff()
/packages/modules/DnsResolver/
Dres_cache.cpp267 static void _dnsPacket_init(DnsPacket* packet, const uint8_t* buff, int bufflen) { in _dnsPacket_init() argument
268 packet->base = buff; in _dnsPacket_init()
269 packet->end = buff + bufflen; in _dnsPacket_init()
270 packet->cursor = buff; in _dnsPacket_init()
/packages/inputmethods/LatinIME/dictionaries/
Dsv_wordlist.combined.gz1dictionary=main:sv,locale=sv,description=Svenska,date=1414726264, ...
Den_GB_wordlist.combined.gz1dictionary=main:en_gb,locale=en_GB,description=English (UK),date ...
Den_US_wordlist.combined.gz1dictionary=main:en_us,locale=en_US,description=English (US),date ...
Den_wordlist.combined.gz1dictionary=main:en,locale=en,description=English,date=1414726273, ...
Dda_wordlist.combined.gz1dictionary=main:da,locale=da,description=Dansk,date=1393228134, ...