Merge change 8752 into donut

* changes:
  Updates from API review.
This commit is contained in:
Android (Google) Code Review
2009-07-28 12:36:49 -07:00
11 changed files with 25 additions and 177 deletions

View File

@@ -163,6 +163,10 @@ public abstract class AccessibilityService extends Service {
}
}
/**
* Implement to return the implementation of the internal accessibility
* service interface. Subclasses should not override.
*/
@Override
public final IBinder onBind(Intent intent) {
return new IEventListenerWrapper(this);

View File

@@ -273,11 +273,6 @@ public final class PendingIntent implements Parcelable {
return null;
}
private class IntentSenderWrapper extends IntentSender {
protected IntentSenderWrapper(IIntentSender target) {
super(target);
}
}
/**
* Retrieve a IntentSender object that wraps the existing sender of the PendingIntent
*
@@ -285,7 +280,7 @@ public final class PendingIntent implements Parcelable {
*
*/
public IntentSender getIntentSender() {
return new IntentSenderWrapper(mTarget);
return new IntentSender(mTarget);
}
/**

View File

@@ -1283,7 +1283,8 @@ public abstract class Context {
* Use with {@link #getSystemService} to retrieve an
* {@blink android.backup.IBackupManager IBackupManager} for communicating
* with the backup mechanism.
*
* @hide
*
* @see #getSystemService
*/
public static final String BACKUP_SERVICE = "backup";

View File

@@ -135,6 +135,7 @@ public class ContextWrapper extends Context {
return mBase.getPackageCodePath();
}
/** @hide */
@Override
public File getSharedPrefsFile(String name) {
return mBase.getSharedPrefsFile(name);

View File

@@ -2390,7 +2390,7 @@ public class Intent implements Parcelable {
/**
* Create an intent from a URI. This URI may encode the action,
* category, and other intent fields, if it was returned by
* {@link #toUri}.. If the Intent was not generate by toUri(), its data
* {@link #toUri}. If the Intent was not generate by toUri(), its data
* will be the entire URI and its action will be ACTION_VIEW.
*
* <p>The URI given here must not be relative -- that is, it must include

View File

@@ -52,6 +52,9 @@ import android.util.AndroidException;
* categories, and components, and same flags), it will receive a IntentSender
* representing the same token if that is still valid.
*
* <p>Instances of this class can not be made directly, but rather must be
* created from an existing {@link android.app.PendingIntent} with
* {@link android.app.PendingIntent#getIntentSender() PendingIntent.getIntentSender()}.
*/
public class IntentSender implements Parcelable {
private final IIntentSender mTarget;
@@ -245,11 +248,13 @@ public class IntentSender implements Parcelable {
return b != null ? new IntentSender(b) : null;
}
protected IntentSender(IIntentSender target) {
/** @hide */
public IntentSender(IIntentSender target) {
mTarget = target;
}
protected IntentSender(IBinder target) {
/** @hide */
public IntentSender(IBinder target) {
mTarget = IIntentSender.Stub.asInterface(target);
}
}

View File

@@ -131,8 +131,9 @@ public class ApplicationInfo extends PackageItemInfo implements Parcelable {
public static final int FLAG_UPDATED_SYSTEM_APP = 1<<7;
/**
* Value for {@link #flags}: this is set of the application has set
* its android:targetSdkVersion to something >= the current SDK version.
* Value for {@link #flags}: this is set of the application has specified
* {@link android.R.styleable#AndroidManifestApplication_testOnly
* android:testOnly} to be true.
*/
public static final int FLAG_TEST_ONLY = 1<<8;

View File

@@ -35,6 +35,7 @@ public abstract class GestureLibrary {
return false;
}
/** @hide */
public Learner getLearner() {
return mStore.getLearner();
}