1 /* 2 * Copyright (C) 2014 The Android Open Source Project 3 * Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved. 4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 5 * 6 * This code is free software; you can redistribute it and/or modify it 7 * under the terms of the GNU General Public License version 2 only, as 8 * published by the Free Software Foundation. Oracle designates this 9 * particular file as subject to the "Classpath" exception as provided 10 * by Oracle in the LICENSE file that accompanied this code. 11 * 12 * This code is distributed in the hope that it will be useful, but WITHOUT 13 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 14 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 15 * version 2 for more details (a copy is included in the LICENSE file that 16 * accompanied this code). 17 * 18 * You should have received a copy of the GNU General Public License version 19 * 2 along with this work; if not, write to the Free Software Foundation, 20 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 21 * 22 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 23 * or visit www.oracle.com if you need additional information or have any 24 * questions. 25 */ 26 27 package java.nio; 28 29 import android.compat.annotation.UnsupportedAppUsage; 30 31 @SuppressWarnings({"unchecked", "deprecation", "all"}) 32 public class DirectByteBuffer extends java.nio.MappedByteBuffer implements sun.nio.ch.DirectBuffer { 33 DirectByteBuffer(int capacity, java.nio.DirectByteBuffer.MemoryRef memoryRef)34 DirectByteBuffer(int capacity, java.nio.DirectByteBuffer.MemoryRef memoryRef) { 35 super(0, 0, 0, 0); 36 throw new RuntimeException("Stub!"); 37 } 38 39 @UnsupportedAppUsage(maxTargetSdk = 30, trackingBug = 170729553) DirectByteBuffer(long addr, int cap)40 private DirectByteBuffer(long addr, int cap) { 41 super(0, 0, 0, 0); 42 throw new RuntimeException("Stub!"); 43 } 44 DirectByteBuffer( int cap, long addr, java.io.FileDescriptor fd, java.lang.Runnable unmapper, boolean isReadOnly)45 public DirectByteBuffer( 46 int cap, 47 long addr, 48 java.io.FileDescriptor fd, 49 java.lang.Runnable unmapper, 50 boolean isReadOnly) { 51 super(0, 0, 0, 0); 52 throw new RuntimeException("Stub!"); 53 } 54 DirectByteBuffer( java.nio.DirectByteBuffer.MemoryRef memoryRef, int mark, int pos, int lim, int cap, int off)55 DirectByteBuffer( 56 java.nio.DirectByteBuffer.MemoryRef memoryRef, 57 int mark, 58 int pos, 59 int lim, 60 int cap, 61 int off) { 62 super(0, 0, 0, 0); 63 throw new RuntimeException("Stub!"); 64 } 65 DirectByteBuffer( java.nio.DirectByteBuffer.MemoryRef memoryRef, int mark, int pos, int lim, int cap, int off, boolean isReadOnly)66 DirectByteBuffer( 67 java.nio.DirectByteBuffer.MemoryRef memoryRef, 68 int mark, 69 int pos, 70 int lim, 71 int cap, 72 int off, 73 boolean isReadOnly) { 74 super(0, 0, 0, 0); 75 throw new RuntimeException("Stub!"); 76 } 77 attachment()78 public final java.lang.Object attachment() { 79 throw new RuntimeException("Stub!"); 80 } 81 82 @UnsupportedAppUsage cleaner()83 public final sun.misc.Cleaner cleaner() { 84 throw new RuntimeException("Stub!"); 85 } 86 87 @Override slice()88 public final java.nio.MappedByteBuffer slice() { 89 throw new RuntimeException("Stub!"); 90 } 91 92 @Override slice(int index, int length)93 public final java.nio.MappedByteBuffer slice(int index, int length) { 94 throw new RuntimeException("Stub!"); 95 } 96 97 @Override duplicate()98 public final java.nio.MappedByteBuffer duplicate() { 99 throw new RuntimeException("Stub!"); 100 } 101 asReadOnlyBuffer()102 public final java.nio.ByteBuffer asReadOnlyBuffer() { 103 throw new RuntimeException("Stub!"); 104 } 105 address()106 public final long address() { 107 throw new RuntimeException("Stub!"); 108 } 109 ix(int i)110 private long ix(int i) { 111 throw new RuntimeException("Stub!"); 112 } 113 get(long a)114 private byte get(long a) { 115 throw new RuntimeException("Stub!"); 116 } 117 get()118 public final byte get() { 119 throw new RuntimeException("Stub!"); 120 } 121 get(int i)122 public final byte get(int i) { 123 throw new RuntimeException("Stub!"); 124 } 125 get(byte[] dst, int dstOffset, int length)126 public java.nio.ByteBuffer get(byte[] dst, int dstOffset, int length) { 127 throw new RuntimeException("Stub!"); 128 } 129 put(long a, byte x)130 private java.nio.ByteBuffer put(long a, byte x) { 131 throw new RuntimeException("Stub!"); 132 } 133 put(java.nio.ByteBuffer src)134 public java.nio.ByteBuffer put(java.nio.ByteBuffer src) { 135 throw new RuntimeException("Stub!"); 136 } 137 put(byte x)138 public final java.nio.ByteBuffer put(byte x) { 139 throw new RuntimeException("Stub!"); 140 } 141 put(int i, byte x)142 public final java.nio.ByteBuffer put(int i, byte x) { 143 throw new RuntimeException("Stub!"); 144 } 145 put(byte[] src, int srcOffset, int length)146 public java.nio.ByteBuffer put(byte[] src, int srcOffset, int length) { 147 throw new RuntimeException("Stub!"); 148 } 149 compact()150 public final java.nio.ByteBuffer compact() { 151 throw new RuntimeException("Stub!"); 152 } 153 isDirect()154 public final boolean isDirect() { 155 throw new RuntimeException("Stub!"); 156 } 157 isReadOnly()158 public final boolean isReadOnly() { 159 throw new RuntimeException("Stub!"); 160 } 161 _get(int i)162 final byte _get(int i) { 163 throw new RuntimeException("Stub!"); 164 } 165 _put(int i, byte b)166 final void _put(int i, byte b) { 167 throw new RuntimeException("Stub!"); 168 } 169 getChar()170 public final char getChar() { 171 throw new RuntimeException("Stub!"); 172 } 173 getChar(int i)174 public final char getChar(int i) { 175 throw new RuntimeException("Stub!"); 176 } 177 getCharUnchecked(int i)178 char getCharUnchecked(int i) { 179 throw new RuntimeException("Stub!"); 180 } 181 getUnchecked(int pos, char[] dst, int dstOffset, int length)182 void getUnchecked(int pos, char[] dst, int dstOffset, int length) { 183 throw new RuntimeException("Stub!"); 184 } 185 putChar(long a, char x)186 private java.nio.ByteBuffer putChar(long a, char x) { 187 throw new RuntimeException("Stub!"); 188 } 189 putChar(char x)190 public final java.nio.ByteBuffer putChar(char x) { 191 throw new RuntimeException("Stub!"); 192 } 193 putChar(int i, char x)194 public final java.nio.ByteBuffer putChar(int i, char x) { 195 throw new RuntimeException("Stub!"); 196 } 197 putCharUnchecked(int i, char x)198 void putCharUnchecked(int i, char x) { 199 throw new RuntimeException("Stub!"); 200 } 201 putUnchecked(int pos, char[] src, int srcOffset, int length)202 void putUnchecked(int pos, char[] src, int srcOffset, int length) { 203 throw new RuntimeException("Stub!"); 204 } 205 asCharBuffer()206 public final java.nio.CharBuffer asCharBuffer() { 207 throw new RuntimeException("Stub!"); 208 } 209 getShort(long a)210 private short getShort(long a) { 211 throw new RuntimeException("Stub!"); 212 } 213 getShort()214 public final short getShort() { 215 throw new RuntimeException("Stub!"); 216 } 217 getShort(int i)218 public final short getShort(int i) { 219 throw new RuntimeException("Stub!"); 220 } 221 getShortUnchecked(int i)222 short getShortUnchecked(int i) { 223 throw new RuntimeException("Stub!"); 224 } 225 getUnchecked(int pos, short[] dst, int dstOffset, int length)226 void getUnchecked(int pos, short[] dst, int dstOffset, int length) { 227 throw new RuntimeException("Stub!"); 228 } 229 putShort(long a, short x)230 private java.nio.ByteBuffer putShort(long a, short x) { 231 throw new RuntimeException("Stub!"); 232 } 233 putShort(short x)234 public final java.nio.ByteBuffer putShort(short x) { 235 throw new RuntimeException("Stub!"); 236 } 237 putShort(int i, short x)238 public final java.nio.ByteBuffer putShort(int i, short x) { 239 throw new RuntimeException("Stub!"); 240 } 241 putShortUnchecked(int i, short x)242 void putShortUnchecked(int i, short x) { 243 throw new RuntimeException("Stub!"); 244 } 245 putUnchecked(int pos, short[] src, int srcOffset, int length)246 void putUnchecked(int pos, short[] src, int srcOffset, int length) { 247 throw new RuntimeException("Stub!"); 248 } 249 asShortBuffer()250 public final java.nio.ShortBuffer asShortBuffer() { 251 throw new RuntimeException("Stub!"); 252 } 253 getInt(long a)254 private int getInt(long a) { 255 throw new RuntimeException("Stub!"); 256 } 257 getInt()258 public int getInt() { 259 throw new RuntimeException("Stub!"); 260 } 261 getInt(int i)262 public int getInt(int i) { 263 throw new RuntimeException("Stub!"); 264 } 265 getIntUnchecked(int i)266 final int getIntUnchecked(int i) { 267 throw new RuntimeException("Stub!"); 268 } 269 getUnchecked(int pos, int[] dst, int dstOffset, int length)270 final void getUnchecked(int pos, int[] dst, int dstOffset, int length) { 271 throw new RuntimeException("Stub!"); 272 } 273 putInt(long a, int x)274 private java.nio.ByteBuffer putInt(long a, int x) { 275 throw new RuntimeException("Stub!"); 276 } 277 putInt(int x)278 public final java.nio.ByteBuffer putInt(int x) { 279 throw new RuntimeException("Stub!"); 280 } 281 putInt(int i, int x)282 public final java.nio.ByteBuffer putInt(int i, int x) { 283 throw new RuntimeException("Stub!"); 284 } 285 putIntUnchecked(int i, int x)286 final void putIntUnchecked(int i, int x) { 287 throw new RuntimeException("Stub!"); 288 } 289 putUnchecked(int pos, int[] src, int srcOffset, int length)290 final void putUnchecked(int pos, int[] src, int srcOffset, int length) { 291 throw new RuntimeException("Stub!"); 292 } 293 asIntBuffer()294 public final java.nio.IntBuffer asIntBuffer() { 295 throw new RuntimeException("Stub!"); 296 } 297 getLong(long a)298 private long getLong(long a) { 299 throw new RuntimeException("Stub!"); 300 } 301 getLong()302 public final long getLong() { 303 throw new RuntimeException("Stub!"); 304 } 305 getLong(int i)306 public final long getLong(int i) { 307 throw new RuntimeException("Stub!"); 308 } 309 getLongUnchecked(int i)310 final long getLongUnchecked(int i) { 311 throw new RuntimeException("Stub!"); 312 } 313 getUnchecked(int pos, long[] dst, int dstOffset, int length)314 final void getUnchecked(int pos, long[] dst, int dstOffset, int length) { 315 throw new RuntimeException("Stub!"); 316 } 317 putLong(long a, long x)318 private java.nio.ByteBuffer putLong(long a, long x) { 319 throw new RuntimeException("Stub!"); 320 } 321 putLong(long x)322 public final java.nio.ByteBuffer putLong(long x) { 323 throw new RuntimeException("Stub!"); 324 } 325 putLong(int i, long x)326 public final java.nio.ByteBuffer putLong(int i, long x) { 327 throw new RuntimeException("Stub!"); 328 } 329 putLongUnchecked(int i, long x)330 final void putLongUnchecked(int i, long x) { 331 throw new RuntimeException("Stub!"); 332 } 333 putUnchecked(int pos, long[] src, int srcOffset, int length)334 final void putUnchecked(int pos, long[] src, int srcOffset, int length) { 335 throw new RuntimeException("Stub!"); 336 } 337 asLongBuffer()338 public final java.nio.LongBuffer asLongBuffer() { 339 throw new RuntimeException("Stub!"); 340 } 341 getFloat(long a)342 private float getFloat(long a) { 343 throw new RuntimeException("Stub!"); 344 } 345 getFloat()346 public final float getFloat() { 347 throw new RuntimeException("Stub!"); 348 } 349 getFloat(int i)350 public final float getFloat(int i) { 351 throw new RuntimeException("Stub!"); 352 } 353 getFloatUnchecked(int i)354 final float getFloatUnchecked(int i) { 355 throw new RuntimeException("Stub!"); 356 } 357 getUnchecked(int pos, float[] dst, int dstOffset, int length)358 final void getUnchecked(int pos, float[] dst, int dstOffset, int length) { 359 throw new RuntimeException("Stub!"); 360 } 361 putFloat(long a, float x)362 private java.nio.ByteBuffer putFloat(long a, float x) { 363 throw new RuntimeException("Stub!"); 364 } 365 putFloat(float x)366 public final java.nio.ByteBuffer putFloat(float x) { 367 throw new RuntimeException("Stub!"); 368 } 369 putFloat(int i, float x)370 public final java.nio.ByteBuffer putFloat(int i, float x) { 371 throw new RuntimeException("Stub!"); 372 } 373 putFloatUnchecked(int i, float x)374 final void putFloatUnchecked(int i, float x) { 375 throw new RuntimeException("Stub!"); 376 } 377 putUnchecked(int pos, float[] src, int srcOffset, int length)378 final void putUnchecked(int pos, float[] src, int srcOffset, int length) { 379 throw new RuntimeException("Stub!"); 380 } 381 asFloatBuffer()382 public final java.nio.FloatBuffer asFloatBuffer() { 383 throw new RuntimeException("Stub!"); 384 } 385 getDouble(long a)386 private double getDouble(long a) { 387 throw new RuntimeException("Stub!"); 388 } 389 getDouble()390 public final double getDouble() { 391 throw new RuntimeException("Stub!"); 392 } 393 getDouble(int i)394 public final double getDouble(int i) { 395 throw new RuntimeException("Stub!"); 396 } 397 getDoubleUnchecked(int i)398 final double getDoubleUnchecked(int i) { 399 throw new RuntimeException("Stub!"); 400 } 401 getUnchecked(int pos, double[] dst, int dstOffset, int length)402 final void getUnchecked(int pos, double[] dst, int dstOffset, int length) { 403 throw new RuntimeException("Stub!"); 404 } 405 putDouble(long a, double x)406 private java.nio.ByteBuffer putDouble(long a, double x) { 407 throw new RuntimeException("Stub!"); 408 } 409 putDouble(double x)410 public final java.nio.ByteBuffer putDouble(double x) { 411 throw new RuntimeException("Stub!"); 412 } 413 putDouble(int i, double x)414 public final java.nio.ByteBuffer putDouble(int i, double x) { 415 throw new RuntimeException("Stub!"); 416 } 417 putDoubleUnchecked(int i, double x)418 final void putDoubleUnchecked(int i, double x) { 419 throw new RuntimeException("Stub!"); 420 } 421 putUnchecked(int pos, double[] src, int srcOffset, int length)422 final void putUnchecked(int pos, double[] src, int srcOffset, int length) { 423 throw new RuntimeException("Stub!"); 424 } 425 asDoubleBuffer()426 public final java.nio.DoubleBuffer asDoubleBuffer() { 427 throw new RuntimeException("Stub!"); 428 } 429 isAccessible()430 public final boolean isAccessible() { 431 throw new RuntimeException("Stub!"); 432 } 433 setAccessible(boolean value)434 public final void setAccessible(boolean value) { 435 throw new RuntimeException("Stub!"); 436 } 437 438 final sun.misc.Cleaner cleaner; 439 440 { 441 cleaner = null; 442 } 443 444 final java.nio.DirectByteBuffer.MemoryRef memoryRef; 445 446 { 447 memoryRef = null; 448 } 449 450 @SuppressWarnings({"unchecked", "deprecation", "all"}) 451 static final class MemoryRef { 452 MemoryRef(int capacity)453 MemoryRef(int capacity) { 454 throw new RuntimeException("Stub!"); 455 } 456 MemoryRef(long allocatedAddress, java.lang.Object originalBufferObject)457 MemoryRef(long allocatedAddress, java.lang.Object originalBufferObject) { 458 throw new RuntimeException("Stub!"); 459 } 460 free()461 void free() { 462 throw new RuntimeException("Stub!"); 463 } 464 465 long allocatedAddress; 466 467 byte[] buffer; 468 469 boolean isAccessible; 470 471 boolean isFreed; 472 473 final int offset; 474 475 { 476 offset = 0; 477 } 478 479 final java.lang.Object originalBufferObject; 480 481 { 482 originalBufferObject = null; 483 } 484 } 485 } 486