Loading api/current.txt +1 −0 Original line number Diff line number Diff line Loading @@ -19485,6 +19485,7 @@ package android.renderscript { public class FieldPacker { ctor public FieldPacker(int); ctor public FieldPacker(byte[]); method public void addBoolean(boolean); method public void addF32(float); method public void addF32(android.renderscript.Float2); graphics/java/android/renderscript/FieldPacker.java +7 −1 Original line number Diff line number Diff line /* * Copyright (C) 2008 The Android Open Source Project * Copyright (C) 2013 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. Loading Loading @@ -29,6 +29,12 @@ public class FieldPacker { mData = new byte[len]; } public FieldPacker(byte[] data) { mPos = 0; mLen = data.length; mData = data; } public void align(int v) { if ((v <= 0) || ((v & (v - 1)) != 0)) { throw new RSIllegalArgumentException("argument must be a non-negative non-zero power of 2: " + v); Loading Loading
api/current.txt +1 −0 Original line number Diff line number Diff line Loading @@ -19485,6 +19485,7 @@ package android.renderscript { public class FieldPacker { ctor public FieldPacker(int); ctor public FieldPacker(byte[]); method public void addBoolean(boolean); method public void addF32(float); method public void addF32(android.renderscript.Float2);
graphics/java/android/renderscript/FieldPacker.java +7 −1 Original line number Diff line number Diff line /* * Copyright (C) 2008 The Android Open Source Project * Copyright (C) 2013 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. Loading Loading @@ -29,6 +29,12 @@ public class FieldPacker { mData = new byte[len]; } public FieldPacker(byte[] data) { mPos = 0; mLen = data.length; mData = data; } public void align(int v) { if ((v <= 0) || ((v & (v - 1)) != 0)) { throw new RSIllegalArgumentException("argument must be a non-negative non-zero power of 2: " + v); Loading