| 3815 | } |
| 3816 | |
| 3817 | private static class StopInfo implements Runnable { |
| 3818 | ActivityClientRecord activity; |
| 3819 | Bundle state; |
| 3820 | PersistableBundle persistentState; |
| 3821 | CharSequence description; |
| 3822 | |
| 3823 | @Override public void run() { |
| 3824 | // Tell activity manager we have been stopped. |
| 3825 | try { |
| 3826 | if (DEBUG_MEMORY_TRIM) Slog.v(TAG, "Reporting activity stopped: " + activity); |
| 3827 | ActivityManagerNative.getDefault().activityStopped( |
| 3828 | activity.token, state, persistentState, description); |
| 3829 | } catch (RemoteException ex) { |
| 3830 | if (ex instanceof TransactionTooLargeException |
| 3831 | && activity.packageInfo.getTargetSdkVersion() < Build.VERSION_CODES.N) { |
| 3832 | Log.e(TAG, "App sent too much data in instance state, so it was ignored", ex); |
| 3833 | return; |
| 3834 | } |
| 3835 | throw ex.rethrowFromSystemServer(); |
| 3836 | } |
| 3837 | } |
| 3838 | } |
| 3839 | |
| 3840 | private static final class ProviderRefCount { |
| 3841 | public final IActivityManager.ContentProviderHolder holder; |
nothing calls this directly
no outgoing calls
no test coverage detected