Lines Matching refs:buffer
109 private static boolean addFontWeightStyle(Object family, ByteBuffer buffer, int ttcIndex,
113 family, buffer, ttcIndex, null /* variation axis */, weight, style);
139 ByteBuffer buffer = bufferCache.get(uri);
140 if (buffer == null) {
141 buffer = TypefaceCompatUtil.mmap(context, cancellationSignal, uri);
142 bufferCache.put(uri, buffer);
144 if (!addFontWeightStyle(family, buffer, font.getTtcIndex(), font.getWeight(),
158 final ByteBuffer buffer =
160 if (buffer == null) {
163 if (!addFontWeightStyle(family, buffer, e.getTtcIndex(), e.getWeight(), e.isItalic())) {