Searched refs:mPublisher (Results 1 – 9 of 9) sorted by relevance
64 private MockPublisherClient mPublisher; field in VmsPublisherSubscriberTest70 mPublisher = getMockPublisherClient(); in setUpClients()82 int publisherId = mPublisher.getPublisherId(PUBLISHER_INFO); in testPublisherInfo_Registered()88 int publisherId = mPublisher.getPublisherId(PUBLISHER_INFO); in testPublisherId_AlreadyRegistered()89 int publisherId2 = mPublisher.getPublisherId(PUBLISHER_INFO); in testPublisherId_AlreadyRegistered()95 int publisherId = mPublisher.getPublisherId(PUBLISHER_INFO); in testPublisherId_MultiplePublishers()96 int publisherId2 = mPublisher.getPublisherId(PUBLISHER_INFO_OTHER); in testPublisherId_MultiplePublishers()111 int publisherId = mPublisher.getPublisherId(PUBLISHER_INFO); in testLayerAvailability()112 mPublisher.setLayersOffering(new VmsLayersOffering(Collections.singleton( in testLayerAvailability()121 int publisherId = mPublisher.getPublisherId(PUBLISHER_INFO); in testLayerAvailability_Overwrite()[all …]
112 private MemoryPublisher mPublisher; // subject field in MemoryPublisherTest160 mPublisher = createPublisher(mTempFile.toPath()); in setUp()166 mPublisher.removeAllDataSubscribers(); in tearDown()185 mPublisher.addDataSubscriber(mMockDataSubscriber); in testAddDataSubscriber_whenNoPackageName_pullsDeviceMeminfo()187 assertThat(mPublisher.hasDataSubscriber(mMockDataSubscriber)).isTrue(); in testAddDataSubscriber_whenNoPackageName_pullsDeviceMeminfo()204 mPublisher.addDataSubscriber(dataSubscriber); in testAddDataSubscriber_whenMatchingPackageName_pullsDeviceAndProcessMeminfo()206 assertThat(mPublisher.hasDataSubscriber(dataSubscriber)).isTrue(); in testAddDataSubscriber_whenMatchingPackageName_pullsDeviceAndProcessMeminfo()250 mPublisher.addDataSubscriber(dataSubscriber); in testAddDataSubscriber_multipleMatchingPackageName_pullsDeviceAndProcessMeminfo()252 assertThat(mPublisher.hasDataSubscriber(dataSubscriber)).isTrue(); in testAddDataSubscriber_multipleMatchingPackageName_pullsDeviceAndProcessMeminfo()306 mPublisher.addDataSubscriber(dataSubscriber); in testAddDataSubscriber_whenPackageNameNotFound_doesNotPullProcessMeminfo()[all …]
102 private CarTelemetrydPublisher mPublisher; field in CarTelemetrydPublisherTest117 mPublisher = new CarTelemetrydPublisher( in setUp()135 mPublisher.addDataSubscriber(mMockDataSubscriber); in testAddDataSubscriber_registersNewListener()138 assertThat(mPublisher.isConnectedToCarTelemetryd()).isTrue(); in testAddDataSubscriber_registersNewListener()139 assertThat(mPublisher.hasDataSubscriber(mMockDataSubscriber)).isTrue(); in testAddDataSubscriber_registersNewListener()153 () -> mPublisher.addDataSubscriber(invalidDataSubscriber)); in testAddDataSubscriber_withInvalidId_fails()157 assertThat(mPublisher.isConnectedToCarTelemetryd()).isFalse(); in testAddDataSubscriber_withInvalidId_fails()158 assertThat(mPublisher.hasDataSubscriber(invalidDataSubscriber)).isFalse(); in testAddDataSubscriber_withInvalidId_fails()163 mPublisher.removeDataSubscriber(mMockDataSubscriber); in testRemoveDataSubscriber_ignoresIfNotFound()170 mPublisher.addDataSubscriber(mMockDataSubscriber); in testRemoveDataSubscriber_removesOnlySingleSubscriber()[all …]
263 private StatsPublisher mPublisher; // subject field in StatsPublisherTest274 mPublisher = createRestartedPublisher(); in setUp()292 mPublisher.addDataSubscriber(DATA_SUBSCRIBER_1); in testAddDataSubscriber_registersNewListener()296 assertThat(mPublisher.hasDataSubscriber(DATA_SUBSCRIBER_1)).isTrue(); in testAddDataSubscriber_registersNewListener()301 mPublisher.addDataSubscriber(DATA_SUBSCRIBER_1); in testAddDataSubscriber_sameVersion_addsToStatsdOnce()302 mPublisher.addDataSubscriber(DATA_SUBSCRIBER_1); in testAddDataSubscriber_sameVersion_addsToStatsdOnce()306 assertThat(mPublisher.hasDataSubscriber(DATA_SUBSCRIBER_1)).isTrue(); in testAddDataSubscriber_sameVersion_addsToStatsdOnce()311 mPublisher.addDataSubscriber(DATA_SUBSCRIBER_1); in testAddDataSubscriber_whenRestarted_addsToStatsdOnce()327 mPublisher.addDataSubscriber(processMemoryStateSubscriber); in testAddDataSubscriber_forProcessMemoryState_generatesStatsdMetrics()331 assertThat(mPublisher.hasDataSubscriber(processMemoryStateSubscriber)).isTrue(); in testAddDataSubscriber_forProcessMemoryState_generatesStatsdMetrics()[all …]
165 private ConnectivityPublisher mPublisher; // subject field in ConnectivityPublisherTest180 mPublisher = in setUp()205 mPublisher.addDataSubscriber(mDataSubscriberWifi); in testAddDataSubscriber_storesIt()207 assertThat(mPublisher.hasDataSubscriber(mDataSubscriberWifi)).isTrue(); in testAddDataSubscriber_storesIt()212 mPublisher.addDataSubscriber(mDataSubscriberWifi); in testRemoveDataSubscriber_removesIt()213 mPublisher.addDataSubscriber(mDataSubscriberCell); in testRemoveDataSubscriber_removesIt()215 mPublisher.removeDataSubscriber(mDataSubscriberWifi); in testRemoveDataSubscriber_removesIt()217 assertThat(mPublisher.hasDataSubscriber(mDataSubscriberWifi)).isFalse(); in testRemoveDataSubscriber_removesIt()222 mPublisher.addDataSubscriber(mDataSubscriberWifi); in testRemoveDataSubscriber_givenWrongSubscriber_doesNothing()224 mPublisher.removeDataSubscriber(mDataSubscriberCell); in testRemoveDataSubscriber_givenWrongSubscriber_doesNothing()[all …]
53 private Uri mPublisher; field in AggregateReport96 mPublisher = null; in AggregateReport()119 return Objects.equals(mPublisher, aggregateReport.mPublisher) in equals()147 mPublisher, in hashCode()178 return mPublisher; in getPublisher()358 mAttributionReport.mPublisher = publisher; in setPublisher()520 mAttributionReport.mPublisher = Uri.EMPTY; in getNullAggregateReportBuilder()
44 public final String mPublisher; field in RegisterSource58 mPublisher = regParamsJson.optString(TestFormatJsonMapping.CONTEXT_ORIGIN_URI_KEY); in RegisterSource()103 return mPublisher; in getPublisher()
45 public final String mPublisher; field in RegisterListSources60 mPublisher = regParamsJson.optString(TestFormatJsonMapping.SOURCE_TOP_ORIGIN_URI_KEY); in RegisterListSources()101 return mPublisher; in getPublisher()
65 private Uri mPublisher; field in Source573 return Objects.equals(mPublisher, source.mPublisher) in equals()630 mPublisher, in hashCode()721 return mPublisher; in getPublisher()1367 builder.setPublisher(copyFrom.mPublisher); in from()1426 mBuilding.mPublisher = publisher; in setPublisher()1791 mBuilding.mPublisher, in build()