Home
last modified time | relevance | path

Searched refs:buffer (Results 1 – 25 of 367) sorted by relevance

12345678910>>...15

/developers/build/prebuilts/gradle/Camera2Basic/kotlinApp/Application/src/main/java/com/example/android/camera2basic/
DImageSaver.kt27 val buffer = image.planes[0].buffer in run() constant
28 val bytes = ByteArray(buffer.remaining()) in run()
29 buffer.get(bytes) in run()
/developers/samples/android/media/Camera2Basic/kotlinApp/Application/src/main/java/com/example/android/camera2basic/
DImageSaver.kt27 val buffer = image.planes[0].buffer in run() constant
28 val bytes = ByteArray(buffer.remaining()) in run()
29 buffer.get(bytes) in run()
/developers/build/prebuilts/gradle/Quiz/Application/src/main/java/com/example/android/wearable/quiz/
DJsonUtils.java41 byte[] buffer = new byte[size]; in loadJsonFile()
42 is.read(buffer); in loadJsonFile()
44 String jsonString = new String(buffer); in loadJsonFile()
/developers/samples/android/deprecated/wearable/wear/Quiz/Application/src/main/java/com/example/android/wearable/quiz/
DJsonUtils.java41 byte[] buffer = new byte[size]; in loadJsonFile()
42 is.read(buffer); in loadJsonFile()
44 String jsonString = new String(buffer); in loadJsonFile()
/developers/samples/android/common/src/java/com/example/android/common/media/
DMediaCodecWrapper.java52 void outputSample(MediaCodecWrapper sender, MediaCodec.BufferInfo info, ByteBuffer buffer); in outputSample() argument
193 ByteBuffer buffer = mInputBuffers[index]; in writeSample() local
196 if (size > buffer.capacity()) { in writeSample()
201 buffer.capacity())); in writeSample()
204 buffer.clear(); in writeSample()
205 buffer.put(input); in writeSample()
247 ByteBuffer buffer = mInputBuffers[index]; in writeSample() local
250 int size = extractor.readSampleData(buffer, 0); in writeSample()
/developers/build/prebuilts/gradle/MediaRecorder/Application/src/main/java/com/example/android/common/media/
DMediaCodecWrapper.java52 void outputSample(MediaCodecWrapper sender, MediaCodec.BufferInfo info, ByteBuffer buffer); in outputSample() argument
193 ByteBuffer buffer = mInputBuffers[index]; in writeSample() local
196 if (size > buffer.capacity()) { in writeSample()
201 buffer.capacity())); in writeSample()
204 buffer.clear(); in writeSample()
205 buffer.put(input); in writeSample()
247 ByteBuffer buffer = mInputBuffers[index]; in writeSample() local
250 int size = extractor.readSampleData(buffer, 0); in writeSample()
/developers/build/prebuilts/gradle/BasicMediaDecoder/Application/src/main/java/com/example/android/common/media/
DMediaCodecWrapper.java52 void outputSample(MediaCodecWrapper sender, MediaCodec.BufferInfo info, ByteBuffer buffer); in outputSample() argument
193 ByteBuffer buffer = mInputBuffers[index]; in writeSample() local
196 if (size > buffer.capacity()) { in writeSample()
201 buffer.capacity())); in writeSample()
204 buffer.clear(); in writeSample()
205 buffer.put(input); in writeSample()
247 ByteBuffer buffer = mInputBuffers[index]; in writeSample() local
250 int size = extractor.readSampleData(buffer, 0); in writeSample()
/developers/samples/android/deprecated/wearable/wear/RecipeAssistant/Application/src/main/java/com/example/android/wearable/recipeassistant/
DAssetUtils.java34 byte[] buffer = null; in loadAsset()
38 buffer = new byte[size]; in loadAsset()
39 is.read(buffer); in loadAsset()
44 return buffer; in loadAsset()
/developers/build/prebuilts/gradle/RecipeAssistant/Application/src/main/java/com/example/android/wearable/recipeassistant/
DAssetUtils.java34 byte[] buffer = null; in loadAsset()
38 buffer = new byte[size]; in loadAsset()
39 is.read(buffer); in loadAsset()
44 return buffer; in loadAsset()
/developers/build/prebuilts/gradle/WearSpeakerSample/wear/src/main/java/com/example/android/wearable/speaker/
DSoundRecorder.java99 byte[] buffer = new byte[BUFFER_SIZE]; in startRecording()
102 int read = mAudioRecord.read(buffer, 0, buffer.length); in startRecording()
103 bufferedOutputStream.write(buffer, 0, read); in startRecording()
193 byte[] buffer = new byte[intSize * 2]; in startPlay()
202 while (!isCancelled() && (read = bis.read(buffer, 0, buffer.length)) > 0) { in startPlay()
203 mAudioTrack.write(buffer, 0, read); in startPlay()
/developers/samples/android/wearable/wear/WearSpeakerSample/wear/src/main/java/com/example/android/wearable/speaker/
DSoundRecorder.java179 byte[] buffer = new byte[mIntSize * 2]; in doInBackground()
188 while (!isCancelled() && (read = bis.read(buffer, 0, buffer.length)) > 0) { in doInBackground()
189 mAudioTrack.write(buffer, 0, read); in doInBackground()
269 byte[] buffer = new byte[BUFFER_SIZE]; in doInBackground()
272 int read = mAudioRecord.read(buffer, 0, buffer.length); in doInBackground()
273 bufferedOutputStream.write(buffer, 0, read); in doInBackground()
/developers/build/prebuilts/gradle/PdfRendererBasic/kotlinApp/Application/src/main/java/com/example/android/pdfrendererbasic/
DPdfRendererBasicFragment.kt157 val buffer = ByteArray(1024) in openRenderer() constant
158 var size = asset.read(buffer) in openRenderer()
160 output.write(buffer, 0, size) in openRenderer()
161 size = asset.read(buffer) in openRenderer()
/developers/build/prebuilts/gradle/MidiSynth/Application/src/main/java/com/example/android/common/midi/synth/
DSimpleAudioOutput.java76 public int write(float[] buffer, int offset, int length) { in write() argument
77 return mAudioTrack.write(buffer, offset, length, in write()
/developers/build/prebuilts/gradle/MidiScope/Application/src/main/java/com/example/android/common/midi/synth/
DSimpleAudioOutput.java76 public int write(float[] buffer, int offset, int length) { in write() argument
77 return mAudioTrack.write(buffer, offset, length, in write()
/developers/samples/android/common/src/java/com/example/android/common/midi/synth/
DSimpleAudioOutput.java76 public int write(float[] buffer, int offset, int length) { in write() argument
77 return mAudioTrack.write(buffer, offset, length, in write()
/developers/samples/android/connectivity/bluetooth/BluetoothChat/Application/src/main/java/com/example/android/bluetoothchat/
DBluetoothChatService.java487 byte[] buffer = new byte[1024]; in run()
494 bytes = mmInStream.read(buffer); in run()
497 mHandler.obtainMessage(Constants.MESSAGE_READ, bytes, -1, buffer) in run()
512 public void write(byte[] buffer) { in write() argument
514 mmOutStream.write(buffer); in write()
517 mHandler.obtainMessage(Constants.MESSAGE_WRITE, -1, -1, buffer) in write()
/developers/build/prebuilts/gradle/BluetoothChat/Application/src/main/java/com/example/android/bluetoothchat/
DBluetoothChatService.java487 byte[] buffer = new byte[1024]; in run()
494 bytes = mmInStream.read(buffer); in run()
497 mHandler.obtainMessage(Constants.MESSAGE_READ, bytes, -1, buffer) in run()
512 public void write(byte[] buffer) { in write() argument
514 mmOutStream.write(buffer); in write()
517 mHandler.obtainMessage(Constants.MESSAGE_WRITE, -1, -1, buffer) in write()
/developers/samples/android/content/webview/PermissionRequest/Application/src/main/java/com/example/android/permissionrequest/
DSimpleWebServer.java190 byte[] buffer = new byte[1024]; in loadContent()
192 while (-1 != (size = input.read(buffer))) { in loadContent()
193 output.write(buffer, 0, size); in loadContent()
/developers/build/prebuilts/gradle/PermissionRequest/Application/src/main/java/com/example/android/permissionrequest/
DSimpleWebServer.java190 byte[] buffer = new byte[1024]; in loadContent()
192 while (-1 != (size = input.read(buffer))) { in loadContent()
193 output.write(buffer, 0, size); in loadContent()
/developers/samples/android/connectivity/network/NetworkConnect/Application/src/main/java/com/example/android/networkconnect/
DNetworkFragment.java269 char[] buffer = new char[maxLength]; in readStream() local
277 readSize = reader.read(buffer, numChars, buffer.length - numChars); in readStream()
284 result = new String(buffer, 0, numChars); in readStream()
/developers/samples/android/content/documentsUi/ContentProviderPaging/kotlinApp/app/src/main/kotlin/com.example.android.contentproviderpaging/
DImageProvider.kt180 val buffer = ByteArray(1024) in writeFileToInternalStorage() constant
185 val size = ins.read(buffer, 0, 1024) in writeFileToInternalStorage()
187 fos.write(buffer, 0, size) in writeFileToInternalStorage()
190 fos.write(buffer) in writeFileToInternalStorage()
/developers/build/prebuilts/gradle/ContentProviderPaging/kotlinApp/app/src/main/kotlin/com.example.android.contentproviderpaging/
DImageProvider.kt180 val buffer = ByteArray(1024) in writeFileToInternalStorage() constant
185 val size = ins.read(buffer, 0, 1024) in writeFileToInternalStorage()
187 fos.write(buffer, 0, size) in writeFileToInternalStorage()
190 fos.write(buffer) in writeFileToInternalStorage()
/developers/build/prebuilts/gradle/NetworkConnect/Application/src/main/java/com/example/android/networkconnect/
DNetworkFragment.java269 char[] buffer = new char[maxLength]; in readStream() local
277 readSize = reader.read(buffer, numChars, buffer.length - numChars); in readStream()
284 result = new String(buffer, 0, numChars); in readStream()
/developers/build/prebuilts/gradle/PdfRendererBasic/Application/src/main/java/com/example/android/pdfrendererbasic/
DPdfRendererBasicFragment.java158 final byte[] buffer = new byte[1024]; in openRenderer()
160 while ((size = asset.read(buffer)) != -1) { in openRenderer()
161 output.write(buffer, 0, size); in openRenderer()
/developers/samples/android/ui/graphics/PdfRendererBasic/Application/src/main/java/com/example/android/pdfrendererbasic/
DPdfRendererBasicViewModel.java145 final byte[] buffer = new byte[1024]; in openPdfRenderer()
147 while ((size = asset.read(buffer)) != -1) { in openPdfRenderer()
148 output.write(buffer, 0, size); in openPdfRenderer()

12345678910>>...15