@Test @SmallTest public void set_goesToDeviceOwner() { addComponentAsRespondingToAppStatesIntent(mTestComponentName); setComponentBindingToHandler(mTestComponentName, mTestHandler); shadowOf(mDevicePolicyManager).setDeviceOwner(mTestComponentName); KeyedAppStatesReporter reporter = getReporter(mContext); reporter.setStates(singletonList(mState)); assertThat(mTestHandler.latestMessage()).isNotNull(); }
@Override public void setStates(@NonNull Collection<KeyedAppState> states) { setStates(states, false); }
DefaultKeyedAppStatesReporter extends KeyedAppStatesReporter { @Override public void setStates(@NonNull Collection<KeyedAppState> states) { setStates(states, false); } }
DefaultKeyedAppStatesReporter extends KeyedAppStatesReporter { @Override public void setStates(@NonNull Collection<KeyedAppState> states) { setStates(states, false); } DefaultKeyedAppStatesReporter(@NonNull Context context, @NonNull Executor executor);   DefaultKeyedAppStatesReporter(@NonNull Context context); }
DefaultKeyedAppStatesReporter extends KeyedAppStatesReporter { @Override public void setStates(@NonNull Collection<KeyedAppState> states) { setStates(states, false); } DefaultKeyedAppStatesReporter(@NonNull Context context, @NonNull Executor executor);   DefaultKeyedAppStatesReporter(@NonNull Context context); @Override void setStates(@NonNull Collection<KeyedAppState> states); @Override void setStatesImmediate(@NonNull Collection<KeyedAppState> states); }
DefaultKeyedAppStatesReporter extends KeyedAppStatesReporter { @Override public void setStates(@NonNull Collection<KeyedAppState> states) { setStates(states, false); } DefaultKeyedAppStatesReporter(@NonNull Context context, @NonNull Executor executor);   DefaultKeyedAppStatesReporter(@NonNull Context context); @Override void setStates(@NonNull Collection<KeyedAppState> states); @Override void setStatesImmediate(@NonNull Collection<KeyedAppState> states);  }