Searched refs:remaining (Results 1 - 25 of 162) sorted by relevance

1234567

/frameworks/av/media/img_utils/src/
H A DInput.cpp32 size_t remaining = count; local
33 while (remaining > 0) {
34 size_t amt = (SKIP_BUF_SIZE > remaining) ? remaining : SKIP_BUF_SIZE;
39 if (remaining == count) {
44 return count - remaining;
50 remaining -= ret;
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
H A DPixelUtils.java51 if (input.remaining() != output.remaining()) {
53 } else if (input.remaining() % 4 != 0) {
55 } else if (output.remaining() % 4 != 0) {
57 } else if ((width * height * 4) != input.remaining()) {
60 } else if ((width * height * 4) != output.remaining()) {
H A DColorSpace.java106 if (input.remaining() < expectedSize) {
108 + "and height! Expected: " + expectedSize + ", Got: " + input.remaining()
114 if (output.remaining() < expectedSize) {
116 + "and height! Expected: " + expectedSize + ", Got: " + output.remaining()
/frameworks/av/media/libstagefright/timedtext/
H A DTextDescriptions.cpp111 size_t remaining = chunkSize - 8; local
119 if (remaining < 2) {
126 remaining -= 2;
129 if (remaining < 12) {
156 remaining -= 12;
166 if (remaining < 6) {
178 remaining -= 6;
182 if (remaining < 8) {
196 remaining -= 8;
204 if (remaining <
384 size_t remaining = size - 8; local
[all...]
/frameworks/base/core/java/android/hardware/fingerprint/
H A DIFingerprintServiceReceiver.aidl27 void onEnrollResult(long deviceId, int fingerId, int groupId, int remaining);
32 void onRemoved(long deviceId, int fingerId, int groupId, int remaining);
33 void onEnumerated(long deviceId, int fingerId, int groupId, int remaining);
/frameworks/base/services/core/java/com/android/server/fingerprint/
H A DRemovalClient.java89 private boolean sendRemoved(int fingerId, int groupId, int remaining) { argument
93 receiver.onRemoved(getHalDeviceId(), fingerId, groupId, remaining);
98 return remaining == 0;
102 public boolean onRemoved(int fingerId, int groupId, int remaining) { argument
107 return sendRemoved(fingerId, getGroupId(), remaining);
123 public boolean onEnumerationResult(int fingerId, int groupId, int remaining) { argument
H A DEnrollClient.java48 public boolean onEnrollResult(int fingerId, int groupId, int remaining) { argument
53 if (remaining == 0) {
57 return sendEnrollResult(fingerId, groupId, remaining);
63 private boolean sendEnrollResult(int fpId, int groupId, int remaining) { argument
71 receiver.onEnrollResult(getHalDeviceId(), fpId, groupId, remaining);
72 return remaining == 0;
129 public boolean onRemoved(int fingerId, int groupId, int remaining) { argument
135 public boolean onEnumerationResult(int fingerId, int groupId, int remaining) { argument
H A DInternalEnumerateClient.java43 private void handleEnumeratedFingerprint(int fingerId, int groupId, int remaining) { argument
84 public boolean onEnumerationResult(int fingerId, int groupId, int remaining) { argument
86 handleEnumeratedFingerprint(fingerId, groupId, remaining);
87 if (remaining == 0) {
H A DEnumerateClient.java89 public boolean onEnumerationResult(int fingerId, int groupId, int remaining) { argument
94 receiver.onEnumerated(getHalDeviceId(), fingerId, groupId, remaining);
114 public boolean onRemoved(int fingerId, int groupId, int remaining) { argument
/frameworks/base/services/net/java/android/net/util/
H A DConnectivityPacketSummary.java79 if (mPacket.remaining() < ETHER_HEADER_LEN) {
80 sj.add("runt:").add(asString(mPacket.remaining()));
116 if (mPacket.remaining() < ARP_PAYLOAD_LEN) {
117 sj.add("runt:").add(asString(mPacket.remaining()));
153 if (mPacket.remaining() < ipv4HeaderLength ||
154 mPacket.remaining() < IPV4_HEADER_MIN_LEN) {
155 sj.add("runt:").add(asString(mPacket.remaining()));
187 if (mPacket.remaining() < IPV6_HEADER_LEN) {
188 sj.add("runt:").add(asString(mPacket.remaining()));
213 if (mPacket.remaining() < ICMPV6_HEADER_MIN_LE
[all...]
H A DNetdService.java90 final long remaining = stop - SystemClock.elapsedRealtime();
91 if (remaining <= 0) break;
95 timeoutMs = Math.min(timeoutMs, remaining);
/frameworks/base/core/java/android/hardware/camera2/marshal/impl/
H A DMarshalQueryableArray.java75 int remaining = buffer.remaining();
76 int arraySize = remaining / elementSize;
78 if (remaining % elementSize != 0) {
81 + "; but there are " + (remaining % elementSize) + " left over bytes");
87 + "remaining = %d) for type %s",
88 arraySize, elementSize, remaining, mClass));
110 if (buffer.remaining() != 0) {
111 Log.e(TAG, "Trailing bytes (" + buffer.remaining() + ") left over after unpacking "
H A DMarshalQueryableParcelable.java104 Log.v(TAG, "unmarshal, buffer remaining " + buffer.remaining());
126 int maxLength = buffer.remaining();
128 byte[] remaining = new byte[maxLength];
129 buffer.get(remaining);
131 parcel.unmarshall(remaining, /*offset*/0, maxLength);
/frameworks/base/telecomm/java/com/android/internal/telecom/
H A DIInCallService.aidl40 void setPostDial(String callId, String remaining);
42 void setPostDialWait(String callId, String remaining);
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/anqp/
H A DGenericBlobElement.java15 mData = new byte[payload.remaining()];
H A DThreeGPPNetworkElement.java73 if (length != payload.remaining()) {
75 + " bufferSize=" + payload.remaining());
/frameworks/av/media/img_utils/include/img_utils/
H A DTiffHelpers.h38 size_t remaining = BYTES_TILL_WORD(index); \
39 if (remaining > 0) { \
40 BAIL_ON_FAIL((output)->write(ZERO_WORD, 0, remaining), ret); \
/frameworks/base/services/core/jni/
H A Dcom_android_server_am_BatteryStatsService.cpp188 int remaining = (int)env->GetDirectBufferCapacity(outBuf); local
204 [&offset, &remaining, &total_added](hidl_vec<PowerStatePlatformSleepState> states,
212 added = snprintf(offset, remaining,
219 if (added > remaining) {
220 added = remaining;
223 remaining -= added;
228 added = snprintf(offset, remaining,
236 if (added > remaining) {
237 added = remaining;
240 remaining
[all...]
/frameworks/av/media/libstagefright/
H A DCallbackDataSource.cpp146 const ssize_t remaining = mCachedOffset + mCachedSize - offset; local
147 memcpy(data, &mCache[offset - mCachedOffset], remaining);
148 const ssize_t readMore = readAt(offset + remaining,
149 (uint8_t*)data + remaining, size - remaining);
153 return remaining + readMore;
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/exif/
H A DByteBufferInputStream.java44 len = Math.min(len, mBuf.remaining());
/frameworks/base/core/java/android/hardware/
H A DSerialPort.java89 return native_read_direct(buffer, buffer.remaining());
91 return native_read_array(buffer.array(), buffer.remaining());
/frameworks/base/packages/Osu/src/com/android/anqp/
H A DHSIconFileElement.java32 if (payload.remaining() < 4) {
33 throw new ProtocolException("Truncated icon file: " + payload.remaining());
/frameworks/base/media/packages/BluetoothMidiService/src/com/android/bluetoothmidiservice/
H A DBluetoothPacketEncoder.java112 int remaining = (hasSysExEnd ? count - 1 : count);
114 while (remaining > 0) {
123 if (copy > remaining) copy = remaining;
127 remaining -= copy;
/frameworks/base/tests/AccessoryDisplay/common/src/com/android/accessorydisplay/common/
H A DTransport.java331 int remaining;
334 remaining = position - next;
335 if (remaining < length) {
345 if (remaining < length) {
363 if (remaining == 0) {
368 System.arraycopy(oldBuffer.array(), next, buffer.array(), 0, remaining);
369 buffer.position(remaining);
/frameworks/base/services/net/java/android/net/netlink/
H A DStructNlAttr.java44 if (byteBuffer == null || byteBuffer.remaining() < NLA_HEADERLEN) {
64 if (struct == null || byteBuffer.remaining() < struct.getAlignedLength()) {
103 if (byteBuffer == null || byteBuffer.remaining() != SizeOf.INT) {

Completed in 606 milliseconds

1234567