Java 类android.app.IStopUserCallback 实例源码

项目:VirtualHook    文件:VActivityManagerService.java   
public int stopUser(int userHandle, IStopUserCallback.Stub stub) {
    synchronized (mPidsSelfLocked) {
        int N = mPidsSelfLocked.size();
        while (N-- > 0) {
            ProcessRecord r = mPidsSelfLocked.valueAt(N);
            if (r.userId == userHandle) {
                killProcess(r.pid);
            }
        }
    }
    try {
        stub.userStopped(userHandle);
    } catch (RemoteException e) {
        e.printStackTrace();
    }
    return 0;
}
项目:TPlayer    文件:VActivityManagerService.java   
public int stopUser(int userHandle, IStopUserCallback.Stub stub) {
    synchronized (mPidsSelfLocked) {
        int N = mPidsSelfLocked.size();
        while (N-- > 0) {
            ProcessRecord r = mPidsSelfLocked.valueAt(N);
            if (r.userId == userHandle) {
                killProcess(r.pid);
            }
        }
    }
    try {
        stub.userStopped(userHandle);
    } catch (RemoteException e) {
        e.printStackTrace();
    }
    return 0;
}
项目:container    文件:VActivityManagerService.java   
public int stopUser(int userHandle, IStopUserCallback.Stub stub) {
    synchronized (mPidsSelfLocked) {
        int N = mPidsSelfLocked.size();
        while (N-- > 0) {
            ProcessRecord r = mPidsSelfLocked.valueAt(N);
            if (r.userId == userHandle) {
                killProcess(r.pid);
            }
        }
    }
    try {
        stub.userStopped(userHandle);
    } catch (RemoteException e) {
        e.printStackTrace();
    }
    return 0;
}