/aosp12/frameworks/base/libs/androidfw/ |
H A D | BackupData.cpp | 69 ssize_t amt; in write_padding_for() local 93 ssize_t amt; in WriteEntityHeader() local 96 if (amt != 0) { in WriteEntityHeader() 97 return amt; in WriteEntityHeader() 128 m_pos += amt; in WriteEntityHeader() 136 m_pos += amt; in WriteEntityHeader() 142 return amt; in WriteEntityHeader() 166 m_pos += amt; in WriteEntityData() 230 int amt; in ReadNextHeader() local 361 return amt; in ReadEntityData() [all …]
|
H A D | BackupHelpers.cpp | 89 int amt; in read_snapshot_file() local 96 bytesRead += amt; in read_snapshot_file() 160 int amt; in write_snapshot_file() local 218 int amt; in write_update_file() local 314 int amt; in compute_crc32() local 749 ssize_t amt; in WriteFile() local 834 int amt; in write_text_file() local 846 if (amt != len) { in write_text_file() 860 int amt; in compare_file() local 876 if (amt != len) { in compare_file() [all …]
|
/aosp12/frameworks/base/cmds/incidentd/src/ |
H A D | FdBuffer.cpp | 94 if (amt < 0) { in read() 128 ssize_t amt = in readFully() local 130 if (amt < 0) { in readFully() 133 } else if (amt == 0) { in readFully() 209 ssize_t amt; in readProcessedDataInStream() local 215 if (amt < 0) { in readProcessedDataInStream() 224 rpos += amt; in readProcessedDataInStream() 231 ssize_t amt; in readProcessedDataInStream() local 237 if (amt < 0) { in readProcessedDataInStream() 243 wpos += amt; in readProcessedDataInStream() [all …]
|
/aosp12/frameworks/base/core/java/android/util/ |
H A D | TimeUtils.java | 184 if (amt > 999) { in accumField() 186 while (amt != 0) { in accumField() 188 amt /= 10; in accumField() 198 if (always || amt > 0) { in accumField() 207 if (always || amt > 0) { in printFieldLocked() 209 if (amt > 999) { in printFieldLocked() 215 amt /= 10; in printFieldLocked() 225 int dig = amt/100; in printFieldLocked() 228 amt -= (dig*100); in printFieldLocked() 231 int dig = amt/10; in printFieldLocked() [all …]
|
H A D | AtomicFile.java | 297 int amt = stream.read(data, pos, data.length-pos); in readFully() local 300 if (amt <= 0) { in readFully() 305 pos += amt; in readFully()
|
/aosp12/frameworks/base/libs/protoutil/src/ |
H A D | ProtoFileReader.cpp | 124 ProtoFileReader::move(size_t amt) in move() argument 126 while (mStatus == NO_ERROR && amt > 0) { in move() 131 mMaxOffset - mOffset > amt ? amt : mMaxOffset - mOffset; in move() 133 amt -= chunk; in move() 150 ssize_t amt = TEMP_FAILURE_RETRY(read(mFd, mBuffer, mChunkSize)); in ensure_data() local 151 if (amt == 0) { in ensure_data() 153 } else if (amt < 0) { in ensure_data() 158 mMaxOffset = amt; in ensure_data()
|
H A D | EncodedBuffer.cpp | 60 EncodedBuffer::Pointer::move(size_t amt) in move() argument 62 size_t newOffset = mOffset + amt; in move() 244 err = writeRaw(buf, amt); in writeRaw() 245 reader->move(amt); in writeRaw() 260 if (size < amt) { in writeRaw() 261 amt = size; in writeRaw() 263 err = writeRaw(buf, amt); in writeRaw() 264 reader->move(amt); in writeRaw() 265 size -= amt; in writeRaw() 418 EncodedBuffer::Reader::move(size_t amt) in move() argument [all …]
|
/aosp12/frameworks/base/core/java/android/util/proto/ |
H A D | EncodedBuffer.java | 409 if (amt > 0) { in writeRawBuffer() 411 mWriteIndex += amt; in writeRawBuffer() 412 length -= amt; in writeRawBuffer() 413 offset += amt; in writeRawBuffer() 418 amt = length < mChunkSize ? length : mChunkSize; in writeRawBuffer() 420 mWriteIndex += amt; in writeRawBuffer() 421 length -= amt; in writeRawBuffer() 422 offset += amt; in writeRawBuffer() 485 mWriteIndex += amt; 486 readIndex += amt; [all …]
|
/aosp12/frameworks/base/tools/bit/ |
H A D | adb.cpp | 91 ssize_t amt = read(fd, &byte, 1); in read_varint() local 92 if (amt == 0) { in read_varint() 95 } else if (amt < 0) { in read_varint() 134 ssize_t amt = read(fd, buf+pos, size-pos); in read_sized_buffer() local 135 if (amt == 0) { in read_sized_buffer() 141 } else if (amt < 0) { in read_sized_buffer() 147 pos += amt; in read_sized_buffer() 187 amt = read(fd, scratch, amt); in skip_bytes() 188 if (amt == 0) { in skip_bytes() 192 } else if (amt < 0) { in skip_bytes() [all …]
|
H A D | command.cpp | 138 ssize_t amt = read(fds[0], buf, size); in get_command_output() local 139 if (amt <= 0) { in get_command_output() 141 } else if (amt > 0) { in get_command_output() 142 result.append(buf, amt); in get_command_output()
|
/aosp12/system/extras/tests/lib/testUtil/ |
H A D | testUtil.c | 66 struct timespec double2ts(double amt) in double2ts() argument 70 rv.tv_sec = floor(amt); in double2ts() 71 rv.tv_nsec = (amt - rv.tv_sec) * nSecsPerSec; in double2ts() 82 struct timeval double2tv(double amt) in double2tv() argument 86 rv.tv_sec = floor(amt); in double2tv() 87 rv.tv_usec = (amt - rv.tv_sec) * uSecsPerSec; in double2tv() 262 void testDelay(float amt) in testDelay() argument 276 if (ts2double(&delta) > amt) { break; } in testDelay() 279 remaining = double2ts(amt - ts2double(&delta)); in testDelay() 288 void testDelaySpin(float amt) in testDelaySpin() argument [all …]
|
/aosp12/frameworks/base/tools/powermodel/src/com/android/powermodel/ |
H A D | CsvParser.java | 70 int amt = input.read(buf, readPos, buf.length-readPos); in parse() local 71 if (amt < 0) { in parse() 73 amt = readPos; in parse() 77 amt += readPos; in parse() 85 while (index < amt) { in parse() 156 if (fieldStart != amt) { in parse()
|
/aosp12/system/extras/tests/lib/testUtil/include/ |
H A D | testUtil.h | 28 struct timespec double2ts(double amt); 29 struct timeval double2tv(double amt); 37 void testDelay(float amt); 38 void testDelaySpin(float amt);
|
/aosp12/frameworks/base/cmds/incidentd/tests/ |
H A D | ProtoFileReader_test.cpp | 40 size_t amt = reader->currentToRead(); in read() local 41 if (size < amt) { in read() 42 amt = size; in read() 44 reader->move(amt); in read() 45 size -= amt; in read()
|
/aosp12/hardware/qcom/sdm845/display/liblight/ |
H A D | lights.c | 134 ssize_t amt; in write_int() local 137 amt = write(fd, buffer, bytes); in write_int() 139 amt = -1; in write_int() 143 return amt == -1 ? -errno : 0; in write_int() 162 ssize_t amt; in write_double_int() local 165 amt = write(fd, buffer, bytes); in write_double_int() 167 amt = -1; in write_double_int() 171 return amt == -1 ? -errno : 0; in write_double_int()
|
/aosp12/frameworks/base/core/jni/ |
H A D | android_backup_BackupHelperDispatcher.cpp | 48 ssize_t amt; in readHeader_native() local 54 amt = read(fd, &flattenedHeader.headerSize, sizeof(flattenedHeader.headerSize)); in readHeader_native() 55 if (amt != sizeof(flattenedHeader.headerSize)) { in readHeader_native() 70 amt = read(fd, &flattenedHeader.version, in readHeader_native() 72 if (amt <= 0) { in readHeader_native() 109 amt = read(fd, buf, flattenedHeader.nameLength); in readHeader_native()
|
/aosp12/build/make/tools/product_config/src/com/android/build/config/ |
H A D | KatiCommandImpl.java | 47 int amt; in run() local 48 while ((amt = reader.read(buf, 0, buf.length)) >= 0) { in run() 49 mOutput.append(buf, 0, amt); in run()
|
/aosp12/frameworks/av/media/img_utils/src/ |
H A D | Input.cpp | 34 size_t amt = (SKIP_BUF_SIZE > remaining) ? remaining : SKIP_BUF_SIZE; in skip() local 35 ssize_t ret = read(skipBuf, 0, amt); in skip()
|
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/events/ |
H A D | SystemEventChipAnimationController.kt | 103 val amt = animator.animatedValue as Float regex 105 alpha = amt 108 val translation = (1 - amt) * w
|
/aosp12/art/tools/dexfuzz/src/dexfuzz/ |
H A D | MutationStats.java | 48 public void increaseStat(String statName, long amt) { in increaseStat() argument 53 stats.put(statName, stats.get(statName) + amt); in increaseStat()
|
/aosp12/frameworks/base/wifi/tests/src/android/net/wifi/ |
H A D | SoftApConfToXmlMigrationUtilTest.java | 148 int amt = stream.read(data, pos, data.length - pos); in readFully() local 149 if (amt <= 0) { in readFully() 152 pos += amt; in readFully()
|
/aosp12/frameworks/base/media/mca/filterpacks/java/android/filterpacks/imageproc/ |
H A D | FillLightFilter.java | 128 float amt = 1.0f - mBacklight; in updateParameters() local 129 float mult = 1.0f / (amt * 0.7f + 0.3f); in updateParameters()
|
/aosp12/frameworks/base/libs/protoutil/include/android/util/ |
H A D | EncodedBuffer.h | 58 Pointer* move(size_t amt); 202 virtual void move(size_t amt);
|
/aosp12/frameworks/base/cmds/incident/ |
H A D | main.cpp | 213 int amt = splice(read_fd, NULL, write_fd, NULL, 4096, 0); in stream_output() local 214 if (amt < 0) { in stream_output() 216 } else if (amt == 0) { in stream_output()
|
/aosp12/hardware/qcom/display/msm8084/liblight/ |
H A D | lights.c | 87 ssize_t amt = write(fd, buffer, (size_t)bytes); in write_int() local 89 return amt == -1 ? -errno : 0; in write_int()
|