auto import from //depot/cupcake/@132589

This commit is contained in:
The Android Open Source Project
2009-03-03 14:04:24 -08:00
parent 3dec7d563a
commit 076357b856
310 changed files with 4072 additions and 18131 deletions

View File

@@ -229,7 +229,7 @@ class GadgetService extends IGadgetService.Stub
int callingUid = getCallingUid();
final int N = mHosts.size();
boolean changed = false;
for (int i=N-1; i>=0; i--) {
for (int i=0; i<N; i++) {
Host host = mHosts.get(i);
if (host.uid == callingUid) {
deleteHostLocked(host);
@@ -244,7 +244,7 @@ class GadgetService extends IGadgetService.Stub
void deleteHostLocked(Host host) {
final int N = host.instances.size();
for (int i=N-1; i>=0; i--) {
for (int i=0; i<N; i++) {
GadgetId id = host.instances.get(i);
deleteGadgetLocked(id);
}
@@ -622,17 +622,6 @@ class GadgetService extends IGadgetService.Stub
}
return gadgetIds;
}
public int[] getGadgetIds(ComponentName provider) {
synchronized (mGadgetIds) {
Provider p = lookupProviderLocked(provider);
if (p != null && getCallingUid() == p.uid) {
return getGadgetIds(p);
} else {
return new int[0];
}
}
}
private Provider parseProviderInfoXml(ComponentName component, ResolveInfo ri) {
Provider p = null;