Home
last modified time | relevance | path

Searched refs:CarPowerPolicyFilter (Results 1 – 25 of 25) sorted by relevance

/packages/services/Car/car-lib/src/android/car/hardware/power/
DCarPowerPolicyFilter.java34 public final class CarPowerPolicyFilter implements Parcelable { class
57 /* package-private */ CarPowerPolicyFilter( in CarPowerPolicyFilter() method in CarPowerPolicyFilter
91 /* package-private */ CarPowerPolicyFilter(@NonNull android.os.Parcel in) { in CarPowerPolicyFilter() method in CarPowerPolicyFilter
105 public static final @NonNull Parcelable.Creator<CarPowerPolicyFilter> CREATOR
106 = new Parcelable.Creator<CarPowerPolicyFilter>() {
108 public CarPowerPolicyFilter[] newArray(int size) {
109 return new CarPowerPolicyFilter[size];
113 public CarPowerPolicyFilter createFromParcel(@NonNull android.os.Parcel in) {
114 return new CarPowerPolicyFilter(in);
145 public @NonNull CarPowerPolicyFilter build() { in build()
[all …]
DCarPowerManager.java55 private final ArrayMap<CarPowerPolicyListener, Pair<Executor, CarPowerPolicyFilter>>
413 @NonNull CarPowerPolicyFilter filter, @NonNull CarPowerPolicyListener listener) { in addPowerPolicyListener()
419 CarPowerPolicyFilter newFilter = null; in addPowerPolicyListener()
423 Pair<Executor, CarPowerPolicyFilter> pair = in addPowerPolicyListener()
424 new Pair<>(executor, new CarPowerPolicyFilter(filterComponents)); in addPowerPolicyListener()
456 CarPowerPolicyFilter filter = null; in removePowerPolicyListener()
458 Pair<Executor, CarPowerPolicyFilter> pair = mPolicyListenerMap.remove(listener); in removePowerPolicyListener()
558 private CarPowerPolicyFilter createFilterFromInterestedComponentsLocked() { in createFilterFromInterestedComponentsLocked()
559 CarPowerPolicyFilter newFilter = null; in createFilterFromInterestedComponentsLocked()
566 newFilter = new CarPowerPolicyFilter(components); in createFilterFromInterestedComponentsLocked()
[all …]
DICarPower.aidl20 import android.car.hardware.power.CarPowerPolicyFilter;
46 void addPowerPolicyListener(in CarPowerPolicyFilter filter, in addPowerPolicyListener()
DCarPowerPolicyFilter.aidl19 parcelable CarPowerPolicyFilter cpp_header "CarPowerPolicyFilter.h";
DPowerComponentUtil.java111 @NonNull CarPowerPolicyFilter filter) { in hasComponents()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hardware/power/
DPowerComponentUtilUnitTest.java22 import android.car.hardware.power.CarPowerPolicyFilter;
60 CarPowerPolicyFilter filterAudio = new CarPowerPolicyFilter.Builder() in testHasComponents()
62 CarPowerPolicyFilter filterWifi = new CarPowerPolicyFilter.Builder() in testHasComponents()
64 CarPowerPolicyFilter filterLocationNfc = new CarPowerPolicyFilter.Builder() in testHasComponents()
66 CarPowerPolicyFilter filterMedia = new CarPowerPolicyFilter.Builder() in testHasComponents()
DCarPowerManagerUnitTest.java48 import android.car.hardware.power.CarPowerPolicyFilter;
309 CarPowerPolicyFilter filterAudio = new CarPowerPolicyFilter.Builder() in testAddPowerPolicyListener()
311 CarPowerPolicyFilter filterWifi = new CarPowerPolicyFilter.Builder() in testAddPowerPolicyListener()
313 CarPowerPolicyFilter filterLocation = new CarPowerPolicyFilter.Builder() in testAddPowerPolicyListener()
332 CarPowerPolicyFilter filterAudio = new CarPowerPolicyFilter.Builder() in testAddPowerPolicyListener_Twice_WithDifferentFilters()
334 CarPowerPolicyFilter filterLocation = new CarPowerPolicyFilter.Builder() in testAddPowerPolicyListener_Twice_WithDifferentFilters()
347 CarPowerPolicyFilter filter = new CarPowerPolicyFilter.Builder() in testAddPowerPolicyListener_nullListener()
365 CarPowerPolicyFilter filterAudio = new CarPowerPolicyFilter.Builder() in testRemovePowerPolicyListener()
381 CarPowerPolicyFilter filter = new CarPowerPolicyFilter.Builder() in testRemovePowerPolicyListener_Twice()
/packages/services/Car/car-lib/native/CarPowerManager/
DCarPowerPolicyFilter.cpp29 CarPowerPolicyFilter::CarPowerPolicyFilter(const std::vector<int32_t>& components) : in CarPowerPolicyFilter() function in android::car::hardware::power::CarPowerPolicyFilter
32 status_t CarPowerPolicyFilter::writeToParcel(Parcel* parcel) const { in writeToParcel()
36 status_t CarPowerPolicyFilter::readFromParcel(const Parcel* parcel) { in readFromParcel()
/packages/services/Car/car-lib/native/include/
DCarPowerPolicyFilter.h29 class CarPowerPolicyFilter : public android::Parcelable {
31 CarPowerPolicyFilter() = default;
32 explicit CarPowerPolicyFilter(const std::vector<int32_t>& components);
33 virtual ~CarPowerPolicyFilter() = default;
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/power/
DCarPowerManagementServiceUnitTest.java37 import android.car.hardware.power.CarPowerPolicyFilter;
531 CarPowerPolicyFilter filterAudio = new CarPowerPolicyFilter.Builder() in testAddPowerPolicyListener()
533 CarPowerPolicyFilter filterWifi = new CarPowerPolicyFilter.Builder() in testAddPowerPolicyListener()
535 CarPowerPolicyFilter filterLocation = new CarPowerPolicyFilter.Builder() in testAddPowerPolicyListener()
553 CarPowerPolicyFilter filterAudio = new CarPowerPolicyFilter.Builder() in testRemovePowerPolicyListener()
578 CarPowerPolicyFilter filterAudio = new CarPowerPolicyFilter.Builder() in testParcelableCreation()
582 CarPowerPolicyFilter[] filters = CarPowerPolicyFilter.CREATOR.newArray(1); in testParcelableCreation()
/packages/services/Car/cpp/powerpolicy/server/tests/
DCarPowerPolicyServerTest.cpp72 const CarPowerPolicyFilter& filter) { in registerPowerPolicyChangeCallback()
91 CarPowerPolicyFilter filter; in TEST_F()
111 CarPowerPolicyFilter filter; in TEST_F()
121 CarPowerPolicyFilter filter; in TEST_F()
DSilentModeHandlerTest.cpp113 const CarPowerPolicyFilter& filter),
/packages/apps/Car/Settings/src/com/android/car/settings/common/
DPowerPolicyListener.java22 import android.car.hardware.power.CarPowerPolicyFilter;
71 CarPowerPolicyFilter filter = new CarPowerPolicyFilter.Builder() in PowerPolicyListener()
/packages/services/Car/service/src/com/android/car/audio/
DCarAudioPowerListener.java23 import android.car.hardware.power.CarPowerPolicyFilter;
85 CarPowerPolicyFilter filter = new CarPowerPolicyFilter.Builder() in startListeningForPolicyChanges()
/packages/services/Car/tests/CarSecurityPermissionTest/src/com/android/car/power/
DCarPowerManagerPermissionTest.java30 import android.car.hardware.power.CarPowerPolicyFilter;
120 CarPowerPolicyFilter filter = new CarPowerPolicyFilter.Builder() in testAddPowerPolicyChangeListener()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/
DCarAudioPowerListenerTest.java28 import android.car.hardware.power.CarPowerPolicyFilter;
80 ArgumentCaptor<CarPowerPolicyFilter> captor = ArgumentCaptor.forClass( in startListeningForPolicyChanges_addsPowerPolicyListener()
81 CarPowerPolicyFilter.class); in startListeningForPolicyChanges_addsPowerPolicyListener()
/packages/services/Car/service/src/com/android/car/
DBluetoothDeviceConnectionPolicy.java29 import android.car.hardware.power.CarPowerPolicyFilter;
322 CarPowerPolicyFilter filter = new CarPowerPolicyFilter.Builder() in init()
DCarMediaService.java27 import android.car.hardware.power.CarPowerPolicyFilter;
401 CarPowerPolicyFilter filter = new CarPowerPolicyFilter.Builder() in setPowerPolicyListener()
/packages/services/Car/cpp/powerpolicy/server/src/
DCarPowerPolicyServer.h46 const CarPowerPolicyFilter& filter, int32_t pid) : in CallbackInfo()
52 CarPowerPolicyFilter filter;
161 const CarPowerPolicyFilter& filter) override;
DCarPowerPolicyServer.cpp251 const sp<ICarPowerPolicyChangeCallback>& callback, const CarPowerPolicyFilter& filter) { in registerPowerPolicyChangeCallback()
/packages/services/Car/cpp/powerpolicy/client/src/
DPowerPolicyClientBase.cpp35 using aafap::CarPowerPolicyFilter;
139 CarPowerPolicyFilter filter; in connectToDaemon()
/packages/services/Car/service/src/com/android/car/power/
DPowerComponentHandler.java32 import android.car.hardware.power.CarPowerPolicyFilter;
185 boolean isComponentChanged(CarPowerPolicyFilter filter) { in isComponentChanged()
DCarPowerManagementService.java25 import android.car.hardware.power.CarPowerPolicyFilter;
1125 public void addPowerPolicyListener(CarPowerPolicyFilter filter, in addPowerPolicyListener()
1352 CarPowerPolicyFilter filter = in notifyPowerPolicyChange()
1353 (CarPowerPolicyFilter) mPowerPolicyListeners.getBroadcastCookie(idx); in notifyPowerPolicyChange()
/packages/services/Car/car-lib/
DAndroid.bp24 "src/android/car/hardware/power/CarPowerPolicyFilter.aidl",
64 "native/CarPowerManager/CarPowerPolicyFilter.cpp",
/packages/services/Car/car-lib/api/
Dcurrent.txt560 …ava.util.concurrent.Executor, @NonNull android.car.hardware.power.CarPowerPolicyFilter, @NonNull a…
579 public final class CarPowerPolicyFilter implements android.os.Parcelable {
583 …tatic final android.os.Parcelable.Creator<android.car.hardware.power.CarPowerPolicyFilter> CREATOR;
586 public static final class CarPowerPolicyFilter.Builder {
587 ctor public CarPowerPolicyFilter.Builder();
588 method @NonNull public android.car.hardware.power.CarPowerPolicyFilter build();
589 …method @NonNull public android.car.hardware.power.CarPowerPolicyFilter.Builder setComponents(@NonN…