Improved debug message
Printed out polygon information
Test: Manual
Merged-In: I5b78d4494418f07dd0a4340c7ef4bd1e499af536
Change-Id: I5b78d4494418f07dd0a4340c7ef4bd1e499af536
(cherry picked from commit 3b6b57b685)
This commit is contained in:
@@ -18,6 +18,7 @@ package android.telephony;
|
||||
|
||||
import android.annotation.NonNull;
|
||||
import android.annotation.SystemApi;
|
||||
import android.os.Build;
|
||||
import android.text.TextUtils;
|
||||
|
||||
import java.util.ArrayList;
|
||||
@@ -257,6 +258,15 @@ public class CbGeoUtils {
|
||||
return new Point(x - p.x, y - p.y);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
String str = "Polygon: ";
|
||||
if (Build.IS_DEBUGGABLE) {
|
||||
str += mVertices;
|
||||
}
|
||||
return str;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -284,6 +294,16 @@ public class CbGeoUtils {
|
||||
public boolean contains(LatLng p) {
|
||||
return mCenter.distance(p) <= mRadiusMeter;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
String str = "Circle: ";
|
||||
if (Build.IS_DEBUGGABLE) {
|
||||
str += mCenter + ", radius = " + mRadiusMeter;
|
||||
}
|
||||
|
||||
return str;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user