/frameworks/base/services/core/jni/ |
com_android_server_UsbHostManager.cpp | 68 int numBytes = usb_device_get_descriptors_length(device); 69 if (numBytes > 0) { 74 jbyteArray descriptorsArray = env->NewByteArray(numBytes); 76 env->SetByteArrayRegion(descriptorsArray, 0, numBytes, rawDescriptors);
|
/hardware/nxp/nfc/halimpl/tml/ |
phTmlNfc_i2c.cc | 230 int numBytes = nNbBytesToWrite; 245 numBytes = numWrote + FRAGMENTSIZE_MAX; 247 numBytes = nNbBytesToWrite; 250 ret = write((intptr_t)pDevHandle, pBuffer + numWrote, numBytes - numWrote);
|
/system/media/audio_utils/spdif/ |
AC3FrameScanner.h | 51 virtual uint16_t convertBytesToLengthCode(uint16_t numBytes) const;
|
/external/antlr/antlr-3.4/runtime/ObjC/Framework/ |
ANTLRStringStream.h | 50 + newANTLRStringStream:(char *)myData Count:(NSInteger)numBytes; 60 - (id) initWithData:(char *)myData Count:(NSInteger)numBytes;
|
/external/deqp/framework/platform/android/ |
tcuAndroidExecService.hpp | 57 virtual int readTestLog (deUint8* dst, int numBytes); 58 virtual int readInfoLog (deUint8* dst, int numBytes);
|
/frameworks/av/services/audioflinger/ |
SpdifStreamOut.cpp | 121 ssize_t SpdifStreamOut::write(const void* buffer, size_t numBytes) 124 return mSpdifEncoder.write(buffer, numBytes);
|
/external/lzma/CPP/Common/ |
UTFConvert.cpp | 29 #define _UTF8_HEAD_PARSE2(n) if (c < _UTF8_START((n) + 1)) { numBytes = (n); c -= _UTF8_START(n); }
53 unsigned numBytes;
68 while (--numBytes);
104 unsigned numBytes;
123 while (--numBytes);
125 if (numBytes != 0)
|
/external/libmojo/mojo/android/system/src/org/chromium/mojo/system/impl/ |
CoreImpl.java | 196 SharedBufferHandle.CreateOptions options, long numBytes) { 203 ResultAnd<Integer> result = nativeCreateSharedBuffer(optionsBuffer, numBytes); 331 int discardData(DataPipeConsumerHandleImpl handle, int numBytes, DataPipe.ReadFlags flags) { 332 ResultAnd<Integer> result = nativeReadData(handle.getMojoHandle(), null, numBytes, 363 DataPipeConsumerHandleImpl handle, int numBytes, DataPipe.ReadFlags flags) { 365 nativeBeginReadData(handle.getMojoHandle(), numBytes, flags.getFlags()); 395 DataPipeProducerHandleImpl handle, int numBytes, DataPipe.WriteFlags flags) { 397 nativeBeginWriteData(handle.getMojoHandle(), numBytes, flags.getFlags()); 434 ByteBuffer map(SharedBufferHandleImpl handle, long offset, long numBytes, MapFlags flags) { 436 nativeMap(handle.getMojoHandle(), offset, numBytes, flags.getFlags()) [all...] |
/development/samples/BrokenKeyDerivation/src/com/example/android/brokenkeyderivation/ |
BrokenKeyDerivationActivity.java | 270 int numBytes = 0; 271 while (numBytes < bytes.length) { 272 int n = fis.read(bytes, numBytes, bytes.length - numBytes); 276 numBytes += n;
|
/device/google/contexthub/lib/nanohub/ |
sha2.c | 121 void sha2processBytes(struct Sha2state *state, const void *bytes, uint32_t numBytes) 125 state->msgLen += numBytes; 126 while (numBytes) { 130 bytesToCopy = numBytes; 135 numBytes -= bytesToCopy;
|
/external/deqp/framework/qphelper/ |
qpXmlWriter.c | 256 deBool qpXmlWriter_writeBase64 (qpXmlWriter* writer, const deUint8* data, size_t numBytes) 272 DE_ASSERT(writer && data && (numBytes > 0)); 278 while (srcNdx < numBytes) 280 size_t numRead = (size_t)deMin32(3, (int)(numBytes - srcNdx)); 321 DE_ASSERT(srcNdx == numBytes);
|
/external/gptfdisk/ |
support.cc | 311 // Reverse the byte order of theValue; numBytes is number of bytes 312 void ReverseBytes(void* theValue, int numBytes) { 316 tempValue = new char [numBytes]; 318 memcpy(tempValue, theValue, numBytes); 319 for (i = 0; i < numBytes; i++) 320 ((char*) theValue)[i] = tempValue[numBytes - i - 1];
|
/external/icu/android_icu4j/src/main/java/android/icu/impl/ |
UPropertyAliases.java | 103 int numBytes=nextOffset-offset; 104 bytesTries=new byte[numBytes]; 110 numBytes=nextOffset-offset; 111 StringBuilder sb=new StringBuilder(numBytes); 112 for(int i=0; i<numBytes; ++i) {
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
UPropertyAliases.java | 102 int numBytes=nextOffset-offset; 103 bytesTries=new byte[numBytes]; 109 numBytes=nextOffset-offset; 110 StringBuilder sb=new StringBuilder(numBytes); 111 for(int i=0; i<numBytes; ++i) {
|
/frameworks/base/services/core/java/com/android/server/am/ |
NativeCrashListener.java | 175 static int readExactly(FileDescriptor fd, byte[] buffer, int offset, int numBytes) 178 while (numBytes > 0) { 179 int n = Os.read(fd, buffer, offset + totalRead, numBytes); 182 Slog.w(TAG, "Needed " + numBytes + " but saw " + n); 186 numBytes -= n;
|
/cts/tests/tests/security/src/android/security/cts/ |
PackageSignatureTest.java | 135 int numBytes = 0; 136 while ((numBytes = input.read(buffer)) != -1) { 137 output.write(buffer, 0, numBytes);
|
/external/archive-patcher/applier/src/main/java/com/google/archivepatcher/applier/bsdiff/ |
BsPatch.java | 252 * @param numBytes the number of bytes to read 257 final InputStream in, final byte[] destination, final int startAt, final int numBytes) 260 while (numRead < numBytes) { 261 int readNow = in.read(destination, startAt + numRead, numBytes - numRead);
|
/external/conscrypt/benchmark-base/src/main/java/org/conscrypt/ |
ServerEndpoint.java | 45 void processMessage(byte[] message, int numBytes, OutputStream os); 53 public void processMessage(byte[] message, int numBytes, OutputStream os) { 55 os.write(message, 0, numBytes);
|
/external/dng_sdk/source/ |
dng_memory_stream.cpp | 132 uint32 numBytes; 134 &numBytes)) 139 dng_memory_block **list = (dng_memory_block **) malloc (numBytes); 153 // overflow because the computation of numBytes above would fail
|
/frameworks/av/drm/libdrmframework/plugins/forward-lock/FwdLockEngine/include/ |
FwdLockEngine.h | 442 * @param numBytes Number of bytes to read. 450 int numBytes); 482 * @param numBytes Number of bytes to read. 491 ssize_t numBytes, 497 ssize_t numBytes,
|
/frameworks/av/drm/libdrmframework/plugins/forward-lock/internal-format/common/ |
FwdLockGlue.c | 126 int FwdLockGlue_GetRandomNumber(void *pBuffer, size_t numBytes) { 132 numBytesRead = read(fileDesc, pBuffer, numBytes); 135 return numBytesRead >= 0 && (size_t)numBytesRead == numBytes;
|
/frameworks/av/media/libaaudio/src/client/ |
AudioStreamInternalCapture.cpp | 175 int32_t numBytes = getBytesPerFrame() * framesToProcess; 180 memcpy(destination, wrappingBuffer.data[partIndex], numBytes); 199 destination += numBytes;
|
/prebuilts/ndk/r16/sources/third_party/shaderc/third_party/glslang/glslang/Include/ |
PoolAlloc.h | 175 // available, otherwise a properly aligned pointer to 'numBytes' of memory. 177 void* allocate(size_t numBytes); 220 void* initializeAllocation(tHeader* block, unsigned char* memory, size_t numBytes) { 221 new(memory) TAllocation(numBytes, memory, block->lastAllocation);
|
/external/deqp/framework/delibs/deutil/ |
deFile.c | 177 static deFileResult mapReadWriteResult (deInt64 numBytes) 179 if (numBytes > 0) 181 else if (numBytes == 0) 348 static deFileResult mapReadWriteResult (BOOL retVal, DWORD numBytes) 350 if (retVal && numBytes > 0) 352 else if (retVal && numBytes == 0)
|
/cts/common/device-side/util/src/com/android/compatibility/common/util/ |
FileUtils.java | 135 public static void createFile(File file, int numBytes) throws IOException { 140 byte[] buffer = new byte[numBytes];
|