summaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
authorDianne Hackborn <hackbod@google.com>2011-01-17 14:38:50 -0800
committerDianne Hackborn <hackbod@google.com>2011-01-17 16:23:42 -0800
commit327fbd2c8fa294b919475feb4c74a74ee1981e02 (patch)
tree29cbf174cb8d501b1a52252f274fb33d650df3a4 /services
parentf2bc4ee97f58ad7ea78da1f100dceed57c1484f1 (diff)
downloadframeworks_base-327fbd2c8fa294b919475feb4c74a74ee1981e02.zip
frameworks_base-327fbd2c8fa294b919475feb4c74a74ee1981e02.tar.gz
frameworks_base-327fbd2c8fa294b919475feb4c74a74ee1981e02.tar.bz2
Fix a bunch of API review bugs.
3362464 API REVIEW: android.content potpourri 3362445 API REVIEW: Fragment transaction stuff 3362428 API REVIEW: Fragment stuff 3362418 API REVIEW: Loader stuff 3362414 API REVIEW: android.content.pm.ActivityInfo Change-Id: I6475421a4735759b458acb67df4380cc6234f147
Diffstat (limited to 'services')
-rw-r--r--services/java/com/android/server/ClipboardService.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/services/java/com/android/server/ClipboardService.java b/services/java/com/android/server/ClipboardService.java
index bec35d1..062ab74 100644
--- a/services/java/com/android/server/ClipboardService.java
+++ b/services/java/com/android/server/ClipboardService.java
@@ -140,7 +140,7 @@ public class ClipboardService extends IClipboard.Stub {
public boolean hasClipboardText() {
synchronized (this) {
if (mPrimaryClip != null) {
- CharSequence text = mPrimaryClip.getItem(0).getText();
+ CharSequence text = mPrimaryClip.getItemAt(0).getText();
return text != null && text.length() > 0;
}
return false;
@@ -175,7 +175,7 @@ public class ClipboardService extends IClipboard.Stub {
private final void checkDataOwnerLocked(ClipData data, int uid) {
final int N = data.getItemCount();
for (int i=0; i<N; i++) {
- checkItemOwnerLocked(data.getItem(i), uid);
+ checkItemOwnerLocked(data.getItemAt(i), uid);
}
}
@@ -214,7 +214,7 @@ public class ClipboardService extends IClipboard.Stub {
if (mPrimaryClip != null && !mActivePermissionOwners.contains(pkg)) {
final int N = mPrimaryClip.getItemCount();
for (int i=0; i<N; i++) {
- grantItemLocked(mPrimaryClip.getItem(i), pkg);
+ grantItemLocked(mPrimaryClip.getItemAt(i), pkg);
}
mActivePermissionOwners.add(pkg);
}
@@ -249,7 +249,7 @@ public class ClipboardService extends IClipboard.Stub {
}
final int N = mPrimaryClip.getItemCount();
for (int i=0; i<N; i++) {
- revokeItemLocked(mPrimaryClip.getItem(i));
+ revokeItemLocked(mPrimaryClip.getItemAt(i));
}
}
}