Searched refs:amt (Results 1 - 25 of 35) sorted by relevance

12

/frameworks/base/libs/androidfw/
H A DBackupData.cpp69 ssize_t amt; local
76 amt = write(m_fd, &padding, paddingSize);
77 if (amt != paddingSize) {
81 m_pos += amt;
93 ssize_t amt; local
95 amt = write_padding_for(m_pos);
96 if (amt != 0) {
97 return amt;
123 amt = write(m_fd, &header, sizeof(entity_header_v1));
124 if (amt !
160 ssize_t amt = write(m_fd, data, size); local
230 int amt; local
273 int amt = read(m_fd, buf, size+1); local
351 int amt = read(m_fd, data, size); local
367 ssize_t amt; local
[all...]
H A DBackupHelpers.cpp89 int amt; local
92 amt = read(fd, &header, sizeof(header));
93 if (amt != sizeof(header)) {
96 bytesRead += amt;
107 amt = read(fd, &file, sizeof(FileState));
108 if (amt != sizeof(FileState)) {
112 bytesRead += amt;
119 amt = read(fd, filename, nameBufSize);
120 if (amt == nameBufSize) {
123 bytesRead += amt;
160 int amt; local
218 int amt; local
314 int amt; local
749 ssize_t amt; local
834 int amt; local
860 int amt; local
[all...]
/frameworks/support/compat/java/android/support/v4/util/
H A DTimeUtils.java44 static private int accumField(int amt, int suffix, boolean always, int zeropad) { argument
45 if (amt > 99 || (always && zeropad >= 3)) {
48 if (amt > 9 || (always && zeropad >= 2)) {
51 if (always || amt > 0) {
57 static private int printField(char[] formatStr, int amt, char suffix, int pos, argument
59 if (always || amt > 0) {
61 if ((always && zeropad >= 3) || amt > 99) {
62 int dig = amt/100;
65 amt -= (dig*100);
67 if ((always && zeropad >= 2) || amt >
[all...]
H A DAtomicFile.java182 int amt = stream.read(data, pos, data.length-pos);
183 //Log.i("foo", "Read " + amt + " bytes at " + pos
185 if (amt <= 0) {
190 pos += amt;
/frameworks/av/media/img_utils/src/
H A DInput.cpp34 size_t amt = (SKIP_BUF_SIZE > remaining) ? remaining : SKIP_BUF_SIZE; local
35 ssize_t ret = read(skipBuf, 0, amt);
/frameworks/base/core/java/android/util/
H A DTimeUtils.java254 static private int accumField(int amt, int suffix, boolean always, int zeropad) { argument
255 if (amt > 999) {
257 while (amt != 0) {
259 amt /= 10;
263 if (amt > 99 || (always && zeropad >= 3)) {
266 if (amt > 9 || (always && zeropad >= 2)) {
269 if (always || amt > 0) {
276 static private int printFieldLocked(char[] formatStr, int amt, char suffix, int pos, argument
278 if (always || amt > 0) {
280 if (amt > 99
[all...]
H A DAtomicFile.java229 int amt = stream.read(data, pos, data.length-pos);
230 //Log.i("foo", "Read " + amt + " bytes at " + pos
232 if (amt <= 0) {
237 pos += amt;
/frameworks/base/cmds/incidentd/src/
H A DFdBuffer.cpp93 ssize_t amt = ::read(fd, buf + mCurrentWritten, BUFFER_SIZE - mCurrentWritten); local
94 if (amt < 0) {
100 } else if (amt == 0) {
103 mCurrentWritten += amt;
H A DReporter.cpp44 ssize_t amt = ::write(fd, buf, size); local
45 if (amt < 0) {
48 size -= amt;
49 buf += amt;
H A DSection.cpp42 ssize_t amt; local
/frameworks/base/tools/bit/
H A Dadb.cpp91 ssize_t amt = read(fd, &byte, 1); local
92 if (amt == 0) {
95 } else if (amt < 0) {
134 ssize_t amt = read(fd, buf+pos, size-pos); local
135 if (amt == 0) {
141 } else if (amt < 0) {
147 pos += amt;
185 ssize_t amt = size < scratchSize ? size : scratchSize; local
186 fprintf(stderr, "skipping %lu/%ld bytes\n", size, amt);
187 amt
[all...]
H A Dcommand.cpp136 ssize_t amt = read(fds[0], buf, size); local
137 if (amt <= 0) {
139 } else if (amt > 0) {
140 result.append(buf, amt);
/frameworks/base/core/java/android/util/proto/
H A DEncodedBuffer.java400 int amt = length < (mChunkSize - mWriteIndex) ? length : (mChunkSize - mWriteIndex);
401 if (amt > 0) {
402 System.arraycopy(val, offset, mWriteBuffer, mWriteIndex, amt);
403 mWriteIndex += amt;
404 length -= amt;
405 offset += amt;
410 amt = length < mChunkSize ? length : mChunkSize;
411 System.arraycopy(val, offset, mWriteBuffer, mWriteIndex, amt);
412 mWriteIndex += amt;
413 length -= amt;
[all...]
/frameworks/base/core/java/com/android/internal/os/
H A DAtomicFile.java157 int amt = stream.read(data, pos, data.length-pos);
158 //Log.i("foo", "Read " + amt + " bytes at " + pos
160 if (amt <= 0) {
165 pos += amt;
H A DBatteryStatsHelper.java808 int amt = stream.read(data, pos, data.length - pos);
809 //Log.i("foo", "Read " + amt + " bytes at " + pos
811 if (amt <= 0) {
816 pos += amt;
/frameworks/base/cmds/incident/
H A Dmain.cpp218 int amt = splice(fds[0], NULL, STDOUT_FILENO, NULL, 4096, 0); local
219 fprintf(stderr, "spliced %d bytes\n", amt);
220 if (amt < 0) {
222 } else if (amt == 0) {
/frameworks/base/core/jni/
H A Dandroid_backup_BackupHelperDispatcher.cpp48 ssize_t amt; local
54 amt = read(fd, &flattenedHeader.headerSize, sizeof(flattenedHeader.headerSize));
55 if (amt != sizeof(flattenedHeader.headerSize)) {
70 amt = read(fd, &flattenedHeader.version,
72 if (amt <= 0) {
109 amt = read(fd, buf, flattenedHeader.nameLength);
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/imageproc/
H A DFillLightFilter.java128 float amt = 1.0f - mBacklight;
129 float mult = 1.0f / (amt * 0.7f + 0.3f);
/frameworks/base/tools/incident_report/
H A Dmain.cpp286 ssize_t amt = ::write(fd, buf, size); local
287 if (amt < 0) {
290 size -= amt;
291 buf += amt;
365 ssize_t amt = read(pfd[0], buffer + size, maxAllowedSize - size); local
366 if (amt == 0) {
368 } else if (amt == -1) {
372 size += amt;
/frameworks/base/libs/common_time/
H A Ddiag_thread.cpp264 int amt = local_clock_->getDebugLog(events, kMaxEvents); local
266 if (amt > 0) {
267 for (int i = 0; i < amt; i++) {
/frameworks/base/services/core/java/com/android/server/am/
H A DProcessList.java626 * @param amt Adjustment value -- lmkd allows -16 to +15.
630 public static final void setOomAdj(int pid, int uid, int amt) { argument
631 if (amt == UNKNOWN_ADJ)
639 buf.putInt(amt);
644 + " = " + amt);
/frameworks/native/cmds/rawbu/
H A Dbackup.cpp204 int amt = size > (off_t)sizeof(copyBuffer) ? sizeof(copyBuffer) : (int)size; local
205 int readLen = fread(copyBuffer, 1, amt, src);
209 amt, origSize, srcName, errno != 0 ? strerror(errno) : "unexpected EOF");
212 amt, origSize, errno != 0 ? strerror(errno) : "unexpected EOF");
/frameworks/base/tools/aapt/
H A DResourceTable.cpp3041 ssize_t amt = data->writeData(strFile->getData(), strFile->getSize()); local
3043 fprintf(stderr, "**** type strings: %zd\n", SSIZE(amt));
3045 strAmt += amt;
3046 if (amt < 0) {
3047 return amt;
3051 amt = data->writeData(strFile->getData(), strFile->getSize());
3053 fprintf(stderr, "**** key strings: %zd\n", SSIZE(amt));
3055 strAmt += amt;
3056 if (amt < 0) {
3057 return amt;
3248 ssize_t amt = e->flatten(bundle, data, cl->getPublic()); local
3322 ssize_t amt = (dest->getSize()-strStart); local
3755 size_t amt = 0; local
[all...]
/frameworks/base/core/java/android/app/
H A DBackStackRecord.java602 void bumpBackStackNesting(int amt) { argument
608 + " by " + amt);
614 op.fragment.mBackStackNesting += amt;
H A DWallpaperManager.java1125 int amt;
1126 while ((amt=data.read(buffer)) > 0) {
1127 fos.write(buffer, 0, amt);

Completed in 4453 milliseconds

12