diff options
author | Michael Wright <michaelwr@google.com> | 2014-09-08 13:26:34 -0700 |
---|---|---|
committer | Michael Wright <michaelwr@google.com> | 2014-09-11 19:37:30 +0000 |
commit | cde5bb45cc86d181d96ee69da1832e6132162871 (patch) | |
tree | 6f82df423a389191f5930a710c57cf8040c7e7dd /services/core/java/com/android/server/media/projection | |
parent | 969e543b3256044987e4f837cf7a1702dcff82be (diff) | |
download | frameworks_base-cde5bb45cc86d181d96ee69da1832e6132162871.zip frameworks_base-cde5bb45cc86d181d96ee69da1832e6132162871.tar.gz frameworks_base-cde5bb45cc86d181d96ee69da1832e6132162871.tar.bz2 |
Change callback methods from add to register.
Also changes intent returning method from get to create. Both changes
are in response to API council feedback.
Bug: 17389882
Change-Id: I3b57e3fc202148e3bbb24ac61229f04e8b4ac41e
Diffstat (limited to 'services/core/java/com/android/server/media/projection')
-rw-r--r-- | services/core/java/com/android/server/media/projection/MediaProjectionManagerService.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/services/core/java/com/android/server/media/projection/MediaProjectionManagerService.java b/services/core/java/com/android/server/media/projection/MediaProjectionManagerService.java index 8ec9b25..8a1f3ad 100644 --- a/services/core/java/com/android/server/media/projection/MediaProjectionManagerService.java +++ b/services/core/java/com/android/server/media/projection/MediaProjectionManagerService.java @@ -389,7 +389,7 @@ public final class MediaProjectionManagerService extends SystemService throw new IllegalStateException( "Cannot start already started MediaProjection"); } - addCallback(callback); + registerCallback(callback); try { mToken = callback.asBinder(); mDeathEater = new IBinder.DeathRecipient() { @@ -424,7 +424,7 @@ public final class MediaProjectionManagerService extends SystemService } @Override - public void addCallback(IMediaProjectionCallback callback) { + public void registerCallback(IMediaProjectionCallback callback) { if (callback == null) { throw new IllegalArgumentException("callback must not be null"); } @@ -432,7 +432,7 @@ public final class MediaProjectionManagerService extends SystemService } @Override - public void removeCallback(IMediaProjectionCallback callback) { + public void unregisterCallback(IMediaProjectionCallback callback) { if (callback == null) { throw new IllegalArgumentException("callback must not be null"); } |