/frameworks/base/core/java/android/hardware/camera2/marshal/impl/ |
H A D | MarshalQueryableRggbChannelVector.java | 41 public void marshal(RggbChannelVector value, ByteBuffer buffer) { argument 43 buffer.putFloat(value.getComponent(i)); 48 public RggbChannelVector unmarshal(ByteBuffer buffer) { argument 49 float red = buffer.getFloat(); 50 float gEven = buffer.getFloat(); 51 float gOdd = buffer.getFloat(); 52 float blue = buffer.getFloat();
|
H A D | MarshalQueryableSize.java | 40 public void marshal(Size value, ByteBuffer buffer) { argument 41 buffer.putInt(value.getWidth()); 42 buffer.putInt(value.getHeight()); 46 public Size unmarshal(ByteBuffer buffer) { argument 47 int width = buffer.getInt(); 48 int height = buffer.getInt();
|
H A D | MarshalQueryableSizeF.java | 42 public void marshal(SizeF value, ByteBuffer buffer) { argument 43 buffer.putFloat(value.getWidth()); 44 buffer.putFloat(value.getHeight()); 48 public SizeF unmarshal(ByteBuffer buffer) { argument 49 float width = buffer.getFloat(); 50 float height = buffer.getFloat();
|
H A D | MarshalQueryableStreamConfiguration.java | 45 public void marshal(StreamConfiguration value, ByteBuffer buffer) { argument 46 buffer.putInt(value.getFormat()); 47 buffer.putInt(value.getWidth()); 48 buffer.putInt(value.getHeight()); 49 buffer.putInt(value.isInput() ? 1 : 0); 53 public StreamConfiguration unmarshal(ByteBuffer buffer) { argument 54 int format = buffer.getInt(); 55 int width = buffer.getInt(); 56 int height = buffer.getInt(); 57 boolean input = buffer [all...] |
H A D | MarshalQueryableStreamConfigurationDuration.java | 54 public void marshal(StreamConfigurationDuration value, ByteBuffer buffer) { argument 55 buffer.putLong(value.getFormat() & MASK_UNSIGNED_INT); // unsigned int -> long 56 buffer.putLong(value.getWidth()); 57 buffer.putLong(value.getHeight()); 58 buffer.putLong(value.getDuration()); 62 public StreamConfigurationDuration unmarshal(ByteBuffer buffer) { argument 63 int format = (int)buffer.getLong(); 64 int width = (int)buffer.getLong(); 65 int height = (int)buffer.getLong(); 66 long durationNs = buffer [all...] |
/frameworks/base/core/java/android/speech/ |
H A D | RecognitionListener.java | 51 * @param buffer a buffer containing a sequence of big-endian 16-bit integers representing a 54 void onBufferReceived(byte[] buffer); argument
|
/frameworks/base/core/java/android/util/ |
H A D | Base64OutputStream.java | 31 private byte[] buffer = null; field in class:Base64OutputStream 72 // bytes, we buffer up calls to write(int) in an internal 76 if (buffer == null) { 77 buffer = new byte[1024]; 79 if (bpos >= buffer.length) { 80 // internal buffer full; write it out. 81 internalWrite(buffer, 0, bpos, false); 84 buffer[bpos++] = (byte) b; 93 internalWrite(buffer, 0, bpos, false);
|
H A D | LogWriter.java | 48 * Same as above, but buffer is one of the LOG_ID_ constants from android.util.Log. 50 public LogWriter(int priority, String tag, int buffer) { argument 53 mBuffer = buffer;
|
/frameworks/base/core/jni/ |
H A D | android_os_UEventObserver.cpp | 44 static bool isMatch(const char* buffer, size_t length) { argument 50 // Consider all zero-delimited fields of the buffer. 51 const char* field = buffer; 52 const char* end = buffer + length + 1; 65 char buffer[1024]; local 68 int length = uevent_next_event(buffer, sizeof(buffer) - 1); 72 buffer[length] = '\0'; 74 ALOGV("Received uevent message: %s", buffer); 76 if (isMatch(buffer, lengt [all...] |
/frameworks/base/drm/java/android/drm/ |
H A D | DrmOutputStream.java | 93 public void write(byte[] buffer, int offset, int count) throws IOException { argument 94 Arrays.checkOffsetAndCount(buffer.length, offset, count); 97 if (count == buffer.length) { 98 exactBuffer = buffer; 101 System.arraycopy(buffer, offset, exactBuffer, 0, count);
|
/frameworks/base/libs/androidfw/tests/ |
H A D | ApkAssets_test.cpp | 139 std::string buffer; local 140 buffer.resize(length); 141 ASSERT_TRUE(base::ReadFully(fd.get(), &*buffer.begin(), length)); 143 EXPECT_THAT(buffer, StrEq("This should be uncompressed.\n\n"));
|
/frameworks/base/libs/hwui/ |
H A D | RenderBufferCache.h | 35 * Returns a buffer with the exact specified dimensions. If no suitable 36 * buffer can be found, a new one is created and returned. If creating a 37 * new buffer fails, NULL is returned. 39 * When a buffer is obtained from the cache, it is removed and the total 42 * The returned buffer is always allocated and bound 45 * @param format The desired render buffer format 46 * @param width The desired width of the buffer 47 * @param height The desired height of the buffer 52 * Adds the buffer to the cache. The buffer wil 82 RenderBufferEntry(RenderBuffer* buffer) argument [all...] |
/frameworks/base/libs/hwui/utils/ |
H A D | StringUtils.h | 65 LogcatStreamBuf buffer; member in class:android::uirenderer::LogcatStream 68 LogcatStream() : std::ostream(&buffer) {}
|
/frameworks/base/media/mca/filterfw/jni/ |
H A D | jni_native_buffer.cpp | 20 char* GetJBufferData(JNIEnv* env, jobject buffer, int* size) { argument 28 char* data = reinterpret_cast<char*>(env->GetLongField(buffer, ptr_field)); 30 *size = env->GetIntField(buffer, size_field); 39 bool AttachDataToJBuffer(JNIEnv* env, jobject buffer, char* data, int size) { argument 47 env->SetLongField(buffer, ptr_field, reinterpret_cast<jlong>(data)); 48 env->SetIntField(buffer, size_field, size); 71 // Get source buffer 79 // Attach it to new buffer
|
/frameworks/base/media/tests/NativeMidiDemo/jni/ |
H A D | messagequeue.cpp | 37 char buffer[1024]; local 39 snprintf(buffer, sizeof(buffer), "!!! Message too long: %zu bytes !!!", messageLen); 40 message = buffer; 66 // First we copy the portion of the message buffer into messageBufferCopy. If after finishing 67 // the copy we notice that the writer has mutated the portion of the buffer that we were 72 overrunMessage = "!!! Message buffer overrun !!!"; 93 overrunMessage = "!!! Message buffer overrun !!!"; 99 // Otherwise we ignore newLastWritePos, since we only have a copy of the buffer 108 // Skip to the beginning of the buffer [all...] |
/frameworks/base/obex/javax/obex/ |
H A D | PrivateOutputStream.java | 92 public void write(byte[] buffer) throws IOException { argument 93 write(buffer, 0, buffer.length); 97 public synchronized void write(byte[] buffer, int offset, int count) throws IOException { argument 101 if (buffer == null) { 102 throw new IOException("buffer is null"); 104 if ((offset | count) < 0 || count > buffer.length - offset) { 112 mArray.write(buffer, offset1, bufferLeft); 118 mArray.write(buffer, offset1, remainLength);
|
/frameworks/base/services/core/jni/ |
H A D | com_android_server_UsbDescriptorParser.cpp | 49 jbyte buffer[MAX_DESCRIPTORS_LENGTH]; local 51 int numBytes = read(fd, buffer, sizeof(buffer)); 57 env->SetByteArrayRegion(ret, 0, numBytes, buffer);
|
/frameworks/base/services/net/java/android/net/dhcp/ |
H A D | DhcpDeclinePacket.java | 55 void finishPacket(ByteBuffer buffer) { argument 56 addTlv(buffer, DHCP_MESSAGE_TYPE, DHCP_MESSAGE_TYPE_DECLINE); 57 addTlv(buffer, DHCP_CLIENT_IDENTIFIER, getClientId()); 59 addTlvEnd(buffer);
|
H A D | DhcpInformPacket.java | 55 void finishPacket(ByteBuffer buffer) { argument 56 addTlv(buffer, DHCP_MESSAGE_TYPE, DHCP_MESSAGE_TYPE_INFORM); 57 addTlv(buffer, DHCP_CLIENT_IDENTIFIER, getClientId()); 58 addCommonClientTlvs(buffer); 59 addTlv(buffer, DHCP_PARAMETER_LIST, mRequestedParams); 60 addTlvEnd(buffer);
|
H A D | DhcpNakPacket.java | 58 void finishPacket(ByteBuffer buffer) { argument 59 addTlv(buffer, DHCP_MESSAGE_TYPE, DHCP_MESSAGE_TYPE_NAK); 60 addTlv(buffer, DHCP_SERVER_IDENTIFIER, mServerIdentifier); 61 addTlv(buffer, DHCP_MESSAGE, mMessage); 62 addTlvEnd(buffer);
|
H A D | DhcpOfferPacket.java | 72 void finishPacket(ByteBuffer buffer) { argument 73 addTlv(buffer, DHCP_MESSAGE_TYPE, DHCP_MESSAGE_TYPE_OFFER); 74 addTlv(buffer, DHCP_SERVER_IDENTIFIER, mServerIdentifier); 75 addTlv(buffer, DHCP_LEASE_TIME, mLeaseTime); 79 addTlv(buffer, DHCP_RENEWAL_TIME, 83 addTlv(buffer, DHCP_SUBNET_MASK, mSubnetMask); 84 addTlv(buffer, DHCP_ROUTER, mGateways); 85 addTlv(buffer, DHCP_DOMAIN_NAME, mDomainName); 86 addTlv(buffer, DHCP_BROADCAST_ADDRESS, mBroadcastAddress); 87 addTlv(buffer, DHCP_DNS_SERVE [all...] |
/frameworks/base/tests/AccessoryDisplay/common/src/com/android/accessorydisplay/common/ |
H A D | BufferPool.java | 59 public void release(ByteBuffer buffer) { argument 61 buffer.clear(); 62 mBuffers[mAvailable++] = buffer; 67 public ByteBuffer grow(ByteBuffer buffer, int needed) { argument 68 int capacity = buffer.capacity(); 70 final ByteBuffer oldBuffer = buffer; 72 buffer = ByteBuffer.allocate(capacity); 74 buffer.put(oldBuffer); 76 return buffer; 86 + " is larger than maximum buffer siz [all...] |
/frameworks/base/tests/AccessoryDisplay/sink/src/com/android/accessorydisplay/sink/ |
H A D | UsbAccessoryBulkTransport.java | 55 protected int ioRead(byte[] buffer, int offset, int count) throws IOException { argument 59 return mConnection.bulkTransfer(mBulkInEndpoint, buffer, offset, count, -1); 63 protected void ioWrite(byte[] buffer, int offset, int count) throws IOException { argument 68 buffer, offset, count, TIMEOUT_MILLIS);
|
/frameworks/compile/mclinker/lib/Target/Mips/ |
H A D | MipsGOTPLT.cpp | 31 uint32_t* buffer = reinterpret_cast<uint32_t*>(pRegion.begin()); local 34 for (iterator it = begin(), ie = end(); it != ie; ++it, ++buffer) { 36 *buffer = static_cast<uint32_t>(got->getValue());
|
/frameworks/compile/mclinker/unittests/ |
H A D | LEB128Test.cpp | 42 leb128::ByteType buffer[2]; local 46 result = buffer; 48 ASSERT_EQ(buffer[0], 2); 49 ASSERT_EQ(result, buffer + 1); 52 result = buffer; 54 ASSERT_EQ(buffer[0], 127); 55 ASSERT_EQ(result, buffer + 1); 58 result = buffer; 60 ASSERT_EQ(buffer[0], 0 + 0x80); 61 ASSERT_EQ(buffer[ 88 leb128::ByteType buffer[2]; local 134 leb128::ByteType buffer[2]; local 194 leb128::ByteType buffer[2]; local 229 leb128::ByteType buffer[2]; local 295 leb128::ByteType buffer[5]; local 412 leb128::ByteType buffer[5]; local 454 leb128::ByteType buffer[9]; local 494 leb128::ByteType buffer[5]; local 510 char buffer[5]; local [all...] |