Home
last modified time | relevance | path

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

12345

/packages/services/Car/tests/MultiDisplayTest/src/com/google/android/car/multidisplaytest/occupantconnection/
DOccupantConnectionFragment.java179 private void addPeerOccupantZoneItem(OccupantZoneInfo zone, int occupantZoneStates, in addPeerOccupantZoneItem() argument
185 if (mRemoteDeviceManager.isOccupantZonePowerOn(zone)) { in addPeerOccupantZoneItem()
190 mRemoteDeviceManager.setOccupantZonePower(zone, true); in addPeerOccupantZoneItem()
191 Slog.d(mTag, "Power on " + zone); in addPeerOccupantZoneItem()
198 if (!mRemoteDeviceManager.isOccupantZonePowerOn(zone)) { in addPeerOccupantZoneItem()
203 mRemoteDeviceManager.setOccupantZonePower(zone, false); in addPeerOccupantZoneItem()
204 Slog.d(mTag, "Power off " + zone); in addPeerOccupantZoneItem()
210 int currentZoneState = mOccupantZoneStateMap.getOrDefault(zone, INITIAL_ZONE_STATE); in addPeerOccupantZoneItem()
211 int currentAppState = mAppStateMap.getOrDefault(zone, INITIAL_APP_STATE); in addPeerOccupantZoneItem()
216 bundle.putParcelable(Constants.KEY_OCCUPANT_ZONE, zone); in addPeerOccupantZoneItem()
[all …]
/packages/services/Car/service/src/com/android/car/audio/
DCarDuckingUtils.java34 CarAudioZone zone) { in generateDuckingInfo() argument
37 getAddressesToDuck(attributesToDuck, attributesHoldingFocus, zone); in generateDuckingInfo()
42 zone.getId(), in generateDuckingInfo()
45 CarHalAudioUtils.audioAttributesToMetadatas(attributesHoldingFocus, zone)); in generateDuckingInfo()
57 List<AudioAttributes> activeAudioAttributes, CarAudioZone zone) { in getAddressesToDuck() argument
58 Set<Integer> uniqueContexts = zone.getCarAudioContext() in getAddressesToDuck()
60 Set<Integer> contextsToDuck = zone.getCarAudioContext() in getAddressesToDuck()
62 Set<String> addressesToDuck = getAddressesForContexts(contextsToDuck, zone); in getAddressesToDuck()
65 Set<String> unduckedAddresses = getAddressesForContexts(unduckedContexts, zone); in getAddressesToDuck()
86 private static Set<String> getAddressesForContexts(Set<Integer> contexts, CarAudioZone zone) { in getAddressesForContexts() argument
[all …]
DCarHalAudioUtils.java70 AudioAttributes audioAttributes, CarAudioZone zone) { in audioAttributeToMetadata() argument
71 Objects.requireNonNull(zone, "Car audio zone can not be null"); in audioAttributeToMetadata()
72 int carAudioContextId = zone.getCarAudioContext() in audioAttributeToMetadata()
74 String address = zone.getAddressForContext(carAudioContextId); in audioAttributeToMetadata()
104 @AttributeUsage int usage, CarAudioZone zone) { in usageToMetadata() argument
105 Objects.requireNonNull(zone, "Car audio zone can not be null"); in usageToMetadata()
107 return audioAttributeToMetadata(attributes, zone); in usageToMetadata()
127 List<AudioAttributes> audioAttributes, CarAudioZone zone) { in audioAttributesToMetadatas() argument
128 Objects.requireNonNull(zone, "Car audio zone can not be null"); in audioAttributesToMetadatas()
133 zone)); in audioAttributesToMetadatas() local
DCarAudioZonesValidator.java96 CarAudioZone zone = carAudioZones.valueAt(i); in validateZoneConfigsForEachZone() local
97 if (!zone.validateZoneConfigs(useCoreAudioRouting)) { in validateZoneConfigsForEachZone()
99 "Invalid zone configurations for zone " + zone.getId()); in validateZoneConfigsForEachZone()
104 if (!zone.validateCanUseDynamicMixRouting( in validateZoneConfigsForEachZone()
105 zone.isPrimaryZone() && useCoreAudioRouting)) { in validateZoneConfigsForEachZone()
107 "Invalid Configuration to use Dynamic Mix for zone " + zone.getId()); in validateZoneConfigsForEachZone()
DCarAudioZonesHelper.java391 CarAudioZone zone = parseAudioZone(parser); in parseAudioZones() local
392 carAudioZones.put(zone.getId(), zone); in parseAudioZones() local
426 final CarAudioZone zone = new CarAudioZone(mCarAudioContext, zoneName, audioZoneId); in parseAudioZone() local
436 parseInputAudioDevices(parser, zone); in parseAudioZone()
441 zone.addZoneConfig(zoneConfigBuilder.build()); in parseAudioZone()
442 return zone; in parseAudioZone()
448 parseZoneConfigs(parser, zone); in parseAudioZone()
450 parseInputAudioDevices(parser, zone); in parseAudioZone()
455 return zone; in parseAudioZone()
508 private void parseInputAudioDevices(XmlPullParser parser, CarAudioZone zone) in parseInputAudioDevices() argument
[all …]
DCarAudioService.java743 CarAudioZone zone = mCarAudioZones.valueAt(i); in dump() local
744 zone.dump(writer); in dump()
862 CarAudioZone zone = mCarAudioZones.valueAt(i); in dumpProto() local
863 zone.dumpProto(proto); in dumpProto()
1919 CarAudioZone zone = mCarAudioZones.valueAt(i);
1921 zone.init();
1922 Slogf.v(TAG, "Processed audio zone: %s", zone);
2762 CarAudioZone zone = mCarAudioZones.get(zoneId);
2763 return shareUserIdMediaInMainZoneLocked(userId, zone);
3186 CarAudioZone zone;
[all …]
DCarAudioGainMonitor.java84 int zone = gain.getZoneId(); in handleAudioDeviceGainsChanged() local
85 if (!gainsByZones.contains(zone)) { in handleAudioDeviceGainsChanged()
86 gainsByZones.put(zone, new ArrayList<>(1)); in handleAudioDeviceGainsChanged()
88 gainsByZones.get(zone).add(gain); in handleAudioDeviceGainsChanged()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DOccupantZoneHelper.java102 for (OccupantZoneInfo zone : mZones) { in setUpOccupantZones()
103 if (zone.occupantType == type && zone.seat == seat) { in setUpOccupantZones()
104 return zone; in setUpOccupantZones()
117 for (OccupantZoneInfo zone : mZones) { in setUpOccupantZones()
118 if (zone.zoneId == zoneId) { in setUpOccupantZones()
190 public int getDisplayId(OccupantZoneInfo zone) { in getDisplayId() argument
191 return zone.zoneId; // For simplicity, use the same id with zone. in getDisplayId()
195 for (OccupantZoneInfo zone : mZones) { in hasZone()
196 if (zoneId == zone.zoneId) { in hasZone()
DCarRemoteDeviceManagerUnitTest.java92 OccupantZoneInfo zone = in testGetEndpointPackageInfo() local
98 assertThat(mRemoteDeviceManager.getEndpointPackageInfo(zone)).isEqualTo(expectedValue); in testGetEndpointPackageInfo()
191 OccupantZoneInfo zone = in testSetOccupantZonePowerOn() local
194 mRemoteDeviceManager.setOccupantZonePower(zone, true); in testSetOccupantZonePowerOn()
195 verify(mService).setOccupantZonePower(zone, true); in testSetOccupantZonePowerOn()
201 OccupantZoneInfo zone = in testSetOccupantZonePowerOff() local
204 mRemoteDeviceManager.setOccupantZonePower(zone, false); in testSetOccupantZonePowerOff()
205 verify(mService).setOccupantZonePower(zone, false); in testSetOccupantZonePowerOff()
211 OccupantZoneInfo zone = in testIsOccupantZonePowerOn() local
214 when(mService.isOccupantZonePowerOn(zone)).thenReturn(expectedValue); in testIsOccupantZonePowerOn()
[all …]
/packages/modules/GeoTZ/data_pipeline/
DAndroid.bp66 // Step 1 of the OSM time zone geolocation reference data pipeline.
68 // Converts geojson time zone boundaries (from timezone-boundary-builder) to TzS2Polygon proto
69 // files, one per time zone ID.
76 // Step 2 of the OSM time zone geolocation reference data pipeline.
78 // Reads TzS2Polygon proto files and writes out TzS2Polygon proto files with canonical time zone
86 // Step 3 of the OSM time zone geolocation reference data pipeline.
95 // Step 4 of the OSM time zone geolocation reference data pipeline.
97 // Converts TsS2CellUnion proto files to (single time zone) TzS2Ranges proto files.
104 // Step 5 of the OSM time zone geolocation reference data pipeline.
106 // Merges multiple, single time zone TzS2Ranges proto files into one, multiple time zone TzS2Ranges
[all …]
/packages/services/Car/tests/carservice_test/src/com/android/car/audio/
DCarAudioZonesValidatorTest.java56 CarAudioZone zone = new MockBuilder().withInputDevices(new ArrayList<>()).build(); in validate_failsOnEmptyInputDevices() local
58 zones.put(zone.getId(), zone); in validate_failsOnEmptyInputDevices() local
69 CarAudioZone zone = new MockBuilder().withInputDevices(null).build(); in validate_failsOnNullInputDevices() local
71 zones.put(zone.getId(), zone); in validate_failsOnNullInputDevices() local
82 CarAudioZone zone = new MockBuilder().withInputDevices( in validate_failsOnMissingMicrophoneInputDevices() local
86 zones.put(zone.getId(), zone); in validate_failsOnMissingMicrophoneInputDevices() local
208 CarAudioZone zone = new MockBuilder().withInputDevices(getValidInputDevices()).build(); in generateAudioZonesWithPrimary() local
210 zones.put(zone.getId(), zone); in generateAudioZonesWithPrimary() local
/packages/modules/GeoTZ/
DREADME.md2 time zone provider. Location time zone providers are used for location-based
3 time zone detection on Android. See Android's
11 reference location time zone provider.
21 - A high-level API for performing time zone ID lookups for a location using
25 - A reference location time zone provider that uses AOSP APIs to obtain
26 location and the `geotz_lookup` APIs to obtain the time zone IDs to pass to
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/
DTimeZoneFragment.java69 for (final Map<String, Object> zone : zoneList) { in onCreatePreferences()
70 zonePrefs.add(new ZonePreference(themedContext, zone)); in onCreatePreferences()
129 public ZonePreference(Context context, Map<? extends String, ?> zone) { in ZonePreference() argument
132 setKey((String) zone.get(ZoneGetter.KEY_ID)); in ZonePreference()
134 setTitle((String) zone.get(ZoneGetter.KEY_DISPLAYNAME)); in ZonePreference()
135 setSummary((String) zone.get(ZoneGetter.KEY_GMT)); in ZonePreference()
136 offset = (Integer) zone.get(ZoneGetter.KEY_OFFSET); in ZonePreference()
/packages/modules/Connectivity/staticlibs/framework/com/android/net/module/util/
DBestClock.java44 public BestClock(ZoneId zone, Clock... clocks) { in BestClock() argument
46 this.mZone = zone; in BestClock()
70 public Clock withZone(ZoneId zone) { in withZone() argument
71 return new BestClock(zone, mClocks); in withZone()
/packages/modules/GeoTZ/tzs2storage/tools/src/proto/
Dgeotz_protos.proto26 // All the time zone ID sets referenced by index from the ranges.
29 // S2 cell ranges with the same time zone IDs. Must be ordered by (unsigned)
34 // Sets of time zone IDs.
37 // A set of IANA TZDB time zone IDs, e.g. {"Europe/London", "Europe/Paris"}
41 // An S2 cell range with the same time zone ID(s).
/packages/modules/GeoTZ/tzs2storage/
DREADME.md2 time zone detection.
61 The file stores time zone geolocation data at a single S2 level. Logically, the data consists of:
64 {start S2 cell ID (inclusive)}, {end S2 cell ID (exclusive)}, {time zone IDs}
67 The main usecase of the file is to lookup the time zone ID(s) (if any) for a given S2 cell ID.
80 The time zone ID strings are also only stored once and are referenced indirectly, avoiding repeated
121 Sets of one or more time zone IDs are referenced by every range stored in the TZ S2 data file.
123 Individual time zone IDs are strings like "America/Los_Angeles" that should only be stored once to
126 Further, the time zone IDs are referenced as sets, e.g. one cell range may reference
140 "Europe/London", since the areas covered by those time zone IDs are geographically separate.
144 Every time zone ID string referenced in the file is assigned a numeric ID. The string is stored once
[all …]
/packages/services/Car/car-lib/src/android/car/hardware/
DCarVendorExtensionManager.java68 private void handleOnErrorEvent(int propertyId, int zone) { in handleOnErrorEvent() argument
74 l.onErrorEvent(propertyId, zone); in handleOnErrorEvent()
100 void onErrorEvent(int propertyId, int zone); in onErrorEvent() argument
229 public void onErrorEvent(int propertyId, int zone) { in onErrorEvent() argument
232 manager.handleOnErrorEvent(propertyId, zone); in onErrorEvent()
/packages/apps/Car/SystemUI/src/com/android/systemui/car/input/
DDisplayInputSinkController.java204 OccupantZoneInfo zone = allZones.get(i); in initPassengerDisplays() local
205 if (zone.occupantType == OCCUPANT_TYPE_DRIVER) continue; // Skip a driver. in initPassengerDisplays()
206 Display display = mOccupantZoneManager.getDisplayForOccupant(zone, DISPLAY_TYPE_MAIN); in initPassengerDisplays()
208 Slog.w(TAG, "Can't access the display of zone=" + zone); in initPassengerDisplays()
224 OccupantZoneInfo zone = mOccupantZoneManager.getOccupantZoneForDisplayId(displayId); in mayUpdatePassengerDisplayOnAdded() local
225 if (zone == null) { in mayUpdatePassengerDisplayOnAdded()
229 if (zone.occupantType == OCCUPANT_TYPE_DRIVER) { in mayUpdatePassengerDisplayOnAdded()
233 Display display = mOccupantZoneManager.getDisplayForOccupant(zone, DISPLAY_TYPE_MAIN); in mayUpdatePassengerDisplayOnAdded()
235 Slog.w(TAG, "Can't access the display of zone=" + zone); in mayUpdatePassengerDisplayOnAdded()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/users/
DProfileUserFragment.java157 for (CarOccupantZoneManager.OccupantZoneInfo zone : zonelist) { in updateTextInfo()
158 zoneStatebuilder.append(zone.zoneId); in updateTextInfo()
160 zoneStatebuilder.append(mZoneManager.getUserForOccupant(zone)); in updateTextInfo()
162 List<Display> displays = mZoneManager.getAllDisplaysForOccupant(zone); in updateTextInfo()
386 for (CarOccupantZoneManager.OccupantZoneInfo zone : zonelist) { in getZoneInfoForId()
387 if (zone.zoneId == zoneId) { in getZoneInfoForId()
388 return zone; in getZoneInfoForId()
478 for (CarOccupantZoneManager.OccupantZoneInfo zone : zonelist) { in getZones()
480 builder.append(zone.zoneId); in getZones()
482 if (zone.occupantType == CarOccupantZoneManager.OCCUPANT_TYPE_DRIVER) { in getZones()
[all …]
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/util/
DInjectKeyEventUtils.java29 public static void injectKeyByShell(CarOccupantZoneManager.OccupantZoneInfo zone, in injectKeyByShell() argument
31 Preconditions.checkArgument(zone != null, " zone cannot be null"); in injectKeyByShell()
36 .append(zone.seat) in injectKeyByShell()
/packages/services/Car/car-lib/src/android/car/hardware/hvac/
DCarHvacManager.java253 void onErrorEvent(@PropertyId int propertyId, int zone); in onErrorEvent() argument
272 public void onErrorEvent(int propertyId, int zone) { in onErrorEvent() argument
275 manager.handleOnErrorEvent(propertyId, zone); in onErrorEvent()
292 private void handleOnErrorEvent(int propertyId, int zone) { in handleOnErrorEvent() argument
299 l.onErrorEvent(propertyId, zone); in handleOnErrorEvent()
/packages/services/Car/tests/OemCarServiceTestApp/src/com/android/car/oem/volume/
DVolumeInteractions.java90 CarAudioManager carAudioManager, int zone) { in getAudioAttributeToGroupIdMapping() argument
92 carAudioManager.getVolumeGroupInfosForZone(zone); in getAudioAttributeToGroupIdMapping()
255 for (int zone = 0; zone < zones.size(); zone++) { in init()
256 int zoneId = zones.get(zone); in init()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/touch/
DInjectMotionTestFragment.java174 OccupantZoneInfo zone = getOccupantZoneForDisplayId( in injectMotionByShell() local
176 if (zone != null) { in injectMotionByShell()
185 .append(zone.seat) in injectMotionByShell()
251 for (OccupantZoneInfo zone : zones) { in getOccupantZoneForDisplayId()
252 List<Display> displays = mOccupantZoneManager.getAllDisplaysForOccupant(zone); in getOccupantZoneForDisplayId()
255 return zone; in getOccupantZoneForDisplayId()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/key/
DInjectKeyTestFragment.java124 for (OccupantZoneInfo zone : zones) { in getOccupantZoneForDisplayId()
125 List<Display> displays = mOccupantZoneManager.getAllDisplaysForOccupant(zone); in getOccupantZoneForDisplayId()
128 return zone; in getOccupantZoneForDisplayId()
156 OccupantZoneInfo zone = getOccupantZoneForDisplayId( in injectKeyByShell() local
158 InjectKeyEventUtils.injectKeyByShell(zone, keyCode); in injectKeyByShell()
/packages/services/Car/car-lib/src/android/car/hardware/cabin/
DCarCabinManager.java415 void onErrorEvent(@PropertyId int propertyId, int zone); in onErrorEvent() argument
434 public void onErrorEvent(int propertyId, int zone) { in onErrorEvent() argument
437 manager.handleOnErrorEvent(propertyId, zone); in onErrorEvent()
452 private void handleOnErrorEvent(int propertyId, int zone) { in handleOnErrorEvent() argument
459 l.onErrorEvent(propertyId, zone); in handleOnErrorEvent()

12345