|
| 1 | +package android.app; |
| 2 | + |
| 3 | +import android.app.IApplicationThread; |
| 4 | +import android.app.IServiceConnection; |
| 5 | +import android.content.ComponentName; |
| 6 | +import android.content.Intent; |
| 7 | +import android.content.IIntentSender; |
| 8 | +import android.os.IBinder; |
| 9 | +import android.os.IInterface; |
| 10 | + |
| 11 | +/** |
| 12 | + * @author johnsonlee |
| 13 | + */ |
| 14 | +interface IActivityManager { |
| 15 | + |
| 16 | + ComponentName startService(in IApplicationThread caller, in Intent service, in String resolvedType, in String callingPackage, in int userId); |
| 17 | + |
| 18 | + int stopService(in IApplicationThread caller, in Intent service, in String resolvedType, in int userId); |
| 19 | + |
| 20 | + boolean stopServiceToken(in ComponentName className, in IBinder token, in int startId); |
| 21 | + |
| 22 | + void setServiceForeground(in ComponentName className, in IBinder token, in int id, in Notification notification, in boolean keepNotification); |
| 23 | + |
| 24 | + int bindService(in IApplicationThread caller, in IBinder token, in Intent service, in String resolvedType, in IServiceConnection connection, in int flags, in String callingPackage, in int userId); |
| 25 | + |
| 26 | + boolean unbindService(in IServiceConnection connection); |
| 27 | + |
| 28 | + void publishService(in IBinder token, in Intent intent, in IBinder service); |
| 29 | + |
| 30 | + void unbindFinished(in IBinder token, in Intent service, in boolean doRebind); |
| 31 | + |
| 32 | + IIntentSender getIntentSender(in int type, in String packageName, in IBinder token, in String resultWho, int requestCode, in Intent[] intents, in String[] resolvedTypes, in int flags, in Bundle options, in int userId); |
| 33 | + |
| 34 | + void cancelIntentSender(in IIntentSender sender); |
| 35 | + |
| 36 | + String getPackageForIntentSender(in IIntentSender sender); |
| 37 | + |
| 38 | + int getUidForIntentSender(in IIntentSender sender); |
| 39 | + |
| 40 | +} |
0 commit comments