Home
last modified time | relevance | path

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

123

/frameworks/base/services/usb/java/com/android/server/usb/hal/port/
DRawPortInfo.java30 public final int supportedModes; field in RawPortInfo
51 public RawPortInfo(String portId, int supportedModes) { in RawPortInfo() argument
53 this.supportedModes = supportedModes; in RawPortInfo()
69 public RawPortInfo(String portId, int supportedModes, int supportedContaminantProtectionModes, in RawPortInfo() argument
80 this(portId, supportedModes, supportedContaminantProtectionModes, in RawPortInfo()
91 public RawPortInfo(String portId, int supportedModes, int supportedContaminantProtectionModes, in RawPortInfo() argument
108 this.supportedModes = supportedModes; in RawPortInfo()
140 dest.writeInt(supportedModes); in writeToParcel()
171 int supportedModes = in.readInt();
195 return new RawPortInfo(id, supportedModes,
DUsbPortAidl.java497 int supportedModes = UsbPortStatus.MODE_NONE; in toSupportedModes() local
500 supportedModes |= toPortMode(aidlPortMode); in toSupportedModes()
503 return supportedModes; in toSupportedModes()
679 toSupportedModes(current.supportedModes), in notifyPortStatusChange()
DUsbPortHidl.java418 current.supportedModes, CONTAMINANT_PROTECTION_NONE, in notifyPortStatusChange()
456 current.supportedModes, CONTAMINANT_PROTECTION_NONE, in notifyPortStatusChange_1_1()
492 current.status_1_1.supportedModes, in notifyPortStatusChange_1_2()
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/mode/
DSupportedModesVoteTest.kt30 private val supportedModes = listOf(1, 2, 4) constant
38 supportedModesVote = SupportedModesVote(supportedModes) in setUp()
47 assertThat(summary.supportedModeIds).containsExactlyElementsIn(supportedModes) in adds supported mode ids if supportedModeIds in summary is null()
63 summary.supportedModeIds = ArrayList(listOf(otherMode, supportedModes[0])) in filters out modes that does not match vote()
67 assertThat(summary.supportedModeIds).containsExactly(supportedModes[0]) in filters out modes that does not match vote()
DSyntheticModeManagerTest.kt50 mockConfig, testCase.supportedModes) in test app supported modes()
58 val supportedModes: Array<Mode>, constant in com.android.server.display.mode.SyntheticModeManagerTest.AppSupportedModesTestCase
DSupportedRefreshRatesVoteTest.kt45 fun `adds supported refresh rates if supportedModes in summary is null`() { in adds supported refresh rates if supportedModes in summary is null()
/frameworks/base/services/core/java/com/android/server/display/config/
DSensorData.java44 public final List<SupportedModeData> supportedModes; field in SensorData
63 List<SupportedModeData> supportedModes) { in SensorData() argument
68 this.supportedModes = Collections.unmodifiableList(supportedModes); in SensorData()
89 + ", supportedModes=" + supportedModes in toString()
216 List<SupportedModeData> supportedModes = SupportedModeData.load( in loadSensorData() local
220 maxRefreshRate, supportedModes); in loadSensorData()
DSupportedModeData.java45 ArrayList<SupportedModeData> supportedModes = new ArrayList<>(); in load() local
48 supportedModes.add(new SupportedModeData(supportedMode.getFirst().floatValue(), in load()
52 return supportedModes; in load()
/frameworks/base/core/java/android/hardware/usb/
DParcelableUsbPort.java40 private ParcelableUsbPort(@NonNull String id, int supportedModes, in ParcelableUsbPort() argument
47 mSupportedModes = supportedModes; in ParcelableUsbPort()
110 int supportedModes = in.readInt();
117 return new ParcelableUsbPort(id, supportedModes,
DUsbPort.java281 public UsbPort(@NonNull UsbManager usbManager, @NonNull String id, int supportedModes, in UsbPort() argument
285 this(usbManager, id, supportedModes, supportedContaminantProtectionModes, in UsbPort()
292 public UsbPort(@NonNull UsbManager usbManager, @NonNull String id, int supportedModes, in UsbPort() argument
299 Preconditions.checkFlagsArgument(supportedModes, in UsbPort()
304 mSupportedModes = supportedModes; in UsbPort()
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/
DLocalDisplayAdapterTest.java269 Display.Mode[] supportedModes = displayDevice.getDisplayDeviceInfoLocked().supportedModes; in testSupportedDisplayModesGetOverriddenWhenDisplayIsUpdated() local
270 Assert.assertEquals(1, supportedModes.length); in testSupportedDisplayModesGetOverriddenWhenDisplayIsUpdated()
271 Assert.assertEquals(0, supportedModes[0].getSupportedHdrTypes().length); in testSupportedDisplayModesGetOverriddenWhenDisplayIsUpdated()
281 supportedModes = displayDevice.getDisplayDeviceInfoLocked().supportedModes; in testSupportedDisplayModesGetOverriddenWhenDisplayIsUpdated()
283 Assert.assertEquals(1, supportedModes.length); in testSupportedDisplayModesGetOverriddenWhenDisplayIsUpdated()
284 assertArrayEquals(new int[]{2, 3}, supportedModes[0].getSupportedHdrTypes()); in testSupportedDisplayModesGetOverriddenWhenDisplayIsUpdated()
374 Display.Mode[] supportedModes = displayDevice.getDisplayDeviceInfoLocked().supportedModes; in testAlternativeRefreshRatesCommon() local
375 assertThat(supportedModes.length).isEqualTo(modes.length); in testAlternativeRefreshRatesCommon()
378 assertModeIsSupported(supportedModes, modes[i], in testAlternativeRefreshRatesCommon()
454 assertThat(displayDeviceInfo.supportedModes.length).isEqualTo(modes.length); in testAfterDisplayChange_DefaultDisplayModeIsUpdated()
[all …]
/frameworks/base/core/java/android/view/
DDisplayInfo.java212 public Display.Mode[] supportedModes = Display.Mode.EMPTY_ARRAY; field in DisplayInfo
437 && Arrays.equals(supportedModes, other.supportedModes) in equals()
497 supportedModes = Arrays.copyOf(other.supportedModes, other.supportedModes.length); in copyFrom()
553 supportedModes = new Display.Mode[nModes]; in readFromParcel()
555 supportedModes[i] = Display.Mode.CREATOR.createFromParcel(source); in readFromParcel()
624 dest.writeInt(supportedModes.length); in writeToParcel()
625 for (int i = 0; i < supportedModes.length; i++) { in writeToParcel()
626 supportedModes[i].writeToParcel(dest, flags); in writeToParcel()
679 if (supportedModes.length == 0) { in getRefreshRate()
694 for (int i = 0; i < supportedModes.length; i++) { in findMode()
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/statusbar/notification/data/model/
DZenMode.kt26 require(zenMode in supportedModes) { "Unsupported zenMode=$zenMode" } in <lambda>()
31 val supportedModes = constant
/frameworks/base/services/core/java/com/android/server/display/mode/
DVote.java221 static Vote forSupportedRefreshRates(List<SupportedModeData> supportedModes) { in forSupportedRefreshRates() argument
222 if (supportedModes.isEmpty()) { in forSupportedRefreshRates()
226 for (SupportedModeData data : supportedModes) { in forSupportedRefreshRates()
DVoteSummary.java359 private void updateSummaryWithBestAllowedResolution(final Display.Mode[] supportedModes) { in updateSummaryWithBestAllowedResolution() argument
365 for (Display.Mode mode : supportedModes) { in updateSummaryWithBestAllowedResolution()
/frameworks/base/services/core/java/com/android/server/display/
DDisplayDeviceInfo.java308 public Display.Mode[] supportedModes = Display.Mode.EMPTY_ARRAY; field in DisplayDeviceInfo
516 || !Arrays.equals(supportedModes, other.supportedModes) in diff()
559 supportedModes = other.supportedModes; in copyFrom()
602 sb.append(", supportedModes ").append(Arrays.toString(supportedModes)); in toString()
DDisplayDevice.java439 Display.Mode[] supportedModes = getDisplayDeviceInfoLocked().supportedModes; in getSupportedResolutionsLocked() local
440 for (Display.Mode mode : supportedModes) { in getSupportedResolutionsLocked()
DLogicalDisplay.java511 mBaseDisplayInfo.supportedModes = Arrays.copyOf( in updateLocked()
512 deviceInfo.supportedModes, deviceInfo.supportedModes.length); in updateLocked()
514 config, mBaseDisplayInfo.supportedModes in updateLocked()
/frameworks/base/services/usb/java/com/android/server/usb/
DUsbPortManager.java747 public void addSimulatedPort(String portId, int supportedModes, in addSimulatedPort() argument
765 + ", supportedModes=" + UsbPort.modeToString(supportedModes)); in addSimulatedPort()
769 supportedModes, in addSimulatedPort()
809 if ((portInfo.supportedModes & mode) == 0) { in connectSimulatedPort()
975 addOrUpdatePortLocked(portInfo.portId, portInfo.supportedModes, in updatePortsLocked()
996 addOrUpdatePortLocked(currentPortInfo.portId, currentPortInfo.supportedModes, in updatePortsLocked()
1046 private void addOrUpdatePortLocked(String portId, int supportedModes, in addOrUpdatePortLocked() argument
1066 if ((supportedModes & MODE_DUAL) != MODE_DUAL) { in addOrUpdatePortLocked()
1068 if (currentMode != 0 && currentMode != supportedModes) { in addOrUpdatePortLocked()
1070 + "port driver: supportedModes=" + UsbPort.modeToString(supportedModes) in addOrUpdatePortLocked()
[all …]
/frameworks/av/media/libaudioclient/aidl/android/media/
DAudioPolicyConfig.aidl30 AudioMode[] supportedModes;
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
DAudioPolicyConfig.cpp267 mIsCallScreenModeSupported = std::find(aidl.supportedModes.begin(), aidl.supportedModes.end(), in loadFromAidl()
268 media::audio::common::AudioMode::CALL_SCREEN) != aidl.supportedModes.end(); in loadFromAidl()
/frameworks/base/core/java/com/android/internal/policy/
DScreenDecorationsUtils.java79 DisplayUtils.getMaximumResolutionDisplayMode(displayInfo.supportedModes); in getPhysicalPixelDisplaySizeRatio()
/frameworks/base/core/tests/coretests/src/android/view/
DDisplayInfoTest.java95 info.supportedModes = new Display.Mode[]{mode}; in setSupportedMode()
/frameworks/base/packages/SystemUI/src/com/android/systemui/common/ui/data/repository/
DConfigurationRepository.kt130 displayUtils.getMaximumResolutionDisplayMode(displayInfo.value.supportedModes) in getResolutionScale()
/frameworks/base/services/core/java/com/android/server/wm/
DDeferredDisplayUpdater.java402 || !Arrays.equals(first.supportedModes, second.supportedModes) in calculateDisplayInfoDiff()

123