Lines Matching refs:usage
32 // Note: keep usage flags in sync with GraphicBuffer.h and gralloc.h
75 * @param usage Hint indicating how the buffer will be used
79 public static GraphicBuffer create(int width, int height, int format, int usage) {
80 long nativeObject = nCreateGraphicBuffer(width, height, format, usage);
82 return new GraphicBuffer(width, height, format, usage, nativeObject);
90 private GraphicBuffer(int width, int height, int format, int usage, long nativeObject) {
94 mUsage = usage;
121 * Returns the usage hint set on this buffer.
273 int usage = in.readInt();
276 return new GraphicBuffer(width, height, format, usage, nativeObject);
286 private static native long nCreateGraphicBuffer(int width, int height, int format, int usage);