summaryrefslogtreecommitdiffstats
path: root/telecomm/java/android/telecom
diff options
context:
space:
mode:
Diffstat (limited to 'telecomm/java/android/telecom')
-rw-r--r--telecomm/java/android/telecom/AuthenticatorService.java4
-rw-r--r--telecomm/java/android/telecom/CameraCapabilities.java71
-rw-r--r--telecomm/java/android/telecom/Voicemail.java4
3 files changed, 50 insertions, 29 deletions
diff --git a/telecomm/java/android/telecom/AuthenticatorService.java b/telecomm/java/android/telecom/AuthenticatorService.java
index 39717c3..7aa105d 100644
--- a/telecomm/java/android/telecom/AuthenticatorService.java
+++ b/telecomm/java/android/telecom/AuthenticatorService.java
@@ -19,6 +19,7 @@ import android.accounts.AbstractAccountAuthenticator;
import android.accounts.Account;
import android.accounts.AccountAuthenticatorResponse;
import android.accounts.NetworkErrorException;
+import android.annotation.SystemApi;
import android.app.Service;
import android.content.Context;
import android.content.Intent;
@@ -28,7 +29,10 @@ import android.os.IBinder;
/**
* A generic stub account authenticator service often used for sync adapters that do not directly
* involve accounts.
+ *
+ * @hide
*/
+@SystemApi
public class AuthenticatorService extends Service {
private static Authenticator mAuthenticator;
diff --git a/telecomm/java/android/telecom/CameraCapabilities.java b/telecomm/java/android/telecom/CameraCapabilities.java
index f968c13..6eaf6a2 100644
--- a/telecomm/java/android/telecom/CameraCapabilities.java
+++ b/telecomm/java/android/telecom/CameraCapabilities.java
@@ -26,6 +26,16 @@ import android.os.Parcelable;
public final class CameraCapabilities implements Parcelable {
/**
+ * The width of the camera video in pixels.
+ */
+ private final int mWidth;
+
+ /**
+ * The height of the camera video in pixels.
+ */
+ private final int mHeight;
+
+ /**
* Whether the camera supports zoom.
*/
private final boolean mZoomSupported;
@@ -36,28 +46,29 @@ public final class CameraCapabilities implements Parcelable {
private final float mMaxZoom;
/**
- * The width of the camera video in pixels.
- */
- private final int mWidth;
-
- /**
- * The height of the camera video in pixels.
+ * Create a call camera capabilities instance that doesn't support zoom.
+ *
+ * @param width The width of the camera video (in pixels).
+ * @param height The height of the camera video (in pixels).
*/
- private final int mHeight;
+ public CameraCapabilities(int width, int height) {
+ this(width, height, false, 1.0f);
+ }
/**
* Create a call camera capabilities instance.
*
- * @param zoomSupported True when camera supports zoom.
- * @param maxZoom Maximum zoom supported by camera.
* @param width The width of the camera video (in pixels).
* @param height The height of the camera video (in pixels).
+ * @param zoomSupported True when camera supports zoom.
+ * @param maxZoom Maximum zoom supported by camera.
+ * @hide
*/
- public CameraCapabilities(boolean zoomSupported, float maxZoom, int width, int height) {
- mZoomSupported = zoomSupported;
- mMaxZoom = maxZoom;
+ public CameraCapabilities(int width, int height, boolean zoomSupported, float maxZoom) {
mWidth = width;
mHeight = height;
+ mZoomSupported = zoomSupported;
+ mMaxZoom = maxZoom;
}
/**
@@ -73,12 +84,12 @@ public final class CameraCapabilities implements Parcelable {
*/
@Override
public CameraCapabilities createFromParcel(Parcel source) {
- boolean supportsZoom = source.readByte() != 0;
- float maxZoom = source.readFloat();
int width = source.readInt();
int height = source.readInt();
+ boolean supportsZoom = source.readByte() != 0;
+ float maxZoom = source.readFloat();
- return new CameraCapabilities(supportsZoom, maxZoom, width, height);
+ return new CameraCapabilities(width, height, supportsZoom, maxZoom);
}
@Override
@@ -108,37 +119,39 @@ public final class CameraCapabilities implements Parcelable {
*/
@Override
public void writeToParcel(Parcel dest, int flags) {
- dest.writeByte((byte) (isZoomSupported() ? 1 : 0));
- dest.writeFloat(getMaxZoom());
dest.writeInt(getWidth());
dest.writeInt(getHeight());
+ dest.writeByte((byte) (isZoomSupported() ? 1 : 0));
+ dest.writeFloat(getMaxZoom());
}
/**
- * Whether the camera supports zoom.
+ * The width of the camera video in pixels.
*/
- public boolean isZoomSupported() {
- return mZoomSupported;
+ public int getWidth() {
+ return mWidth;
}
/**
- * The maximum zoom supported by the camera.
+ * The height of the camera video in pixels.
*/
- public float getMaxZoom() {
- return mMaxZoom;
+ public int getHeight() {
+ return mHeight;
}
/**
- * The width of the camera video in pixels.
+ * Whether the camera supports zoom.
+ * @hide
*/
- public int getWidth() {
- return mWidth;
+ public boolean isZoomSupported() {
+ return mZoomSupported;
}
/**
- * The height of the camera video in pixels.
+ * The maximum zoom supported by the camera.
+ * @hide
*/
- public int getHeight() {
- return mHeight;
+ public float getMaxZoom() {
+ return mMaxZoom;
}
}
diff --git a/telecomm/java/android/telecom/Voicemail.java b/telecomm/java/android/telecom/Voicemail.java
index a884c5f..186c199 100644
--- a/telecomm/java/android/telecom/Voicemail.java
+++ b/telecomm/java/android/telecom/Voicemail.java
@@ -16,13 +16,17 @@
package android.telecom;
+import android.annotation.SystemApi;
import android.net.Uri;
import android.os.Parcel;
import android.os.Parcelable;
/**
* Represents a single voicemail stored in the voicemail content provider.
+ *
+ * @hide
*/
+@SystemApi
public class Voicemail implements Parcelable {
private final Long mTimestamp;
private final String mNumber;