/frameworks/av/cmds/screenrecord/ |
H A D | FrameOutput.cpp | 32 inline void FrameOutput::setValueLE(uint8_t* buf, uint32_t value) { argument 37 buf[0] = (uint8_t) value; 38 buf[1] = (uint8_t) (value >> 8); 39 buf[2] = (uint8_t) (value >> 16); 40 buf[3] = (uint8_t) (value >> 24); 193 void FrameOutput::reduceRgbaToRgb(uint8_t* buf, unsigned int pixelCount) { argument 199 const uint8_t* readPtr = buf; 201 *buf++ = *readPtr++; 202 *buf++ = *readPtr++; 203 *buf [all...] |
H A D | Overlay.cpp | 255 void Overlay::getTimeString_l(nsecs_t monotonicNsec, char* buf, size_t bufLen) { argument 261 snprintf(buf, bufLen, "%" PRId64, monotonicNsec); 271 strftime(buf, bufLen, format, &tm); 276 strlcat(buf, tmpBuf, bufLen);
|
/frameworks/av/media/libstagefright/ |
H A D | FrameRenderTracker.cpp | 51 ANativeWindowBuffer *buf, int fenceFd, int index) { 60 if (it->mGraphicBuffer->handle == buf->handle) { 50 updateInfoForDequeuedBuffer( ANativeWindowBuffer *buf, int fenceFd, int index) argument
|
/frameworks/av/media/libstagefright/tests/ |
H A D | MediaCodecListOverrides_test.cpp | 147 char *buf = (char *)malloc(size); local 148 EXPECT_EQ((size_t)1, fread(buf, size, 1, f)); 149 overrides.setTo(buf, size); 151 free(buf);
|
/frameworks/av/services/audioflinger/ |
H A D | BufLog.cpp | 75 int samplingRate, size_t maxBytes, const void *buf, size_t size) { 87 return pBLStream->write(buf, size); 162 size_t BufLogStream::write(const void *buf, size_t size) { argument 166 if (size > 0 && buf != NULL) { 171 bytes = fwrite(buf, 1, size, mFile); 74 write(int streamid, const char *tag, int format, int channels, int samplingRate, size_t maxBytes, const void *buf, size_t size) argument
|
/frameworks/av/services/mediaanalytics/ |
H A D | MetricsSummarizer.cpp | 108 char buf[16]; // enough for "#####: " local 114 snprintf(buf, sizeof(buf), "%5d: ", slot); 115 value.append(buf);
|
/frameworks/base/cmds/idmap/ |
H A D | create.cpp | 87 char buf[N]; local 93 ssize_t r = TEMP_FAILURE_RETRY(read(idmap_fd, buf + N - bytesLeft, bytesLeft)); 109 if (!ResTable::getIdmapInfo(buf, N, NULL, &cached_target_crc, &cached_overlay_crc,
|
/frameworks/base/cmds/incidentd/src/ |
H A D | Reporter.cpp | 41 write_all(int fd, uint8_t const* buf, size_t size) argument 44 ssize_t amt = ::write(fd, buf, size); 49 buf += amt; 95 ReportRequestSet::write(uint8_t const* buf, size_t size) argument 104 err = write_all(request->fd, buf, size); 114 err = write_all(mMainFd, buf, size); 131 char buf[100]; local 139 strftime(buf, sizeof(buf), "/incident-%Y%m%d-%H%M%S", localtime(&mStartTime)); 140 mFilename = INCIDENT_DIRECTORY + buf; [all...] |
/frameworks/base/core/java/android/text/method/ |
H A D | MultiTapKeyListener.java | 237 public void onSpanChanged(Spannable buf, argument 240 buf.removeSpan(TextKeyListener.ACTIVE); 241 removeTimeouts(buf); 245 private static void removeTimeouts(Spannable buf) { argument 246 Timeout[] timeout = buf.getSpans(0, buf.length(), Timeout.class); 253 buf.removeSpan(t); 270 Spannable buf = mBuffer; 272 if (buf != null) { 273 int st = Selection.getSelectionStart(buf); [all...] |
/frameworks/base/core/java/android/util/jar/ |
H A D | StrictJarManifest.java | 189 private void read(byte[] buf) throws IOException { argument 190 if (buf.length == 0) { 194 StrictJarManifestReader im = new StrictJarManifestReader(buf, mainAttributes);
|
/frameworks/base/core/java/com/android/internal/util/ |
H A D | IndentingPrintWriter.java | 95 final char[] buf = new char[len]; 96 s.getChars(off, len - off, buf, 0); 97 write(buf, 0, len); 101 public void write(char[] buf, int offset, int count) { argument 109 char ch = buf[lineEnd++]; 113 super.write(buf, lineStart, lineEnd - lineStart); 129 super.write(buf, lineStart, lineEnd - lineStart); 140 super.write(buf, lineStart, lineEnd - lineStart);
|
/frameworks/base/core/jni/ |
H A D | android_backup_BackupHelperDispatcher.cpp | 50 char* buf; local 103 buf = keyPrefix.lockBuffer(flattenedHeader.nameLength); 104 if (buf == NULL) { 109 amt = read(fd, buf, flattenedHeader.nameLength); 110 buf[flattenedHeader.nameLength] = 0; 176 const char* buf; local 195 buf = env->GetStringUTFChars(nameObj, NULL); 196 err = write(fd, buf, header.nameLength); 197 env->ReleaseStringUTFChars(nameObj, buf);
|
H A D | android_os_SystemProperties.cpp | 35 char buf[PROPERTY_VALUE_MAX]; local 45 len = property_get(key, buf, ""); 49 rvJ = env->NewStringUTF(buf); 71 char buf[PROPERTY_VALUE_MAX]; local 82 len = property_get(key, buf, ""); 84 result = strtol(buf, &end, 0); 85 if (end == buf) { 101 char buf[PROPERTY_VALUE_MAX]; local 112 len = property_get(key, buf, ""); 114 result = strtoll(buf, 131 char buf[PROPERTY_VALUE_MAX]; local [all...] |
/frameworks/base/libs/androidfw/include/androidfw/ |
H A D | ObbFile.h | 106 static inline uint32_t get4LE(const unsigned char* buf) { argument 107 return buf[0] | (buf[1] << 8) | (buf[2] << 16) | (buf[3] << 24); 110 static inline void put4LE(unsigned char* buf, uint32_t val) { argument 111 buf[0] = val & 0xFF; 112 buf[1] = (val >> 8) & 0xFF; 113 buf[2] = (val >> 16) & 0xFF; 114 buf[ [all...] |
/frameworks/base/libs/common_time/ |
H A D | diag_thread.cpp | 275 char buf[1024]; local 279 snprintf(buf, sizeof(buf), "E,%lld,%lld,%lld,%d\n", 284 buf[sizeof(buf) - 1] = 0; 287 write(data_fd_, buf, strlen(buf)); 295 char buf[1024]; local 297 snprintf(buf, sizeof(buf), [all...] |
H A D | utils.cpp | 122 char buf[1024]; local 128 res = snprintf(buf, sizeof(buf), "\n%s\n", mHeader); 130 write(fd, buf, res); 153 res = snprintf(buf, sizeof(buf), "[%2zu] %s.%03ld :: %s%s\n", 160 write(fd, buf, res);
|
/frameworks/base/libs/hwui/ |
H A D | GpuMemoryTracker.cpp | 112 char buf[128]; local 114 snprintf(buf, 128, "hwui_%s", TYPE_NAMES[type]); 116 ATRACE_INT(buf, stats.totalSize); 117 snprintf(buf, 128, "hwui_%s_count", TYPE_NAMES[type]); 118 ATRACE_INT(buf, stats.count);
|
/frameworks/base/services/core/jni/ |
H A D | com_android_server_am_BatteryStatsService.cpp | 68 char buf[80]; local 69 strerror_r(errno, buf, sizeof(buf)); 70 ALOGE("Error posting wakeup sem: %s\n", buf); 87 char buf[80]; local 88 strerror_r(errno, buf, sizeof(buf)); 89 ALOGE("Error creating semaphore: %s\n", buf); 90 jniThrowException(env, "java/lang/IllegalStateException", buf); 101 char buf[8 local [all...] |
/frameworks/base/tools/aapt/ |
H A D | ZipEntry.cpp | 388 unsigned char buf[kLFHLen]; local 393 if (fread(buf, 1, kLFHLen, fp) != kLFHLen) { 398 if (ZipEntry::getLongLE(&buf[0x00]) != kSignature) { 404 mVersionToExtract = ZipEntry::getShortLE(&buf[0x04]); 405 mGPBitFlag = ZipEntry::getShortLE(&buf[0x06]); 406 mCompressionMethod = ZipEntry::getShortLE(&buf[0x08]); 407 mLastModFileTime = ZipEntry::getShortLE(&buf[0x0a]); 408 mLastModFileDate = ZipEntry::getShortLE(&buf[0x0c]); 409 mCRC32 = ZipEntry::getLongLE(&buf[0x0e]); 410 mCompressedSize = ZipEntry::getLongLE(&buf[ 454 unsigned char buf[kLFHLen]; local 522 unsigned char buf[kCDELen]; local 612 unsigned char buf[kCDELen]; local [all...] |
/frameworks/base/tools/bit/ |
H A D | command.cpp | 134 char* buf = (char*)malloc(size); local 136 ssize_t amt = read(fds[0], buf, size); 140 result.append(buf, amt); 143 free(buf);
|
/frameworks/compile/libbcc/bcinfo/include/bcinfo/Wrap/ |
H A D | BCHeaderField.h | 48 bool Write(uint8_t* buf, size_t buf_len) { argument 57 WriteFixedSubfield(static_cast<FixedSubfield>(ID_), buf); 59 buf + sizeof(FixedSubfield)); 60 memcpy(buf + kTagLenSize, data_, len_); 63 memset(buf + fields_len, 0, pad_len); 68 bool Read(const uint8_t* buf, size_t buf_len) { argument 71 ReadFixedSubfield(&field, buf); 73 ReadFixedSubfield(&field, buf + sizeof(FixedSubfield)); 76 memcpy(data_, buf + kTagLenSize, len_); 89 static size_t GetDataSizeFromSerialized(const uint8_t* buf) { argument 106 WriteFixedSubfield(FixedSubfield value, uint8_t* buf) argument 110 ReadFixedSubfield(FixedSubfield* value, const uint8_t* buf) argument [all...] |
/frameworks/compile/mclinker/lib/Target/Mips/ |
H A D | MipsAbiFlags.cpp | 33 auto* buf = reinterpret_cast<ElfMipsAbiFlags*>(pRegion.begin()); local 34 buf->version = 0; 35 buf->isa_level = pInfo.m_IsaLevel; 36 buf->isa_rev = pInfo.m_IsaRev; 37 buf->gpr_size = pInfo.m_GprSize; 38 buf->cpr1_size = pInfo.m_Cpr1Size; 39 buf->cpr2_size = pInfo.m_Cpr2Size; 40 buf->fp_abi = pInfo.m_FpAbi; 41 buf->isa_ext = pInfo.m_IsaExt; 42 buf [all...] |
/frameworks/native/cmds/dumpsys/ |
H A D | dumpsys.cpp | 248 char buf[4096]; local 249 rc = TEMP_FAILURE_RETRY(read(local_end.get(), buf, sizeof(buf))); 260 if (!WriteFully(STDOUT_FILENO, buf, rc)) {
|
/frameworks/native/cmds/installd/tests/ |
H A D | installd_cache_test.cpp | 91 struct stat buf; local 92 if (!stat(fullPath, &buf)) { 93 return buf.st_size; 100 struct statvfs buf; local 101 if (!statvfs("/data/local/tmp", &buf)) { 102 return buf.f_bavail * buf.f_frsize;
|
H A D | installd_service_test.cpp | 81 struct stat buf; local 82 ::stat(StringPrintf("/data/local/tmp/user/0/%s", path).c_str(), &buf); 83 return buf.st_gid; 87 struct stat buf; local 88 ::stat(StringPrintf("/data/local/tmp/user/0/%s", path).c_str(), &buf); 89 return buf.st_mode & (S_IRWXU | S_IRWXG | S_IRWXO | S_ISGID);
|