Home
last modified time | relevance | path

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

12

/aosp14/frameworks/base/libs/androidfw/
H A DBackupData.cpp69 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 DBackupHelpers.cpp89 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 …]
/aosp14/frameworks/base/cmds/incidentd/src/
H A DFdBuffer.cpp94 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 …]
/aosp14/frameworks/base/libs/protoutil/src/
H A DProtoFileReader.cpp124 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 DEncodedBuffer.cpp60 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 …]
/aosp14/frameworks/base/core/java/android/util/
H A DTimeUtils.java184 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 DAtomicFile.java297 int amt = stream.read(data, pos, data.length-pos); in readFully() local
300 if (amt <= 0) { in readFully()
305 pos += amt; in readFully()
/aosp14/frameworks/base/core/java/android/util/proto/
H A DEncodedBuffer.java409 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 …]
/aosp14/frameworks/base/tools/bit/
H A Dadb.cpp91 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 Dcommand.cpp138 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()
/aosp14/frameworks/base/tools/powermodel/src/com/android/powermodel/
H A DCsvParser.java70 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()
/aosp14/frameworks/base/cmds/incidentd/tests/
H A DProtoFileReader_test.cpp40 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()
H A DFdBuffer_test.cpp66 ssize_t amt = write(wFd.get(), buf + nWritten, nRead - nWritten); in DoDataStream() local
67 if (amt < 0) { in DoDataStream()
70 nWritten += amt; in DoDataStream()
/aosp14/frameworks/base/core/jni/
H A Dandroid_backup_BackupHelperDispatcher.cpp48 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()
/aosp14/frameworks/base/wifi/tests/src/android/net/wifi/
H A DSoftApConfToXmlMigrationUtilTest.java148 int amt = stream.read(data, pos, data.length - pos); in readFully() local
149 if (amt <= 0) { in readFully()
152 pos += amt; in readFully()
/aosp14/frameworks/base/media/mca/filterpacks/java/android/filterpacks/imageproc/
H A DFillLightFilter.java128 float amt = 1.0f - mBacklight; in updateParameters() local
129 float mult = 1.0f / (amt * 0.7f + 0.3f); in updateParameters()
/aosp14/frameworks/base/libs/protoutil/include/android/util/
H A DEncodedBuffer.h58 Pointer* move(size_t amt);
202 virtual void move(size_t amt);
H A DProtoReader.h72 virtual void move(size_t amt) = 0;
H A DProtoFileReader.h51 virtual void move(size_t amt);
/aosp14/frameworks/base/cmds/incident/
H A Dmain.cpp213 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()
/aosp14/frameworks/base/cmds/am/src/com/android/commands/am/
H A DInstrument.java581 int amt; in readLogcat() local
582 while ((amt = reader.read(buffer, 0, buffer.length)) >= 0) { in readLogcat()
583 if (amt > 0) { in readLogcat()
584 str.append(buffer, 0, amt); in readLogcat()
/aosp14/frameworks/base/services/core/java/com/android/server/wallpaper/
H A DWallpaperDataParser.java553 int amt; in restoreNamedResourceLocked() local
554 while ((amt = res.read(buffer)) > 0) { in restoreNamedResourceLocked()
555 fos.write(buffer, 0, amt); in restoreNamedResourceLocked()
556 cos.write(buffer, 0, amt); in restoreNamedResourceLocked()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/events/
H A DSystemEventChipAnimationController.kt198 val amt = if (animationDirection == LEFT) { regex
203 updateAnimatedBoundsX(amt)
/aosp14/frameworks/base/tools/aapt/
H A DResourceTable.cpp3033 strAmt += amt; in flatten()
3034 if (amt < 0) { in flatten()
3035 return amt; in flatten()
3043 strAmt += amt; in flatten()
3044 if (amt < 0) { in flatten()
3045 return amt; in flatten()
3311 strAmt += amt; in flatten()
3743 size_t amt = 0; in flatten() local
3779 amt += it.parsedValue.size; in flatten()
3815 amt += sizeof(map); in flatten()
[all …]
/aosp14/frameworks/base/core/java/android/app/
H A DBackStackRecord.java602 void bumpBackStackNesting(int amt) { in bumpBackStackNesting() argument
608 + " by " + amt); in bumpBackStackNesting()
614 op.fragment.mBackStackNesting += amt; in bumpBackStackNesting()

12