You've already forked android_translation_layer
mirror of
https://gitlab.com/android_translation_layer/android_translation_layer.git
synced 2025-10-27 11:48:10 -07:00
graphics/Region: add stubs
This commit is contained in:
@@ -14,6 +14,9 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
package android.graphics;
|
package android.graphics;
|
||||||
|
|
||||||
|
import android.util.Log;
|
||||||
|
|
||||||
// import android.util.Pools.SynchronizedPool;
|
// import android.util.Pools.SynchronizedPool;
|
||||||
public class Region {
|
public class Region {
|
||||||
private static final int MAX_POOL_SIZE = 10;
|
private static final int MAX_POOL_SIZE = 10;
|
||||||
@@ -70,7 +73,7 @@ public class Region {
|
|||||||
* Set the region to the empty region
|
* Set the region to the empty region
|
||||||
*/
|
*/
|
||||||
public void setEmpty() {
|
public void setEmpty() {
|
||||||
nativeSetRect(mNativeRegion, 0, 0, 0, 0);
|
Log.w("graphics/Region", "TODO: nativeSetRect(mNativeRegion, 0, 0, 0, 0);");
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* Set the region to the specified region.
|
* Set the region to the specified region.
|
||||||
@@ -230,8 +233,8 @@ public class Region {
|
|||||||
* true if the result of the op is not empty.
|
* true if the result of the op is not empty.
|
||||||
*/
|
*/
|
||||||
public boolean op(Rect r, Op op) {
|
public boolean op(Rect r, Op op) {
|
||||||
return nativeOp(mNativeRegion, r.left, r.top, r.right, r.bottom,
|
Log.w("graphics/Region", "TODO: return nativeOp(mNativeRegion, r.left, r.top, r.right, r.bottom, op.nativeInt);");
|
||||||
op.nativeInt);
|
return true;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* Perform the specified Op on this region and the specified rect. Return
|
* Perform the specified Op on this region and the specified rect. Return
|
||||||
|
|||||||
Reference in New Issue
Block a user