Home
last modified time | relevance | path

Searched refs:fileChannel (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/core/java/android/speech/tts/
DFileSynthesisCallback.java57 FileSynthesisCallback(@NonNull FileChannel fileChannel, in FileSynthesisCallback() argument
60 mFileChannel = fileChannel; in FileSynthesisCallback()
116 FileChannel fileChannel = null; in start() local
136 fileChannel = mFileChannel; in start()
140 fileChannel.write(ByteBuffer.allocate(WAV_HEADER_LENGTH)); in start()
158 FileChannel fileChannel = null; in audioAvailable() local
177 fileChannel = mFileChannel; in audioAvailable()
185 fileChannel.write(ByteBuffer.wrap(buffer, offset, length)); in audioAvailable()
200 FileChannel fileChannel = null; in done() local
226 fileChannel = mFileChannel; in done()
[all …]
/frameworks/base/graphics/java/android/graphics/
DFontFamily.java138 FileChannel fileChannel = file.getChannel(); in addFont() local
139 long fontSize = fileChannel.size(); in addFont()
140 ByteBuffer fontBuffer = fileChannel.map(FileChannel.MapMode.READ_ONLY, 0, fontSize); in addFont()
/frameworks/base/graphics/java/android/graphics/fonts/
DSystemFonts.java104 final FileChannel fileChannel = file.getChannel(); in mmap() local
105 final long fontSize = fileChannel.size(); in mmap()
106 return fileChannel.map(FileChannel.MapMode.READ_ONLY, 0, fontSize); in mmap()
/frameworks/base/core/java/android/provider/
DFontsContract.java716 final FileChannel fileChannel = fis.getChannel(); in prepareFontData() local
717 final long size = fileChannel.size(); in prepareFontData()
718 buffer = fileChannel.map(FileChannel.MapMode.READ_ONLY, 0, size); in prepareFontData()