/frameworks/base/services/usb/java/com/android/server/usb/hal/port/ |
D | RawPortInfo.java | 30 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,
|
D | UsbPortAidl.java | 497 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()
|
D | UsbPortHidl.java | 418 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/ |
D | SupportedModesVoteTest.kt | 30 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()
|
D | SyntheticModeManagerTest.kt | 50 mockConfig, testCase.supportedModes) in test app supported modes() 58 val supportedModes: Array<Mode>, constant in com.android.server.display.mode.SyntheticModeManagerTest.AppSupportedModesTestCase
|
D | SupportedRefreshRatesVoteTest.kt | 45 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/ |
D | SensorData.java | 44 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()
|
D | SupportedModeData.java | 45 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/ |
D | ParcelableUsbPort.java | 40 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,
|
D | UsbPort.java | 281 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/ |
D | LocalDisplayAdapterTest.java | 269 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/ |
D | DisplayInfo.java | 212 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/ |
D | ZenMode.kt | 26 require(zenMode in supportedModes) { "Unsupported zenMode=$zenMode" } in <lambda>() 31 val supportedModes = constant
|
/frameworks/base/services/core/java/com/android/server/display/mode/ |
D | Vote.java | 221 static Vote forSupportedRefreshRates(List<SupportedModeData> supportedModes) { in forSupportedRefreshRates() argument 222 if (supportedModes.isEmpty()) { in forSupportedRefreshRates() 226 for (SupportedModeData data : supportedModes) { in forSupportedRefreshRates()
|
D | VoteSummary.java | 359 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/ |
D | DisplayDeviceInfo.java | 308 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()
|
D | DisplayDevice.java | 439 Display.Mode[] supportedModes = getDisplayDeviceInfoLocked().supportedModes; in getSupportedResolutionsLocked() local 440 for (Display.Mode mode : supportedModes) { in getSupportedResolutionsLocked()
|
D | LogicalDisplay.java | 511 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/ |
D | UsbPortManager.java | 747 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/ |
D | AudioPolicyConfig.aidl | 30 AudioMode[] supportedModes;
|
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/ |
D | AudioPolicyConfig.cpp | 267 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/ |
D | ScreenDecorationsUtils.java | 79 DisplayUtils.getMaximumResolutionDisplayMode(displayInfo.supportedModes); in getPhysicalPixelDisplaySizeRatio()
|
/frameworks/base/core/tests/coretests/src/android/view/ |
D | DisplayInfoTest.java | 95 info.supportedModes = new Display.Mode[]{mode}; in setSupportedMode()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/common/ui/data/repository/ |
D | ConfigurationRepository.kt | 130 displayUtils.getMaximumResolutionDisplayMode(displayInfo.value.supportedModes) in getResolutionScale()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | DeferredDisplayUpdater.java | 402 || !Arrays.equals(first.supportedModes, second.supportedModes) in calculateDisplayInfoDiff()
|