Searched refs:StatsUnavailableException (Results 1 – 8 of 8) sorted by relevance
/packages/modules/StatsD/framework/java/android/app/ |
D | StatsManager.java | 167 public void addConfig(long configKey, byte[] config) throws StatsUnavailableException { in addConfig() 175 throw new StatsUnavailableException("could not connect", e); in addConfig() 177 throw new StatsUnavailableException(e.getMessage(), e); in addConfig() 180 throw new StatsUnavailableException(e.getMessage(), e); in addConfig() 195 } catch (StatsUnavailableException | IllegalArgumentException e) { in addConfiguration() 209 public void removeConfig(long configKey) throws StatsUnavailableException { in removeConfig() 216 throw new StatsUnavailableException("could not connect", e); in removeConfig() 218 throw new StatsUnavailableException(e.getMessage(), e); in removeConfig() 221 throw new StatsUnavailableException(e.getMessage(), e); in removeConfig() 236 } catch (StatsUnavailableException e) { in removeConfiguration() [all …]
|
/packages/modules/StatsD/framework/test/hostsidetests/app/src/com/android/tests/statsd/framework/appnopermission/ |
D | StatsdPermissionTest.java | 24 import android.app.StatsManager.StatsUnavailableException; 48 StatsUnavailableException e = assertThrows(StatsManager.StatsUnavailableException.class, in testApisThrowExceptionWithoutPermission() 59 StatsManager.StatsUnavailableException.class, () -> statsManager.removeConfig(1234)); in testApisThrowExceptionWithoutPermission() 63 StatsManager.StatsUnavailableException.class, () -> statsManager.getReports(1234)); in testApisThrowExceptionWithoutPermission() 71 StatsManager.StatsUnavailableException.class, () -> statsManager.getStatsMetadata()); in testApisThrowExceptionWithoutPermission() 74 e = assertThrows(StatsManager.StatsUnavailableException.class, in testApisThrowExceptionWithoutPermission() 81 e = assertThrows(StatsManager.StatsUnavailableException.class, in testApisThrowExceptionWithoutPermission() 85 e = assertThrows(StatsManager.StatsUnavailableException.class, in testApisThrowExceptionWithoutPermission() 89 e = assertThrows(StatsManager.StatsUnavailableException.class, in testApisThrowExceptionWithoutPermission() 93 e = assertThrows(StatsManager.StatsUnavailableException.class, in testApisThrowExceptionWithoutPermission() [all …]
|
/packages/modules/StatsD/framework/test/hostsidetests/app/src/com/android/tests/statsd/framework/app/ |
D | StatsdRestartTest.java | 23 import android.app.StatsManager.StatsUnavailableException; 39 StatsUnavailableException e = assertThrows(StatsManager.StatsUnavailableException.class, in testApisThrowExceptionWhenStatsdNotAlive() 50 StatsManager.StatsUnavailableException.class, () -> statsManager.removeConfig(1234)); in testApisThrowExceptionWhenStatsdNotAlive() 54 StatsManager.StatsUnavailableException.class, () -> statsManager.getReports(1234)); in testApisThrowExceptionWhenStatsdNotAlive() 58 StatsManager.StatsUnavailableException.class, () -> statsManager.getStatsMetadata()); in testApisThrowExceptionWhenStatsdNotAlive() 61 e = assertThrows(StatsManager.StatsUnavailableException.class, in testApisThrowExceptionWhenStatsdNotAlive()
|
/packages/services/Car/service/src/com/android/car/telemetry/publisher/ |
D | StatsManagerProxy.java | 22 import android.app.StatsManager.StatsUnavailableException; 28 byte[] getReports(long configKey) throws StatsUnavailableException; in getReports() 31 void addConfig(long configKey, @NonNull byte[] data) throws StatsUnavailableException; in addConfig() 34 void removeConfig(long configKey) throws StatsUnavailableException; in removeConfig() 38 byte[] getStatsMetadata() throws StatsUnavailableException; in getStatsMetadata()
|
D | StatsManagerImpl.java | 22 import android.app.StatsManager.StatsUnavailableException; 34 public byte[] getReports(long configKey) throws StatsUnavailableException { in getReports() 39 public void addConfig(long configKey, @NonNull byte[] data) throws StatsUnavailableException { in addConfig() 44 public void removeConfig(long configKey) throws StatsUnavailableException { in removeConfig() 50 public byte[] getStatsMetadata() throws StatsUnavailableException { in getStatsMetadata()
|
D | StatsPublisher.java | 33 import android.app.StatsManager.StatsUnavailableException; 374 } catch (InvalidProtocolBufferException | StatsUnavailableException e) { in pullReportsPeriodically() 441 } catch (StatsUnavailableException e) { in removeAllDataSubscribers() 520 } catch (StatsUnavailableException e) { in addStatsConfig() 540 } catch (StatsUnavailableException e) { in removeStatsConfig()
|
/packages/modules/StatsD/framework/api/ |
D | system-current.txt | 17 …TS}) public void addConfig(long, byte[]) throws android.app.StatsManager.StatsUnavailableException; 22 …blic long[] getRegisteredExperimentIds() throws android.app.StatsManager.StatsUnavailableException; 23 …E_STATS}) public byte[] getReports(long) throws android.app.StatsManager.StatsUnavailableException; 24 …STATS}) public byte[] getStatsMetadata() throws android.app.StatsManager.StatsUnavailableException; 25 …d.app.StatsManager.StatsQueryException>) throws android.app.StatsManager.StatsUnavailableException; 26 …E_STATS}) public void removeConfig(long) throws android.app.StatsManager.StatsUnavailableException; 28 …ion(@Nullable android.app.PendingIntent) throws android.app.StatsManager.StatsUnavailableException; 29 …r(android.app.PendingIntent, long, long) throws android.app.StatsManager.StatsUnavailableException; 32 …eration(android.app.PendingIntent, long) throws android.app.StatsManager.StatsUnavailableException; 34 …ng, @Nullable android.app.PendingIntent) throws android.app.StatsManager.StatsUnavailableException; [all …]
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/telemetry/publisher/ |
D | StatsPublisherTest.java | 395 doThrow(new StatsManager.StatsUnavailableException("fail")) in testAddDataSubscriber_whenFails_notifiesFailureConsumer()
|