Java Code Examples for android.os.RemoteException#setStackTrace()

The following examples show how to use android.os.RemoteException#setStackTrace() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: IApkManagerImpl.java    From letv with Apache License 2.0 6 votes vote down vote up
public List<IntentFilter> getReceiverIntentFilter(ActivityInfo info) throws RemoteException {
    try {
        if (getAndCheckCallingPkg(info.packageName) != null) {
            PluginPackageParser parser = (PluginPackageParser) this.mPluginCache.get(info.packageName);
            if (parser != null) {
                List<IntentFilter> filters = parser.getReceiverIntentFilter(info);
                if (filters != null && filters.size() > 0) {
                    return new ArrayList(filters);
                }
            }
        }
        return new ArrayList(0);
    } catch (Exception e) {
        RemoteException remoteException = new RemoteException();
        remoteException.setStackTrace(e.getStackTrace());
        throw remoteException;
    }
}
 
Example 2
Source File: IPluginManagerImpl.java    From DroidPlugin with GNU Lesser General Public License v3.0 6 votes vote down vote up
@Override
public List<ActivityInfo> getReceivers(String packageName, int flags) throws RemoteException {
    try {
        String pkg = getAndCheckCallingPkg(packageName);
        if (pkg != null) {
            PluginPackageParser parser = mPluginCache.get(packageName);
            if (parser != null) {
                return new ArrayList<ActivityInfo>(parser.getReceivers());
            }
        }
    } catch (Exception e) {
        RemoteException remoteException = new RemoteException();
        remoteException.setStackTrace(e.getStackTrace());
        throw remoteException;
    }
    return new ArrayList<ActivityInfo>(0);
}
 
Example 3
Source File: IPluginManagerImpl.java    From DroidPlugin with GNU Lesser General Public License v3.0 6 votes vote down vote up
@Override
public List<IntentFilter> getReceiverIntentFilter(ActivityInfo info) throws RemoteException {
    try {
        String pkg = getAndCheckCallingPkg(info.packageName);
        if (pkg != null) {
            PluginPackageParser parser = mPluginCache.get(info.packageName);
            if (parser != null) {
                List<IntentFilter> filters = parser.getReceiverIntentFilter(info);
                if (filters != null && filters.size() > 0) {
                    return new ArrayList<IntentFilter>(filters);
                }
            }
        }
        return new ArrayList<IntentFilter>(0);
    } catch (Exception e) {
        RemoteException remoteException = new RemoteException();
        remoteException.setStackTrace(e.getStackTrace());
        throw remoteException;
    }
}
 
Example 4
Source File: IApkManagerImpl.java    From letv with Apache License 2.0 5 votes vote down vote up
public List<ActivityInfo> getReceivers(String packageName, int flags) throws RemoteException {
    try {
        if (getAndCheckCallingPkg(packageName) != null) {
            PluginPackageParser parser = (PluginPackageParser) this.mPluginCache.get(packageName);
            if (parser != null) {
                return new ArrayList(parser.getReceivers());
            }
        }
        return new ArrayList(0);
    } catch (Exception e) {
        RemoteException remoteException = new RemoteException();
        remoteException.setStackTrace(e.getStackTrace());
        throw remoteException;
    }
}