Home
last modified time | relevance | path

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

123456

/aosp12/hardware/interfaces/automotive/evs/1.0/default/
H A DEvsCamera.cpp423 BufferDesc buff = {}; in generateFrames() local
424 buff.width = mWidth; in generateFrames()
425 buff.height = mHeight; in generateFrames()
426 buff.stride = mStride; in generateFrames()
428 buff.usage = mUsage; in generateFrames()
429 buff.bufferId = idx; in generateFrames()
433 fillTestFrame(buff); in generateFrames()
438 ALOGD("Delivered %p as id %d", buff.memHandle.getNativeHandle(), buff.bufferId); in generateFrames()
481 mapper.lock(buff.memHandle, in fillTestFrame()
483 android::Rect(buff.width, buff.height), in fillTestFrame()
[all …]
/aosp12/packages/services/BuiltInPrintService/jni/plugins/
H A 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()
H A 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()
/aosp12/system/media/alsa_utils/
H A Dalsa_logging.c39 char buff[BUFF_SIZE]; in log_pcm_mask() local
40 buff[0] = '\0'; in log_pcm_mask()
43 strcat(buff, "["); in log_pcm_mask()
47 strcat(buff, (mask->bits[slot_index] & bit_mask) != 0 ? "1" : "0"); in log_pcm_mask()
51 strcat(buff, ","); in log_pcm_mask()
54 strcat(buff, "]"); in log_pcm_mask()
56 ALOGV("%s: mask:%s", mask_name, buff); in log_pcm_mask()
/aosp12/frameworks/av/media/libaudioclient/tests/
H A Dtrack_test_output_v1.0_ref_walleye.txt9 notif. frame count(2400), req. notif. frame count(2400), req. notif. per buff(0)
20 notif. frame count(1600), req. notif. frame count(2400), req. notif. per buff(0)
31 notif. frame count(1600), req. notif. frame count(2400), req. notif. per buff(0)
42 notif. frame count(1600), req. notif. frame count(2400), req. notif. per buff(0)
53 notif. frame count(1470), req. notif. frame count(2205), req. notif. per buff(0)
64 notif. frame count(1470), req. notif. frame count(2205), req. notif. per buff(0)
152 notif. frame count(962), req. notif. frame count(0), req. notif. per buff(0)
163 notif. frame count(24000), req. notif. frame count(0), req. notif. per buff(0)
174 notif. frame count(240), req. notif. frame count(0), req. notif. per buff(2)
185 notif. frame count(0), req. notif. frame count(0), req. notif. per buff(0)
[all …]
/aosp12/system/sepolicy/tools/
H A Dversion_policy.c35 char *buff = NULL; in read_cil_file() local
49 buff = malloc(file_size); in read_cil_file()
50 if (buff == NULL) { in read_cil_file()
55 rc = fread(buff, file_size, 1, file); in read_cil_file()
65 rc = cil_add_file(*db, path, buff, file_size); in read_cil_file()
70 free(buff); in read_cil_file()
76 free(buff); in read_cil_file()
/aosp12/hardware/nxp/nfc/snxxx/halimpl/mifare/
H A DNxpMfcReader.cc203 uint8_t buff[mMfcTagCmdIntfData.sendBufLen]; in BuildRawCmd() local
204 memset(buff, 0, mMfcTagCmdIntfData.sendBufLen); in BuildRawCmd()
205 memcpy(buff, mMfcTagCmdIntfData.sendBuf, mMfcTagCmdIntfData.sendBufLen); in BuildRawCmd()
206 memcpy(mMfcTagCmdIntfData.sendBuf + 1, buff, mMfcTagCmdIntfData.sendBufLen); in BuildRawCmd()
222 uint8_t buff[mMfcTagCmdIntfData.sendBufLen]; in BuildIncDecCmd() local
223 memset(buff, 0, mMfcTagCmdIntfData.sendBufLen); in BuildIncDecCmd()
224 memcpy(buff, mMfcTagCmdIntfData.sendBuf, mMfcTagCmdIntfData.sendBufLen); in BuildIncDecCmd()
225 memcpy(mMfcTagCmdIntfData.sendBuf + 1, buff, mMfcTagCmdIntfData.sendBufLen); in BuildIncDecCmd()
/aosp12/system/extras/tests/iptables/qtaguid/
H A DsocketTag.cpp69 char *buff; in doCtrlCommand() local
76 vasprintf(&buff, fmt, argp); in doCtrlCommand()
78 res = write(ctrl, buff, strlen(buff)); in doCtrlCommand()
79 testPrintI("cmd: '%s' res=%d %d/%s", buff, res, errno, strerror(errno)); in doCtrlCommand()
81 free(buff); in doCtrlCommand()
152 std::string buff = android::base::StringPrintf(" tag=0x%" PRIx64 " (uid=%u)", full_tag, uid); in checkTag() local
154 buff = android::base::StringPrintf("sock=%" PRIxPTR, (uintptr_t)addr) + buff; in checkTag()
157 testPrintI("looking for '%s'", buff.c_str()); in checkTag()
162 pos = ctrl_data.find(buff); in checkTag()
/aosp12/hardware/interfaces/automotive/evs/1.1/default/
H A DEvsCamera.cpp589 void EvsCamera::fillTestFrame(const BufferDesc_1_1& buff) { in fillTestFrame() argument
595 mapper.lock(buff.buffer.nativeHandle, in fillTestFrame()
630 mapper.unlock(buff.buffer.nativeHandle); in fillTestFrame()
634 void EvsCamera::fillTestFrame(const BufferDesc_1_0& buff) { in fillTestFrame() argument
637 buff.width, // width in fillTestFrame()
638 buff.height, // height in fillTestFrame()
640 buff.format, // One of AHardwareBuffer_Format in fillTestFrame()
642 buff.stride, // Row stride in pixels in fillTestFrame()
647 newBufDesc.buffer.nativeHandle = buff.memHandle; in fillTestFrame()
648 newBufDesc.pixelSize = buff.pixelSize; in fillTestFrame()
[all …]
/aosp12/hardware/qcom/audio/hal/audio_extn/
H A Dhwdep_cal.c55 void *buff; member
102 calib.buff = malloc(calib.buff_size); in send_codec_cal()
107 free(calib.buff); in send_codec_cal()
110 codec_buffer.buffer = calib.buff; in send_codec_cal()
117 free(calib.buff); in send_codec_cal()
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/screenrecord/
H A DScreenInternalAudioRecorder.java216 private void scaleValues(short[] buff, int len, float scale) { in scaleValues() argument
218 int newValue = (int) (buff[i] * scale); in scaleValues()
219 buff[i] = (short) MathUtils.constrain(newValue, Short.MIN_VALUE, Short.MAX_VALUE); in scaleValues()
243 ByteBuffer buff = mCodec.getInputBuffer(bufferIndex); in encode() local
244 buff.clear(); in encode()
245 int bufferSize = buff.capacity(); in encode()
249 buff.put(buffer, offset, bytesToRead); in encode()
279 ByteBuffer buff = mCodec.getOutputBuffer(bufferIndex); in writeOutput()
283 mMuxer.writeSampleData(mTrackId, buff, bufferInfo); in writeOutput()
/aosp12/hardware/interfaces/automotive/vehicle/2.0/default/impl/vhal_v2_0/
H A Dqemu_pipe.cpp69 int qemu_pipe_frame_send(int fd, const void* buff, size_t len) { in qemu_pipe_frame_send() argument
76 if (!WriteFully(fd, buff, len)) { in qemu_pipe_frame_send()
83 int qemu_pipe_frame_recv(int fd, void* buff, size_t len) { in qemu_pipe_frame_recv() argument
99 if (!ReadFully(fd, buff, size)) { in qemu_pipe_frame_recv()
H A Dqemu_pipe.h51 int qemu_pipe_frame_send(int fd, const void* buff, size_t len);
58 int qemu_pipe_frame_recv(int fd, void* buff, size_t len);
/aosp12/system/bt/embdrv/g722/fuzzer/
H A Dg722_enc_fuzzer.cc36 std::vector<uint8_t> buff; in LLVMFuzzerTestOneInput() local
38 buff.push_back(data[i]); in LLVMFuzzerTestOneInput()
42 buff.size() / (2 /*bytes_per_sample*/ * 2 /*number of channels*/); in LLVMFuzzerTestOneInput()
53 const uint8_t* sample = buff.data() + i * 2; in LLVMFuzzerTestOneInput()
/aosp12/hardware/google/pixel/perfstatsd/
H A Dperfstatsd.cpp57 char buff[20]; in getHistory() local
58 strftime(buff, sizeof(buff), "%m-%d %H:%M:%S", localtime(&t)); in getHistory()
60 ret->append(std::string(buff) + "."); in getHistory()
/aosp12/packages/apps/Nfc/nci/jni/extns/pn54x/src/mifare/
H A DphNxpExtns_MifareStd.cpp1308 RspBuff.pBuff = buff; in Mfc_RecvPacket()
1389 buff[i++] = phNciNfc_e_MfRawDataXchgHdr; in phNciNfc_MfCreateXchgDataHdr()
1434 buff[0] = phNciNfc_e_MfcAuthReq; in phNciNfc_MfCreateAuthCmdHdr()
1435 buff[1] = bBlockAddr; in phNciNfc_MfCreateAuthCmdHdr()
1436 buff[2] = bKey; in phNciNfc_MfCreateAuthCmdHdr()
1856 uint8_t* buff = NULL; in phFriNfc_ExtnsTransceive() local
1869 buff = (uint8_t*)malloc((uint32_t)MAX_BUFF_SIZE); in phFriNfc_ExtnsTransceive()
1870 if (NULL == buff) { in phFriNfc_ExtnsTransceive()
1951 if (buff != NULL) { in phFriNfc_ExtnsTransceive()
1952 free(buff); in phFriNfc_ExtnsTransceive()
[all …]
/aosp12/system/chre/core/
H A Ddebug_dump_manager.cc98 const auto &buff = mDebugDump.getBuffers()[i]; in sendFrameworkDebugDumps() local
99 sendDebugDump(buff.get(), false /*complete*/); in sendFrameworkDebugDumps()
115 const auto &buff = mDebugDump.getBuffers()[i]; in sendNanoappDebugDumps() local
116 sendDebugDump(buff.get(), false /*complete*/); in sendNanoappDebugDumps()
/aosp12/hardware/nxp/secure_element/pn8x/ls_client/src/
H A DLsClient.cpp104 std::stringstream buff; in dumpLsInfo() local
105 buff << std::setw(2) << std::setfill('0') << std::hex in dumpLsInfo()
107 buff << std::setw(2) << std::setfill('0') << std::hex in dumpLsInfo()
109 buff << std::setw(2) << std::setfill('0') << std::hex << (int)(info->m_mode); in dumpLsInfo()
110 buff << std::setw(2) << std::setfill('0') << std::hex in dumpLsInfo()
112 buff << std::setw(2) << std::setfill('0') << std::hex in dumpLsInfo()
114 buff << std::setw(2) << std::setfill('0') << std::hex in dumpLsInfo()
116 buff << std::setw(2) << std::setfill('0') << std::hex in dumpLsInfo()
118 return buff.str(); in dumpLsInfo()
/aosp12/hardware/interfaces/dumpstate/1.1/vts/functional/
H A DVtsHalDumpstateV1_1TargetTest.cpp173 char buff; in TEST_P() local
174 ASSERT_EQ(1, read(fds[0], &buff, 1)) << "Dumped nothing"; in TEST_P()
200 char buff; in TEST_P() local
201 size_t read1 = read(fds1[0], &buff, 1); in TEST_P()
202 size_t read2 = read(fds2[0], &buff, 1); in TEST_P()
272 char buff; in TEST_P() local
273 ASSERT_EQ(1, read(fds[0], &buff, 1)) << "Dumped nothing"; in TEST_P()
/aosp12/packages/apps/Launcher3/tests/src/com/android/launcher3/util/
H A DTestUtil.java44 byte[] buff = new byte[1024]; in installDummyApp()
47 while ((read = in.read(buff)) > 0) { in installDummyApp()
48 out.write(buff, 0, read); in installDummyApp()
/aosp12/system/extras/tests/kernel.config/
H A Daslr_test.cpp69 char buff[MAX_ADDR_LEN]; in scrape_addr() local
90 len = read(fd[0], buff, MAX_ADDR_LEN - 1); in scrape_addr()
96 buff[len] = '\0'; in scrape_addr()
112 return std::string(buff, strlen(buff)); in scrape_addr()
/aosp12/frameworks/base/core/java/android/database/
H A DCursorWindow.java773 StringBuilder buff = new StringBuilder(); in printStats() local
791 buff.append(" (# cursors opened by "); in printStats()
794 buff.append("this proc="); in printStats()
796 buff.append("pid ").append(pid).append('='); in printStats()
799 buff.append(num).append(')'); in printStats()
803 String s = (buff.length() > 980) ? buff.substring(0, 980) : buff.toString(); in printStats()
/aosp12/frameworks/compile/slang/
H A Dslang_rs_reflect_utils.cpp133 static bool GenerateSegmentMethod(const char *buff, int blen, int bitwidth, in GenerateSegmentMethod() argument
151 out << std::setw(4) << static_cast<int>(buff[written]) << ","; in GenerateSegmentMethod()
185 char *buff = new char[SEG_SIZE]; in GenerateJavaCodeAccessorMethodForBitwidth() local
189 while ((read_length = fread(buff, 1, SEG_SIZE, pfin)) > 0) { in GenerateJavaCodeAccessorMethodForBitwidth()
190 GenerateSegmentMethod(buff, read_length, bitwidth, seg_num, out); in GenerateJavaCodeAccessorMethodForBitwidth()
194 delete[] buff; in GenerateJavaCodeAccessorMethodForBitwidth()
/aosp12/hardware/qcom/camera/msm8998/QCamera2/HAL/test/
H A Dqcamera_test.cpp168 unsigned char *buff = NULL; in saveFile() local
190 if (!buff) { in saveFile()
289 const void *buff = NULL; in decodeJPEG() local
341 const void *buff = NULL; in decodeJPEG()
438 if (!buff) { in encodeJPEG()
456 free(buff); in encodeJPEG()
876 unsigned char *buff = NULL; in postData() local
2346 mInterpr->mViVBuff.buff = in startViVRecording()
2357 mInterpr->mViVBuff.buff = in startViVRecording()
3332 free(mTestContext->mViVBuff.buff); in releasePiPBuff()
[all …]
/aosp12/packages/services/BuiltInPrintService/jni/include/
H A 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);

123456