Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/speech/tts/
DFileSynthesisCallback.java58 FileSynthesisCallback(@NonNull FileChannel fileChannel, in FileSynthesisCallback() argument
61 mFileChannel = fileChannel; in FileSynthesisCallback()
117 FileChannel fileChannel = null; in start() local
137 fileChannel = mFileChannel; in start()
141 fileChannel.write(ByteBuffer.allocate(WAV_HEADER_LENGTH)); in start()
159 FileChannel fileChannel = null; in audioAvailable() local
178 fileChannel = mFileChannel; in audioAvailable()
186 fileChannel.write(ByteBuffer.wrap(buffer, offset, length)); in audioAvailable()
201 FileChannel fileChannel = null; in done() local
227 fileChannel = mFileChannel; in done()
[all …]
/frameworks/layoutlib/bridge/src/android/graphics/fonts/
DSystemFonts_Delegate.java79 final FileChannel fileChannel = file.getChannel(); in mmap() local
80 final int size = (int) fileChannel.size(); in mmap()
84 fileChannel.read(buffer); in mmap()
/frameworks/base/services/core/java/com/android/server/graphics/fonts/
DOtfFontFileParser.java120 FileChannel fileChannel = in.getChannel(); in mmap() local
121 return fileChannel.map(FileChannel.MapMode.READ_ONLY, 0, fileChannel.size()); in mmap()
/frameworks/base/graphics/java/android/graphics/
DFontFamily.java149 FileChannel fileChannel = file.getChannel(); in addFont() local
150 long fontSize = fileChannel.size(); in addFont()
151 ByteBuffer fontBuffer = fileChannel.map(FileChannel.MapMode.READ_ONLY, 0, fontSize); in addFont()
/frameworks/base/graphics/java/android/graphics/fonts/
DSystemFonts.java95 final FileChannel fileChannel = file.getChannel(); in mmap() local
96 final long fontSize = fileChannel.size(); in mmap()
97 return fileChannel.map(FileChannel.MapMode.READ_ONLY, 0, fontSize); in mmap()
/frameworks/base/core/java/android/provider/
DFontsContract.java747 final FileChannel fileChannel = fis.getChannel(); in prepareFontData() local
748 final long size = fileChannel.size(); in prepareFontData()
749 buffer = fileChannel.map(FileChannel.MapMode.READ_ONLY, 0, size); in prepareFontData()