Home
last modified time | relevance | path

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

/packages/services/Car/car-lib/src/android/car/media/
DCarAudioZoneConfigInfo.java49 private final int mZoneId; field in CarAudioZoneConfigInfo
88 mZoneId = zoneId; in CarAudioZoneConfigInfo()
103 mZoneId = in.readInt(); in CarAudioZoneConfigInfo()
147 return mZoneId; in getZoneId()
162 .append(", zone id = ").append(mZoneId) in toString()
179 dest.writeInt(mZoneId); in writeToParcel()
236 return Objects.hash(mName, mZoneId, mConfigId, mIsConfigActive, mIsConfigSelected, in hashCode()
239 return Objects.hash(mName, mZoneId, mConfigId); in hashCode()
308 return info == null ? false : (mName.equals(info.mName) && mZoneId == info.mZoneId in hasSameConfigInfoInternal()
323 private final int mZoneId; field in CarAudioZoneConfigInfo.Builder
[all …]
DCarVolumeGroupInfo.java50 private final int mZoneId; field in CarVolumeGroupInfo
82 mZoneId = zoneId; in CarVolumeGroupInfo()
124 this.mZoneId = zoneId; in CarVolumeGroupInfo()
172 return mZoneId; in getZoneId()
274 .append(mName).append(", zone id = ").append(mZoneId).append(" id = ").append(mId) in toString()
297 dest.writeInt(mZoneId); in writeToParcel()
320 return group != null && mZoneId == group.mZoneId && mId == group.mId in isSameVolumeGroup()
350 int hash = Objects.hash(mName, mZoneId, mId, mVolumeGainIndex, mMaxVolumeGainIndex, in hashCode()
394 private int mZoneId; field in CarVolumeGroupInfo.Builder
412 mZoneId = zoneId; in Builder()
[all …]
DCarAudioManager.java1968 handleOnGroupVolumeChanged(volumeInfo.mZoneId, volumeInfo.mGroupId, in handleMessage()
1973 handleOnGroupMuteChanged(muteInfo.mZoneId, muteInfo.mGroupId, muteInfo.mFlags); in handleMessage()
2006 public int mZoneId; field in CarAudioManager.EventHandler.VolumeGroupChangeInfo
2011 mZoneId = zoneId; in VolumeGroupChangeInfo()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/volume/
DCarAudioZoneVolumeFragment.java66 private final int mZoneId; field in CarAudioZoneVolumeFragment
103 Log.d(TAG, "zone " + mZoneId + " handleMessage : " + getMessageName(msg)); in handleMessage()
147 mZoneId = zoneId; in CarAudioZoneVolumeFragment()
156 Log.d(TAG, "onCreateView " + mZoneId); in onCreateView()
170 int volumeGroupCount = mCarAudioManager.getVolumeGroupCount(mZoneId); in initVolumeInfo()
180 CarVolumeGroupInfo groupInfo = mCarAudioManager.getVolumeGroupInfo(mZoneId, groupId); in initVolumeInfo()
220 int current = mCarAudioManager.getGroupVolume(mZoneId, groupId); in adjustVolumeByOne()
237 mCarAudioManager.setGroupVolume(mZoneId, groupId, volume, /* flags= */ 0); in adjustVolumeByOne()
240 + mCarAudioManager.getGroupVolume(mZoneId, groupId) in adjustVolumeByOne()
241 + " in audio zone " + mZoneId); in adjustVolumeByOne()
[all …]
/packages/apps/Car/SystemUI/src/com/android/systemui/car/statusicon/ui/
DMediaVolumeStatusIconController.java60 private int mZoneId; field in MediaVolumeStatusIconController
65 updateStatus(mZoneId, mGroupId);
80 mZoneId =
86 mGroupId = mCarAudioManager.getVolumeGroupIdForUsage(mZoneId, USAGE_MEDIA);
87 mMaxMediaVolume = mCarAudioManager.getGroupMaxVolume(mZoneId, mGroupId);
88 mMinMediaVolume = mCarAudioManager.getGroupMinVolume(mZoneId, mGroupId);
89 updateStatus(mZoneId, mGroupId);
136 if (mZoneId != zoneId || mGroupId != groupId) { in updateStatus()
140 int currentMediaVolumeLevel = mCarAudioManager.getGroupVolume(mZoneId, mGroupId); in updateStatus()
/packages/services/Car/service/src/com/android/car/audio/
DCarDuckingInfo.java41 public final int mZoneId; field in CarDuckingInfo
51 mZoneId = zoneId; in CarDuckingInfo()
58 return mZoneId; in getZoneId()
75 writer.printf("Ducking Info for zone %d \n", mZoneId); in dump()
103 proto.write(CarDuckingInfoProto.ZONE_ID, mZoneId); in dumpProto()
DCarVolumeGroupFactory.java32 private final int mZoneId; field in CarVolumeGroupFactory
55 mZoneId = zoneId; in CarVolumeGroupFactory()
70 mContextToDeviceInfo, mZoneId, mConfigId, mId, mName, mUseCarVolumeGroupMute, in getCarVolumeGroup()
74 mContextToDeviceInfo, mZoneId, mConfigId, mId, mName, mStepSize, mDefaultGain, in getCarVolumeGroup()
DCarAudioZoneConfig.java65 private final int mZoneId; field in CarAudioZoneConfig
88 mZoneId = zoneId; in CarAudioZoneConfig()
101 return mZoneId; in getZoneId()
346 mZoneId, mIsDefault); in dump()
377 proto.write(CarAudioZoneConfigProto.ZONE_ID, mZoneId); in dumpProto()
496 return new CarAudioZoneConfigInfo.Builder(mName, mZoneId, mZoneConfigId) in getCarAudioZoneConfigInfo()
501 return new CarAudioZoneConfigInfo(mName, mZoneId, mZoneConfigId); in getCarAudioZoneConfigInfo()
587 private final int mZoneId; field in CarAudioZoneConfig.Builder
602 mZoneId = zoneId; in Builder()
637 return mZoneId; in getZoneId()
[all …]
DCarVolumeGroup.java104 protected final int mZoneId; field in CarVolumeGroup
181 mZoneId = zoneId; in CarVolumeGroup()
207 mUserId, mZoneId, mConfigId, mId); in init()
607 writer.printf("Zone Id(%d)\n", mZoneId); in dump()
664 proto.write(CarVolumeGroupProto.ZONE_ID, mZoneId); in dumpProto()
761 mSettingsManager.storeVolumeGroupMuteForUser(mUserId, mZoneId, mConfigId, mId, mute); in setMuteLocked()
809 int gainIndexForUser = mSettingsManager.getStoredVolumeGainIndexForUser(mUserId, mZoneId, in getCurrentGainIndexForUserLocked()
840 mZoneId, mConfigId, mId, gainIndex); in storeGainIndexForUserLocked()
852 mIsMuted = mSettingsManager.getVolumeGroupMuteForUser(mUserId, mZoneId, mConfigId, mId); in updateGroupMuteLocked()
948 CarVolumeGroupInfo.Builder builder = new CarVolumeGroupInfo.Builder(name, mZoneId, mId) in getCarVolumeGroupInfo()
DCarDucking.java123 int zoneId = oldDuckingInfo.mZoneId; in generateNewDuckingInfoLocked()
/packages/services/Car/libs/car-test-lib/src/android/car/testapi/
DCarAudioZoneConfigInfoTestBuilder.java28 private int mZoneId; field in CarAudioZoneConfigInfoTestBuilder
48 mZoneId = zoneId; in setZoneId()
62 return new CarAudioZoneConfigInfo(mName, mZoneId, mConfigId); in build()
DOccupantZoneInfoTestBuilder.java31 private int mZoneId; field in OccupantZoneInfoTestBuilder
47 mZoneId = zoneId; in setZoneId()
72 return new OccupantZoneInfo(mZoneId, mOccupantType, mSeat); in build()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/
DCarVolumeCallbackHandlerTest.java67 .that(mCallback1.mZoneId).isEqualTo(ZONE_ID); in onVolumeGroupChange_callsAllRegisteredCallbacks()
77 .that(mCallback2.mZoneId).isEqualTo(ZONE_ID); in onVolumeGroupChange_callsAllRegisteredCallbacks()
208 int mZoneId = -1; field in CarVolumeCallbackHandlerTest.TestCarVolumeCallback
222 mZoneId = zoneId; in onGroupVolumeChanged()
233 mZoneId = zoneId; in onGroupMuteChanged()
244 mZoneId = zoneId; in onMasterMuteChanged()
DVolumeGroupBuilder.java60 private int mZoneId; field in VolumeGroupBuilder
109 mZoneId = zoneId; in setZoneId()
172 "Name: " + mName, mZoneId, mId).setMinVolumeGainIndex(TEST_MIN_VOLUME) in build()
DCarDuckingInfoTest.java84 assertThat(duckingInfo.mZoneId).isEqualTo(ZONE_ID); in constructor_validInputs_succeeds()
DCarAudioVolumeGroupTest.java723 private final int mZoneId; field in CarAudioVolumeGroupTest.SettingsBuilder
730 mZoneId = zoneId; in SettingsBuilder()
745 .getStoredVolumeGainIndexForUser(gainUserId, mZoneId, mConfigId, in build()
751 when(settingsMock.getVolumeGroupMuteForUser(muteUserId, mZoneId, mConfigId, in build()
DCarAudioZoneUnitTest.java934 int mZoneId; field in CarAudioZoneUnitTest.TestCarAudioZoneConfigBuilder
940 mZoneId = zoneId; in TestCarAudioZoneConfigBuilder()
959 when(zoneConfig.getZoneId()).thenReturn(mZoneId); in build()
972 .thenReturn(new CarAudioZoneConfigInfo(mName, mZoneId, mConfigId)); in build()
DCarVolumeGroupUnitTest.java2254 private final int mZoneId; field in CarVolumeGroupUnitTest.SettingsBuilder
2261 mZoneId = zoneId; in SettingsBuilder()
2286 .getStoredVolumeGainIndexForUser(gainUserId, mZoneId, mConfigId, in build()
2292 when(settingsMock.getVolumeGroupMuteForUser(muteUserId, mZoneId, mConfigId, in build()
DCarAudioServiceUnitTest.java6768 .that(duckingInfo.mZoneId).isEqualTo(zoneId); in verifyMediaDuckingInfoInZone()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/audio/
DAudioConfigurationInformationTabs.java35 private final int mZoneId; field in AudioConfigurationInformationTabs
40 mZoneId = zoneId; in AudioConfigurationInformationTabs()
59 if (info.getZoneId() != mZoneId) { in updateConfigs()
/packages/apps/Settings/src/com/android/settings/fuelgauge/batteryusage/
DBatteryHistEntry.java48 public final String mZoneId; field in BatteryHistEntry
81 mZoneId = batteryInformation.getZoneId(); in BatteryHistEntry()
111 mZoneId = batteryInformation.getZoneId(); in BatteryHistEntry()
151 mZoneId = fromEntry.mZoneId; in BatteryHistEntry()
205 mZoneId, in toString()
/packages/services/Car/tests/carservice_test/src/com/android/car/audio/
DCarAudioZonesValidatorTest.java227 private int mZoneId = PRIMARY_AUDIO_ZONE; field in CarAudioZonesValidatorTest.MockBuilder
234 when(zoneMock.getId()).thenReturn(mZoneId); in build()
250 mZoneId = zoneId; in withZoneId()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/hal/
DAudioControlWrapperAidlTest.java959 private final int mZoneId; field in AudioControlWrapperAidlTest.MutingInfoBuilder
964 mZoneId = zoneId; in MutingInfoBuilder()
979 info.zoneId = mZoneId; in build()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batteryusage/
DBatteryHistEntryTest.java356 assertThat(entry.mZoneId).isEqualTo(TimeZone.getDefault().getID()); in assertBatteryHistEntry()
DConvertUtilsTest.java329 assertThat(batteryHistEntry.mZoneId).isEqualTo(TimeZone.getDefault().getID()); in convertToBatteryHistEntry_returnsExpectedResult()
356 assertThat(batteryHistEntry.mZoneId).isEqualTo(TimeZone.getDefault().getID()); in convertToBatteryHistEntry_nullBatteryEntry_returnsExpectedResult()