modified Same code location, different body
These chunks live at the same (file, symbol) in both versions
but have different content hashes — so the code definitely changed
between android-17.0.0_r1 and android-13.0.0_r84.
-
packages/services/Car/service/src/com/android/car/hal/PropertyHalService.java PropertyHalService.setProperty AOSP 17 android-17.0.0_r1
lines 1300–1309 0.75public void setProperty(CarPropertyValue carPropertyValue) throws IllegalArgumentException, ServiceSpecificException { HalPropValue valueToSet; synchronized (mLock) {AOSP 13 android-13.0.0_r84
lines 278–292 0.76public void setProperty(CarPropertyValue prop) throws IllegalArgumentException, ServiceSpecificException { int halPropId = managerToHalPropId(prop.getPropertyId()); if (!is -
packages/services/Car/service/src/com/android/car/CarPropertyService.java CarPropertyService.init AOSP 17 android-17.0.0_r1
lines 328–338 0.74@Override public void init() { synchronized (mLock) { // Cache the configs list to avoid subsequent binder calls mPropertyIdToCarPropertyConfig = mPropertyHalServicAOSP 13 android-13.0.0_r84
lines 200–211 0.74@Override public void init() { synchronized (mLock) { // Cache the configs list and permissions to avoid subsequent binder calls mConfigs = mHal.getPropertyList(); -
packages/services/Car/service/src/com/android/car/CarPropertyService.java CarPropertyService.getPropertyList AOSP 17 android-17.0.0_r1
lines 829–841 0.74@NonNull @Override public CarPropertyConfigList getPropertyList() { int[] allPropIds; // Avoid permission checking under lock. synchronized (mLock) { allProAOSP 13 android-13.0.0_r84
lines 423–435 0.74@NonNull @Override public List<CarPropertyConfig> getPropertyList() { int[] allPropId; // Avoid permission checking under lock. synchronized (mLock) { allPr -
packages/services/Car/service/src/com/android/car/CarPropertyService.java CarPropertyService.setProperty AOSP 17 android-17.0.0_r1
lines 987–1035 0.74@Override public void setProperty(CarPropertyValue carPropertyValue, ICarPropertyEventListener iCarPropertyEventListener) throws IllegalArgumentException, ServiceSpecificExAOSP 13 android-13.0.0_r84
lines 578–604 0.76@Override public void setProperty(CarPropertyValue prop, ICarPropertyEventListener listener) throws IllegalArgumentException, ServiceSpecificException { int propId = prop.getPr
only in 17 Removed or refactored away in 13
Matched the query in AOSP 17 (android-17.0.0_r1) but didn't appear in the top results for AOSP 13. They may have been removed, or refactored beyond the query's reach.
-
@Override public void registerSupportedValuesChangeCallback(List<PropIdAreaId> propIdAreaIds, ISupportedValuesChangeCallback callback) { for (int i = 0; i < propIdAreaIds.size( -
@Override public void getAndDispatchInitialValue(List<PropIdAreaId> propIdAreaIds, ICarPropertyEventListener carPropertyEventListener) { requireNonNull(propIdAreaIds); -
@Override public void getAndDispatchInitialValue(List<PropIdAreaId> propIdAreaIds, ICarPropertyEventListener carPropertyEventListener) throws RemoteException { List<CarProperty -
@Override public MinMaxSupportedPropertyValue getMinMaxSupportedValue(int propertyId, int areaId) { var areaIdConfig = verifyGetSupportedValueRequestAndGetAreaIdConfig(propertyId, areaId); -
@Override public void injectVehicleProperties(List<CarPropertyValue> carPropertyValues) { CarServiceUtils.assertPermission(mContext, Car.PERMISSION_INJECT_VEHICLE_PROPERTIES); CarS -
@Override public @Nullable List<RawPropertyValue> getSupportedValuesList(int propertyId, int areaId) { var areaIdConfig = verifyGetSupportedValueRequestAndGetAreaIdConfig(propertyId, areaI -
@Override protected void configureMockedHal() { PropertyHandler handler = new PropertyHandler(); for (VehiclePropValue value : mDefaultPropValues.values()) { handler.on -
@GuardedBy("mLock") private HalPropValue carPropertyValueToHalPropValueLocked(CarPropertyValue carPropertyValue) { int mgrPropId = carPropertyValue.getPropertyId(); int halPropId = -
@Override public void onInjectionPropertyEvent(List<HalPropValue> propValues) { // Note that this function runs from a binder thread and should not do heavy works. Binder.clearCall -
public void registerSupportedValuesChange(HalServiceBase service, List<PropIdAreaId> propIdAreaIds) { var propertyHandlers = mPropertyHandlersRef.get(); for (int i = 0; i < -
@Override @Nullable public CarPropertyValue getLastInjectedVehicleProperty(int propertyId) { CarServiceUtils.assertPermission(mContext, Car.PERMISSION_INJECT_VEHICLE_PROPERTIES);
only in 13 New in 13 (or refactored from elsewhere)
Matched the query in AOSP 13 (android-13.0.0_r84) but didn't appear in the top results for AOSP 17. Likely added in this version, or refactored from older code that no longer matches the query.
-
public CarPropertyManager(Car car, @NonNull ICarProperty service) { super(car); mService = service; mAppTargetSdk = getContext().getApplicationInfo().targetSdkVersion; -
@Nullable public CarPropertyValue getProperty(int mgrPropId, int areaId) throws IllegalArgumentException, ServiceSpecificException { int halPropId = managerToHalPropId(mgrPropI -
private void getAndDispatchPropertyInitValue(CarPropertyConfig config, Client client) { List<CarPropertyEvent> events = new ArrayList<>(); int propId = config.getPropertyId(); -
public CarPropertyValue getPropertySafe(int prop, int zone) { synchronized (mLock) { if (mConfigs.get(prop) == null) { // Do not attempt to register an invalid prop -
private void checkPropertyAccessibility(int propId) { // Checks if the car implemented the property or not. synchronized (mLock) { if (mConfigs.get(propId) == null) { -
private class PropertyHandler implements VehicleHalPropertyHandler { HashMap<Integer, VehiclePropValue> mMap = new HashMap<>(); @Override public synchronized void onPropertySet -
private final class GetSetValuesCallback extends IVehicleCallback.Stub { @Override public void onGetValues(GetValueResults responses) throws RemoteException { AidlVehicleS -
packages/services/Car/tests/carservice_test/src/com/android/car/hal/test/AidlMockedVehicleHal.java 0.72
public interface VehicleHalPropertyHandler { default void onPropertySet(VehiclePropValue value) {} default VehiclePropValue onPropertyGet(VehiclePropValue value) { return n -
@Override public void onHalEvents(List<HalPropValue> values) { PropertyHalListener listener; synchronized (mLock) { listener = mListener; } if (listener -
private class AidlSubscriptionClient extends IVehicleCallback.Stub implements SubscriptionClient { private final HalClientCallback mCallback; private final HalPropValueBuil