/packages/services/Car/tests/carservice_unit_test/src/android/car/hardware/property/ |
D | SubscriptionTest.java | 32 Subscription.Builder builder = new Subscription.Builder(/* propertyId= */ 52); in testBuilder_noUpdateRateSet() 33 Subscription option = builder.build(); in testBuilder_noUpdateRateSet() 45 Subscription.Builder builder = new Subscription.Builder(propertyId); in testBuilder_withUpdateRateSet() 47 Subscription option = builder.build(); in testBuilder_withUpdateRateSet() 59 Subscription.Builder builder = new Subscription.Builder(/* propertyId= */ 98); in testAddAreaId_withMultipleAreas() 64 Subscription option = builder.build(); in testAddAreaId_withMultipleAreas() 76 Subscription.Builder builder = new Subscription.Builder(/* propertyId= */ 98); in testAddAreaId_withOverlappingAreas() 81 Subscription option = builder.build(); in testAddAreaId_withOverlappingAreas() 93 Subscription.Builder builder = new Subscription.Builder(/* propertyId= */ 98); in testSetUpdateRateHz_throws() 104 Subscription.Builder builder = new Subscription.Builder(propertyId); in testSetRateUI() [all …]
|
/packages/modules/StatsD/lib/libstatspull/ |
D | stats_subscription.cpp | 34 class Subscription; 41 static std::map</* subscription ID */ int32_t, std::shared_ptr<Subscription>> subscriptions; 43 class Subscription : public BnStatsSubscriptionCallback { class 45 Subscription(const int32_t subscriptionId, const std::vector<uint8_t>& subscriptionConfig, in Subscription() function in Subscription 59 std::shared_ptr<Subscription> thisSubscription; in onSubscriptionData() 101 std::map<int32_t, std::shared_ptr<Subscription>> subscriptionsCopy; in onStatsBinderRestart() 116 static std::shared_ptr<Subscription> getBinderCallbackForSubscription( in getBinderCallbackForSubscription() 132 std::shared_ptr<Subscription> subscription = in AStatsManager_addSubscription() 133 SharedRefBase::make<Subscription>(subscriptionId, subscriptionConfig, callback, cookie); in AStatsManager_addSubscription() 151 std::shared_ptr<Subscription> subscription = getBinderCallbackForSubscription(subscription_id); in AStatsManager_removeSubscription() [all …]
|
/packages/modules/StatsD/statsd/src/anomaly/ |
D | subscriber_util.cpp | 34 const std::vector<Subscription>& subscriptions) { in triggerSubscribers() 41 for (const Subscription& subscription : subscriptions) { in triggerSubscribers() 50 case Subscription::SubscriberInformationCase::kIncidentdDetails: in triggerSubscribers() 56 case Subscription::SubscriberInformationCase::kPerfettoDetails: in triggerSubscribers() 62 case Subscription::SubscriberInformationCase::kUprobestatsDetails: in triggerSubscribers() 67 case Subscription::SubscriberInformationCase::kBroadcastSubscriberDetails: in triggerSubscribers()
|
D | AlarmTracker.h | 43 void addSubscription(const Subscription& subscription); 64 std::vector<Subscription> mSubscriptions;
|
D | AnomalyTracker.h | 49 void addSubscription(const Subscription& subscription) { in addSubscription() 162 std::vector<Subscription> mSubscriptions;
|
D | subscriber_util.h | 29 const ConfigKey& configKey, const std::vector<Subscription>& subscriptions);
|
D | AlarmTracker.cpp | 58 void AlarmTracker::addSubscription(const Subscription& subscription) { in addSubscription()
|
/packages/modules/StatsD/statsd/tests/anomaly/ |
D | AlarmTracker_test.cpp | 115 Subscription subRand = createSubscription("subRand", /*rule_type=*/Subscription::ALARM, in TEST() 125 Subscription subAlways = createSubscription("subAlways", /*rule_type=*/Subscription::ALARM, in TEST() 136 Subscription subNever = createSubscription("subNever", /*rule_type=*/Subscription::ALARM, in TEST()
|
D | AnomalyTracker_test.cpp | 419 Subscription subRand = createSubscription("subRand", /*rule_type=*/Subscription::ALERT, in TEST() 430 Subscription subAlways = createSubscription("subAlways", /*rule_type=*/Subscription::ALERT, in TEST() 441 Subscription subNever = createSubscription("subNever", /*rule_type=*/Subscription::ALERT, in TEST()
|
/packages/services/Car/car-lib/src/android/car/hardware/property/ |
D | Subscription.java | 39 public final class Subscription { class 47 private Subscription(@NonNull Builder builder) { in Subscription() method in Subscription 326 public Subscription build() { in build() 329 return new Subscription(this); in build()
|
D | CarPropertyManager.java | 1244 new Subscription.Builder(propertyId).setUpdateRateHz(DEFAULT_UPDATE_RATE_HZ) in subscribePropertyEvents() 1275 new Subscription.Builder(propertyId).setUpdateRateHz(updateRateHz).build()), in subscribePropertyEvents() 1306 new Subscription.Builder(propertyId).addAreaId(areaId).setUpdateRateHz(1f) in subscribePropertyEvents() 1361 Subscription subscription = new Subscription.Builder(propertyId).addAreaId(areaId) in subscribePropertyEvents() 1480 public boolean subscribePropertyEvents(@NonNull List<Subscription> subscriptions, in subscribePropertyEvents() 1494 private List<CarSubscription> convertToCarSubscribeOptions(List<Subscription> subscriptions) { in convertToCarSubscribeOptions() 1497 Subscription clientOption = subscriptions.get(i); in convertToCarSubscribeOptions()
|
/packages/modules/StatsD/tests/src/android/cts/statsd/alarm/ |
D | AlarmTests.java | 29 import com.android.internal.os.StatsdConfigProto.Subscription; 103 .addSubscription(Subscription.newBuilder() in getBaseConfig() 105 .setRuleType(Subscription.RuleType.ALARM) in getBaseConfig()
|
/packages/services/Car/tests/CarLibUnitTest/src/android/car/hardware/property/ |
D | CarPropertyManagerUnitTest.java | 1969 new Subscription.Builder(VENDOR_CONTINUOUS_PROPERTY).addAreaId(0) in testSubscribePropertyEvents_registerMultipleEvents() 1971 new Subscription.Builder(VENDOR_ON_CHANGE_PROPERTY).addAreaId(0).build()), in testSubscribePropertyEvents_registerMultipleEvents() 1985 new Subscription.Builder(VENDOR_CONTINUOUS_PROPERTY).addAreaId(0) in testSubscribePropertyEvents_sanitizeSampleRate() 2002 new Subscription.Builder(VENDOR_CONTINUOUS_PROPERTY) in testSubscribePropertyEvents_registerMultipleEventsSameProperty_throws() 2004 new Subscription.Builder(VENDOR_CONTINUOUS_PROPERTY) in testSubscribePropertyEvents_registerMultipleEventsSameProperty_throws() 2015 new Subscription.Builder(VENDOR_CONTINUOUS_PROPERTY).addAreaId(0) in testSubscribePropertyEvents_registerMultipleEvents_unsubscribe() 2017 new Subscription.Builder(VENDOR_ON_CHANGE_PROPERTY).addAreaId(0) in testSubscribePropertyEvents_registerMultipleEvents_unsubscribe() 2032 new Subscription.Builder(VENDOR_CONTINUOUS_PROPERTY).addAreaId(0) in testSubscribePropertyEvents_registerMultipleEventsWithSameProperty_unsubscribe() 2034 new Subscription.Builder(VENDOR_ON_CHANGE_PROPERTY).addAreaId(0) in testSubscribePropertyEvents_registerMultipleEventsWithSameProperty_unsubscribe() 2038 new Subscription.Builder(VENDOR_CONTINUOUS_PROPERTY).addAreaId(0) in testSubscribePropertyEvents_registerMultipleEventsWithSameProperty_unsubscribe() [all …]
|
/packages/modules/StatsD/statsd/src/subscriber/ |
D | SubscriberReporter.h | 74 const Subscription& subscription, 91 const Subscription& subscription,
|
D | SubscriberReporter.cpp | 92 const Subscription& subscription, in alertBroadcastSubscriber() 134 const Subscription& subscription, in sendBroadcastLocked()
|
/packages/modules/StatsD/statsd/src/metrics/parsing_utils/ |
D | metrics_manager_util.h | 236 const Subscription& subscription = config.subscription(i); in initSubscribersForSubscriptionType() 241 Subscription::SubscriberInformationCase::SUBSCRIBER_INFORMATION_NOT_SET) { in initSubscribersForSubscriptionType() 251 case Subscription::ALARM: in initSubscribersForSubscriptionType() 255 case Subscription::ALERT: in initSubscribersForSubscriptionType() 259 case Subscription::RULE_TYPE_UNSPECIFIED: in initSubscribersForSubscriptionType()
|
/packages/apps/Car/systemlibs/car-data-subscription-lib/ |
D | data_subscription_flags.aconfig | 7 description: "This flag enables Data Subscription pop-up in Car"
|
/packages/modules/StatsD/tests/src/android/cts/statsd/alert/ |
D | AnomalyDetectionTests.java | 37 import com.android.internal.os.StatsdConfigProto.Subscription; 375 .addSubscription(Subscription.newBuilder() in testPerfetto() 377 .setRuleType(Subscription.RuleType.ALERT) in testPerfetto() 544 .addSubscription(Subscription.newBuilder() in getBaseConfig() 546 .setRuleType(Subscription.RuleType.ALERT) in getBaseConfig()
|
/packages/modules/StatsD/statsd/tests/e2e/ |
D | ConfigUpdate_e2e_test.cpp | 2136 Subscription preserveSub = createSubscription("S1", Subscription::ALERT, alertPreserve.id()); in TEST_F() 2138 Subscription replaceSub = createSubscription("S2", Subscription::ALERT, alertReplace.id()); in TEST_F() 2140 Subscription removeSub = createSubscription("S3", Subscription::ALERT, alertRemove.id()); in TEST_F() 2254 Subscription newSub = createSubscription("S4", Subscription::ALERT, alertNew.id()); in TEST_F() 2355 Subscription preserveSub = createSubscription("S1", Subscription::ALERT, alertPreserve.id()); in TEST_F() 2357 Subscription replaceSub = createSubscription("S2", Subscription::ALERT, alertReplace.id()); in TEST_F() 2359 Subscription removeSub = createSubscription("S3", Subscription::ALERT, alertRemove.id()); in TEST_F() 2588 Subscription newSub = createSubscription("S4", Subscription::ALERT, alertNew.id()); in TEST_F() 2685 Subscription preserveSub = createSubscription("S1", Subscription::ALARM, alarmPreserve.id()); in TEST_F() 2687 Subscription replaceSub = createSubscription("S2", Subscription::ALARM, alarmReplace.id()); in TEST_F() [all …]
|
/packages/modules/StatsD/statsd/tests/metrics/parsing_utils/ |
D | config_update_utils_test.cpp | 3749 Subscription subscription1 = createSubscription("S1", Subscription::ALERT, alert1Id); in TEST_F() 3751 Subscription subscription2 = createSubscription("S2", Subscription::ALERT, alert1Id); in TEST_F() 3753 Subscription subscription3 = createSubscription("S3", Subscription::ALERT, alert2Id); in TEST_F() 3775 Subscription subscription4 = createSubscription("S4", Subscription::ALERT, alert2Id); in TEST_F() 3866 for (const Subscription& subscription : newAnomalyTrackers[alert1Index]->mSubscriptions) { in TEST_F() 3871 for (const Subscription& subscription : newAnomalyTrackers[alert2Index]->mSubscriptions) { in TEST_F() 3895 Subscription subscription1 = createSubscription("S1", Subscription::ALARM, alarm1Id); in TEST_F() 3897 Subscription subscription2 = createSubscription("S2", Subscription::ALARM, alarm1Id); in TEST_F() 3899 Subscription subscription3 = createSubscription("S3", Subscription::ALARM, alarm2Id); in TEST_F() 3916 Subscription subscription4 = createSubscription("S4", Subscription::ALARM, alarm1Id); in TEST_F() [all …]
|
D | metrics_manager_util_test.cpp | 1332 *config.add_subscription() = createSubscription("Subscription", Subscription::ALERT, alertId); in TEST_F() 1342 *config.add_subscription() = createSubscription("Subscription", Subscription::ALARM, alarmId); in TEST_F() 1351 Subscription subscription = in TEST_F() 1352 createSubscription("Subscription", Subscription::ALERT, /*alert id=*/1); in TEST_F()
|
/packages/services/Car/car-lib/api/ |
D | current.txt | 792 …ePropertyEvents(@NonNull java.util.List<android.car.hardware.property.Subscription>, @Nullable jav… 952 @FlaggedApi("android.car.feature.batched_subscriptions") public final class Subscription { 964 …@FlaggedApi("android.car.feature.batched_subscriptions") public static final class Subscription.Bu… 965 ctor public Subscription.Builder(int); 966 method @NonNull public android.car.hardware.property.Subscription.Builder addAreaId(int); 967 method @NonNull public android.car.hardware.property.Subscription build(); 968 …ption_with_resolution") @NonNull public android.car.hardware.property.Subscription.Builder setReso… 969 method @NonNull public android.car.hardware.property.Subscription.Builder setUpdateRateFast(); 970 … method @NonNull public android.car.hardware.property.Subscription.Builder setUpdateRateFastest(); 971 …method @NonNull public android.car.hardware.property.Subscription.Builder setUpdateRateHz(@FloatRa… [all …]
|
/packages/services/Car/car-lib-module/api/ |
D | current.txt | 792 …ePropertyEvents(@NonNull java.util.List<android.car.hardware.property.Subscription>, @Nullable jav… 952 @FlaggedApi("android.car.feature.batched_subscriptions") public final class Subscription { 964 …@FlaggedApi("android.car.feature.batched_subscriptions") public static final class Subscription.Bu… 965 ctor public Subscription.Builder(int); 966 method @NonNull public android.car.hardware.property.Subscription.Builder addAreaId(int); 967 method @NonNull public android.car.hardware.property.Subscription build(); 968 …ption_with_resolution") @NonNull public android.car.hardware.property.Subscription.Builder setReso… 969 method @NonNull public android.car.hardware.property.Subscription.Builder setUpdateRateFast(); 970 … method @NonNull public android.car.hardware.property.Subscription.Builder setUpdateRateFastest(); 971 …method @NonNull public android.car.hardware.property.Subscription.Builder setUpdateRateHz(@FloatRa… [all …]
|
/packages/modules/StatsD/statsd/src/ |
D | statsd_config.proto | 561 message Subscription { message 636 repeated Subscription subscription = 11;
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/property/ |
D | PropertyTestFragment.java | 35 import android.car.hardware.property.Subscription; 466 new Subscription.Builder(propertyId) in onItemSelected()
|