@Test public void register_nativeStarted() { mTestProvider.registerWithService(); verify(mMockNative).startNavigationMessageCollection(); }
@Override protected int registerWithService() { boolean result = mNative.startNavigationMessageCollection(); if (result) { mCollectionStarted = true; return RemoteListenerHelper.RESULT_SUCCESS; } else { return RemoteListenerHelper.RESULT_INTERNAL_ERROR; } }
GnssNavigationMessageProvider extends RemoteListenerHelper<IGnssNavigationMessageListener> { @Override protected int registerWithService() { boolean result = mNative.startNavigationMessageCollection(); if (result) { mCollectionStarted = true; return RemoteListenerHelper.RESULT_SUCCESS; } else { return RemoteListenerHelper.RESULT_INTERNAL_ERROR; } } }
GnssNavigationMessageProvider extends RemoteListenerHelper<IGnssNavigationMessageListener> { @Override protected int registerWithService() { boolean result = mNative.startNavigationMessageCollection(); if (result) { mCollectionStarted = true; return RemoteListenerHelper.RESULT_SUCCESS; } else { return RemoteListenerHelper.RESULT_INTERNAL_ERROR; } } protected  GnssNavigationMessageProvider(Handler handler); @VisibleForTesting  GnssNavigationMessageProvider(Handler handler, GnssNavigationMessageProviderNative aNative); }
GnssNavigationMessageProvider extends RemoteListenerHelper<IGnssNavigationMessageListener> { @Override protected int registerWithService() { boolean result = mNative.startNavigationMessageCollection(); if (result) { mCollectionStarted = true; return RemoteListenerHelper.RESULT_SUCCESS; } else { return RemoteListenerHelper.RESULT_INTERNAL_ERROR; } } protected  GnssNavigationMessageProvider(Handler handler); @VisibleForTesting  GnssNavigationMessageProvider(Handler handler, GnssNavigationMessageProviderNative aNative); void onNavigationMessageAvailable(final GnssNavigationMessage event); void onCapabilitiesUpdated(boolean isGnssNavigationMessageSupported); void onGpsEnabledChanged(); }
GnssNavigationMessageProvider extends RemoteListenerHelper<IGnssNavigationMessageListener> { @Override protected int registerWithService() { boolean result = mNative.startNavigationMessageCollection(); if (result) { mCollectionStarted = true; return RemoteListenerHelper.RESULT_SUCCESS; } else { return RemoteListenerHelper.RESULT_INTERNAL_ERROR; } } protected  GnssNavigationMessageProvider(Handler handler); @VisibleForTesting  GnssNavigationMessageProvider(Handler handler, GnssNavigationMessageProviderNative aNative); void onNavigationMessageAvailable(final GnssNavigationMessage event); void onCapabilitiesUpdated(boolean isGnssNavigationMessageSupported); void onGpsEnabledChanged();  }