| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
package android.app; |
| 18 |
import android.compat.annotation.UnsupportedAppUsage; |
| 19 |
import android.content.Intent; |
| 20 |
import android.os.IBinder; |
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
|
| 26 |
@Deprecated |
| 27 |
public abstract class ActivityManagerNative { |
| 28 |
|
| 29 |
@UnsupportedAppUsage |
| 30 |
public ActivityManagerNative() { |
| 31 |
} |
| 32 |
|
| 33 |
|
| 34 |
|
| 35 |
|
| 36 |
|
| 37 |
|
| 38 |
|
| 39 |
@UnsupportedAppUsage |
| 40 |
static public IActivityManager asInterface(IBinder obj) { |
| 41 |
return IActivityManager.Stub.asInterface(obj); |
| 42 |
} |
| 43 |
|
| 44 |
|
| 45 |
|
| 46 |
|
| 47 |
|
| 48 |
|
| 49 |
@UnsupportedAppUsage |
| 50 |
static public IActivityManager getDefault() { |
| 51 |
return ActivityManager.getService(); |
| 52 |
} |
| 53 |
|
| 54 |
|
| 55 |
|
| 56 |
|
| 57 |
|
| 58 |
|
| 59 |
@UnsupportedAppUsage |
| 60 |
static public boolean isSystemReady() { |
| 61 |
return ActivityManager.isSystemReady(); |
| 62 |
} |
| 63 |
|
| 64 |
|
| 65 |
|
| 66 |
|
| 67 |
@UnsupportedAppUsage |
| 68 |
static public void broadcastStickyIntent(Intent intent, String permission, int userId) { |
| 69 |
broadcastStickyIntent(intent, permission, AppOpsManager.OP_NONE, userId); |
| 70 |
} |
| 71 |
|
| 72 |
|
| 73 |
|
| 74 |
|
| 75 |
|
| 76 |
|
| 77 |
|
| 78 |
static public void broadcastStickyIntent(Intent intent, String permission, int appOp, |
| 79 |
int userId) { |
| 80 |
ActivityManager.broadcastStickyIntent(intent, appOp, userId); |
| 81 |
} |
| 82 |
|
| 83 |
|
| 84 |
|
| 85 |
|
| 86 |
static public void noteWakeupAlarm(PendingIntent ps, int sourceUid, String sourcePkg, |
| 87 |
String tag) { |
| 88 |
ActivityManager.noteWakeupAlarm(ps, null, sourceUid, sourcePkg, tag); |
| 89 |
} |
| 90 |
|
| 91 |
|
| 92 |
|
| 93 |
|
| 94 |
static public void noteAlarmStart(PendingIntent ps, int sourceUid, String tag) { |
| 95 |
ActivityManager.noteAlarmStart(ps, null, sourceUid, tag); |
| 96 |
} |
| 97 |
|
| 98 |
|
| 99 |
|
| 100 |
|
| 101 |
static public void noteAlarmFinish(PendingIntent ps, int sourceUid, String tag) { |
| 102 |
ActivityManager.noteAlarmFinish(ps, null, sourceUid, tag); |
| 103 |
} |
| 104 |
} |