Home
last modified time | relevance | path

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

12

/frameworks/base/libs/androidfw/
DBackupData.cpp75 ssize_t amt; in write_padding_for() local
82 amt = write(m_fd, &padding, paddingSize); in write_padding_for()
83 if (amt != paddingSize) { in write_padding_for()
87 m_pos += amt; in write_padding_for()
99 ssize_t amt; in WriteEntityHeader() local
101 amt = write_padding_for(m_pos); in WriteEntityHeader()
102 if (amt != 0) { in WriteEntityHeader()
103 return amt; in WriteEntityHeader()
129 amt = write(m_fd, &header, sizeof(entity_header_v1)); in WriteEntityHeader()
130 if (amt != sizeof(entity_header_v1)) { in WriteEntityHeader()
[all …]
DBackupHelpers.cpp93 int amt; in read_snapshot_file() local
96 amt = read(fd, &header, sizeof(header)); in read_snapshot_file()
97 if (amt != sizeof(header)) { in read_snapshot_file()
100 bytesRead += amt; in read_snapshot_file()
111 amt = read(fd, &file, sizeof(FileState)); in read_snapshot_file()
112 if (amt != sizeof(FileState)) { in read_snapshot_file()
116 bytesRead += amt; in read_snapshot_file()
123 amt = read(fd, filename, nameBufSize); in read_snapshot_file()
124 if (amt == nameBufSize) { in read_snapshot_file()
127 bytesRead += amt; in read_snapshot_file()
[all …]
/frameworks/support/v4/java/android/support/v4/util/
DTimeUtils.java38 static private int accumField(int amt, int suffix, boolean always, int zeropad) { in accumField() argument
39 if (amt > 99 || (always && zeropad >= 3)) { in accumField()
42 if (amt > 9 || (always && zeropad >= 2)) { in accumField()
45 if (always || amt > 0) { in accumField()
51 static private int printField(char[] formatStr, int amt, char suffix, int pos, in printField() argument
53 if (always || amt > 0) { in printField()
55 if ((always && zeropad >= 3) || amt > 99) { in printField()
56 int dig = amt/100; in printField()
59 amt -= (dig*100); in printField()
61 if ((always && zeropad >= 2) || amt > 9 || startPos != pos) { in printField()
[all …]
DAtomicFile.java182 int amt = stream.read(data, pos, data.length-pos); in readFully() local
185 if (amt <= 0) { in readFully()
190 pos += amt; in readFully()
/frameworks/base/core/java/android/util/
DTimeUtils.java253 static private int accumField(int amt, int suffix, boolean always, int zeropad) { in accumField() argument
254 if (amt > 99 || (always && zeropad >= 3)) { in accumField()
257 if (amt > 9 || (always && zeropad >= 2)) { in accumField()
260 if (always || amt > 0) { in accumField()
266 static private int printField(char[] formatStr, int amt, char suffix, int pos, in printField() argument
268 if (always || amt > 0) { in printField()
270 if ((always && zeropad >= 3) || amt > 99) { in printField()
271 int dig = amt/100; in printField()
274 amt -= (dig*100); in printField()
276 if ((always && zeropad >= 2) || amt > 9 || startPos != pos) { in printField()
[all …]
DAtomicFile.java213 int amt = stream.read(data, pos, data.length-pos); in readFully() local
216 if (amt <= 0) { in readFully()
221 pos += amt; in readFully()
/frameworks/base/tools/aapt/
Dprintapk.cpp29 ssize_t amt; in main() local
51 amt = lseek(fd, 0, SEEK_SET); in main()
53 if (size < 0 || amt < 0) { in main()
64 amt = read(fd, buf, size); in main()
65 if (amt != size) { in main()
DResourceTable.cpp2786 ssize_t amt = data->writeData(strFile->getData(), strFile->getSize()); in flatten() local
2788 fprintf(stderr, "**** type strings: %d\n", amt); in flatten()
2790 strAmt += amt; in flatten()
2791 if (amt < 0) { in flatten()
2792 return amt; in flatten()
2796 amt = data->writeData(strFile->getData(), strFile->getSize()); in flatten()
2798 fprintf(stderr, "**** key strings: %d\n", amt); in flatten()
2800 strAmt += amt; in flatten()
2801 if (amt < 0) { in flatten()
2802 return amt; in flatten()
[all …]
DZipFile.cpp1171 ssize_t amt = fread(buf, 1, unlen, mZipFp); in uncompress() local
1172 if (amt != (ssize_t)unlen) { in uncompress()
/frameworks/base/core/jni/
Dandroid_backup_BackupHelperDispatcher.cpp47 ssize_t amt; in readHeader_native() local
53 amt = read(fd, &flattenedHeader.headerSize, sizeof(flattenedHeader.headerSize)); in readHeader_native()
54 if (amt != sizeof(flattenedHeader.headerSize)) { in readHeader_native()
69 amt = read(fd, &flattenedHeader.version, in readHeader_native()
71 if (amt <= 0) { in readHeader_native()
108 amt = read(fd, buf, flattenedHeader.nameLength); in readHeader_native()
/frameworks/base/core/java/com/android/internal/os/
DAtomicFile.java148 int amt = stream.read(data, pos, data.length-pos); in readFully() local
151 if (amt <= 0) { in readFully()
156 pos += amt; in readFully()
DBatteryStatsImpl.java3901 long amt = values[i]; in addSpeedStepTimes() local
3902 if (amt != 0) { in addSpeedStepTimes()
5346 int amt = stream.read(data, pos, data.length-pos); in readFully() local
5349 if (amt <= 0) { in readFully()
5354 pos += amt; in readFully()
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/imageproc/
DFillLightFilter.java132 float amt = 1.0f - mBacklight; in updateParameters() local
133 float mult = 1.0f / (amt * 0.7f + 0.3f); in updateParameters()
/frameworks/base/services/common_time/
Ddiag_thread.cpp264 int amt = local_clock_->getDebugLog(events, kMaxEvents); in threadLoop() local
266 if (amt > 0) { in threadLoop()
267 for (int i = 0; i < amt; i++) { in threadLoop()
/frameworks/native/cmds/rawbu/
Dbackup.cpp204 int amt = size > (off_t)sizeof(copyBuffer) ? sizeof(copyBuffer) : (int)size; in copy_file() local
205 int readLen = fread(copyBuffer, 1, amt, src); in copy_file()
209 amt, origSize, srcName, errno != 0 ? strerror(errno) : "unexpected EOF"); in copy_file()
212 amt, origSize, errno != 0 ? strerror(errno) : "unexpected EOF"); in copy_file()
/frameworks/base/core/java/android/app/
DBackStackRecord.java549 void bumpBackStackNesting(int amt) { in bumpBackStackNesting() argument
554 + " by " + amt); in bumpBackStackNesting()
558 op.fragment.mBackStackNesting += amt; in bumpBackStackNesting()
565 r.mBackStackNesting += amt; in bumpBackStackNesting()
DWallpaperManager.java823 int amt; in setWallpaper() local
824 while ((amt=data.read(buffer)) > 0) { in setWallpaper()
825 fos.write(buffer, 0, amt); in setWallpaper()
/frameworks/support/v4/java/android/support/v4/app/
DBackStackRecord.java548 void bumpBackStackNesting(int amt) { in bumpBackStackNesting() argument
553 + " by " + amt); in bumpBackStackNesting()
557 op.fragment.mBackStackNesting += amt; in bumpBackStackNesting()
564 r.mBackStackNesting += amt; in bumpBackStackNesting()
/frameworks/av/media/libmedia/
DIMediaPlayer.cpp513 int amt = data.readInt32(); in onTransact() local
514 if (amt == sizeof(endpoint)) { in onTransact()
/frameworks/base/core/java/android/os/
DProcess.java905 public static final native boolean setOomAdj(int pid, int amt); in setOomAdj() argument
/frameworks/base/services/java/com/android/server/am/
DUsageStatsService.java890 int amt = stream.read(data, pos, data.length-pos); in readFully() local
891 if (amt <= 0) { in readFully()
894 pos += amt; in readFully()
/frameworks/native/include/binder/
DParcel.h142 void remove(size_t start, size_t amt);
/frameworks/base/services/java/com/android/server/
DWallpaperManagerService.java1268 int amt; in restoreNamedResourceLocked() local
1269 while ((amt=res.read(buffer)) > 0) { in restoreNamedResourceLocked()
1270 fos.write(buffer, 0, amt); in restoreNamedResourceLocked()
/frameworks/base/core/java/com/android/internal/app/
DProcessStats.java1303 int amt = stream.read(data, pos, data.length-pos); in readFully() local
1304 if (DEBUG_PARCEL) Slog.i("foo", "Read " + amt + " bytes at " + pos in readFully()
1306 if (amt < 0) { in readFully()
1312 pos += amt; in readFully()
/frameworks/base/core/java/android/view/
DViewRootImpl.java2327 float amt = deltaTime/(float) mResizeBufferDuration; in draw() local
2328 amt = mResizeInterpolator.getInterpolation(amt); in draw()
2330 resizeAlpha = 255 - (int)(amt*255); in draw()

12