/frameworks/native/services/surfaceflinger/tests/unittests/ |
D | HWComposerTest.cpp | 213 auto modes = mHwc.getModes(info->id, kMaxFrameIntervalNs); in TEST_F() local 214 EXPECT_EQ(modes.size(), size_t{1}); in TEST_F() 215 EXPECT_EQ(modes.front().hwcId, kConfigId); in TEST_F() 216 EXPECT_EQ(modes.front().width, kWidth); in TEST_F() 217 EXPECT_EQ(modes.front().height, kHeight); in TEST_F() 218 EXPECT_EQ(modes.front().configGroup, kConfigGroup); in TEST_F() 219 EXPECT_EQ(modes.front().vsyncPeriod, kVsyncPeriod); in TEST_F() 220 EXPECT_EQ(modes.front().dpiX, -1); in TEST_F() 221 EXPECT_EQ(modes.front().dpiY, -1); in TEST_F() 234 modes = mHwc.getModes(info->id, kMaxFrameIntervalNs); in TEST_F() [all …]
|
D | SurfaceFlinger_ExcludeDolbyVisionTest.cpp | 30 DisplayModes modes; in injectDisplayModes() local 32 modes.try_emplace(displayMode->getId(), displayMode); in injectDisplayModes() 36 .setDisplayModes(std::move(modes), displayModePtrs[0]->getId()) in injectDisplayModes()
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/ |
D | StaticMetadata.java | 482 int[] modes = getValueFromKeyNonNull(key); in getAeAvailableAntiBandingModesChecked() local 487 for (int mode : modes) { in getAeAvailableAntiBandingModesChecked() 503 return modes; in getAeAvailableAntiBandingModesChecked() 533 int[] modes = getValueFromKeyNonNull(key); in getAvailableTestPatternModesChecked() local 535 if (modes == null) { in getAvailableTestPatternModesChecked() 540 Integer[] boxedModes = CameraTestUtils.toObject(modes); in getAvailableTestPatternModesChecked() 544 return modes; in getAvailableTestPatternModesChecked() 624 int[] modes = getValueFromKeyNonNull(key); in getAvailableHotPixelModesChecked() local 626 if (modes == null) { in getAvailableHotPixelModesChecked() 630 List<Integer> modeList = Arrays.asList(CameraTestUtils.toObject(modes)); in getAvailableHotPixelModesChecked() [all …]
|
/frameworks/base/services/core/java/com/android/server/appop/ |
D | AppOpsCheckingServiceImpl.java | 336 SparseIntArray modes = mUidModes.get(uid); in getForegroundOps() local 337 if (modes == null) { in getForegroundOps() 340 for (int i = 0; i < modes.size(); i++) { in getForegroundOps() 341 if (modes.valueAt(i) == MODE_FOREGROUND) { in getForegroundOps() 342 result.put(modes.keyAt(i), true); in getForegroundOps() 358 SparseIntArray modes = packageModes.get(packageName); in getForegroundOps() local 359 if (modes == null) { in getForegroundOps() 362 for (int i = 0; i < modes.size(); i++) { in getForegroundOps() 363 if (modes.valueAt(i) == MODE_FOREGROUND) { in getForegroundOps() 364 result.put(modes.keyAt(i), true); in getForegroundOps() [all …]
|
D | LegacyAppOpStateParser.java | 150 SparseIntArray modes = uidModes.get(uid); in readUidOps() local 151 if (modes == null) { in readUidOps() 152 modes = new SparseIntArray(); in readUidOps() 153 uidModes.put(uid, modes); in readUidOps() 170 modes.put(code, mode); in readUidOps() 241 SparseIntArray modes = packageModes.get(pkgName); in readOp() local 242 if (modes == null) { in readOp() 243 modes = new SparseIntArray(); in readOp() 244 packageModes.put(pkgName, modes); in readOp() 247 modes.put(opCode, mode); in readOp()
|
/frameworks/native/services/surfaceflinger/Display/ |
D | DisplaySnapshot.cpp | 48 ui::ColorModes modes = mColorModes; in filterColorModes() local 55 const auto it = std::remove_if(modes.begin(), modes.end(), ui::isWideColorMode); in filterColorModes() 56 modes.erase(it, modes.end()); in filterColorModes() 59 return modes; in filterColorModes()
|
/frameworks/proto_logging/stats/atoms/wear/modes/ |
D | wear_modes_extension_atoms.proto | 19 package android.os.statsd.wear.modes; 23 import "frameworks/proto_logging/stats/enums/wear/modes/enums.proto"; 25 option java_package = "com.android.os.wear.modes"; 36 optional com.google.android.wearable.modes.telemetry.ModeId mode_id = 1; 39 optional com.google.android.wearable.modes.telemetry.ModeState mode_state = 2; 42 optional com.google.android.wearable.modes.telemetry.NetworkState current_wifi_state = 3; 45 optional com.google.android.wearable.modes.telemetry.NetworkState current_cellular_state = 4; 48 optional com.google.android.wearable.modes.telemetry.NetworkState current_bluetooth_state = 5;
|
/frameworks/base/core/java/android/util/ |
D | DisplayUtils.java | 59 public static Display.Mode getMaximumResolutionDisplayMode(Display.Mode[] modes) { in getMaximumResolutionDisplayMode() argument 60 if (modes == null || modes.length == 0) { in getMaximumResolutionDisplayMode() 65 for (Display.Mode mode : modes) { in getMaximumResolutionDisplayMode()
|
/frameworks/native/libs/nativedisplay/ |
D | ADisplay.cpp | 147 const auto& modes = dynamicInfo.supportedDisplayModes; in ADisplay_acquirePhysicalDisplays() local 148 if (modes.empty()) { in ADisplay_acquirePhysicalDisplays() 152 numModes += modes.size(); in ADisplay_acquirePhysicalDisplays() 153 modesPerDisplay[i].reserve(modes.size()); in ADisplay_acquirePhysicalDisplays() 154 for (int j = 0; j < modes.size(); ++j) { in ADisplay_acquirePhysicalDisplays() 155 const ui::DisplayMode& mode = modes[j]; in ADisplay_acquirePhysicalDisplays()
|
/frameworks/base/services/core/java/com/android/server/display/ |
D | OverlayDisplayAdapter.java | 212 ArrayList<OverlayMode> modes = new ArrayList<>(); in updateOverlayDisplayDevicesLocked() local 224 modes.add(new OverlayMode(width, height, densityDpi)); in updateOverlayDisplayDevicesLocked() 235 if (!modes.isEmpty()) { in updateOverlayDisplayDevicesLocked() 244 + ": name=" + name + ", modes=" + Arrays.toString(modes.toArray()) in updateOverlayDisplayDevicesLocked() 247 mOverlays.add(new OverlayDisplayHandle(name, modes, gravity, flags, number)); in updateOverlayDisplayDevicesLocked() 285 List<OverlayMode> modes, int activeMode, int defaultMode, in OverlayDisplayDevice() argument 296 mRawModes = modes; in OverlayDisplayDevice() 297 mModes = new Display.Mode[modes.size()]; in OverlayDisplayDevice() 298 for (int i = 0; i < modes.size(); i++) { in OverlayDisplayDevice() 299 OverlayMode mode = modes.get(i); in OverlayDisplayDevice() [all …]
|
D | DisplayControl.java | 34 private static native void nativeOverrideHdrTypes(IBinder displayToken, int[] modes); in nativeOverrideHdrTypes() argument 91 public static void overrideHdrTypes(@NonNull IBinder displayToken, @NonNull int[] modes) { in overrideHdrTypes() argument 92 nativeOverrideHdrTypes(displayToken, modes); in overrideHdrTypes()
|
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/ |
D | LocalDisplayAdapterTest.java | 359 SurfaceControl.DisplayMode[] modes = new SurfaceControl.DisplayMode[wrappedModes.length]; in testAlternativeRefreshRatesCommon() local 361 modes[i] = wrappedModes[i].mode; in testAlternativeRefreshRatesCommon() 363 display.dynamicInfo.supportedDisplayModes = modes; in testAlternativeRefreshRatesCommon() 375 assertThat(supportedModes.length).isEqualTo(modes.length); in testAlternativeRefreshRatesCommon() 378 assertModeIsSupported(supportedModes, modes[i], in testAlternativeRefreshRatesCommon() 440 SurfaceControl.DisplayMode[] modes = in testAfterDisplayChange_DefaultDisplayModeIsUpdated() local 442 FakeDisplay display = new FakeDisplay(PORT_A, modes, 0, displayMode.peakRefreshRate); in testAfterDisplayChange_DefaultDisplayModeIsUpdated() 454 assertThat(displayDeviceInfo.supportedModes.length).isEqualTo(modes.length); in testAfterDisplayChange_DefaultDisplayModeIsUpdated() 471 modes = new SurfaceControl.DisplayMode[]{displayMode, displayMode2}; in testAfterDisplayChange_DefaultDisplayModeIsUpdated() 472 display.dynamicInfo.supportedDisplayModes = modes; in testAfterDisplayChange_DefaultDisplayModeIsUpdated() [all …]
|
D | RefreshRateSettingsUtilsTest.java | 64 Display.Mode[] modes = new Display.Mode[]{ in setUp() local 73 when(mDisplayMock.getSupportedModes()).thenReturn(modes); in setUp()
|
/frameworks/base/services/core/java/com/android/server/display/mode/ |
D | SyntheticModeManager.java | 49 Display.Mode[] modes) { in createAppSupportedModes() argument 51 return modes; in createAppSupportedModes() 59 for (Display.Mode mode : modes) { in createAppSupportedModes()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/wrapper/ |
D | DisplayUtilsWrapper.kt | 39 fun getMaximumResolutionDisplayMode(modes: Array<Display.Mode>?): Display.Mode? { in getMaximumResolutionDisplayMode() 40 return DisplayUtils.getMaximumResolutionDisplayMode(modes) in getMaximumResolutionDisplayMode()
|
/frameworks/native/services/surfaceflinger/tests/ |
D | DisplayConfigs_test.cpp | 64 const auto& modes = info.supportedDisplayModes; in testSetDesiredDisplayModeSpecs() local 66 ASSERT_GT(modes.size(), 0); in testSetDesiredDisplayModeSpecs() 67 for (const auto& mode : modes) { in testSetDesiredDisplayModeSpecs()
|
/frameworks/opt/net/voip/src/jni/rtp/ |
D | AmrCodec.cpp | 76 const char *modes = strcasestr(fmtp, "mode-set="); in set() local 77 if (modes) { in set() 80 for (char c = *modes; c && c != ' '; c = *++modes) { in set()
|
/frameworks/av/media/libaudiohal/impl/effectsAidlConversion/ |
D | AidlConversionSpatializer.cpp | 260 std::vector<Spatialization::Mode> modes; in getParameter() local 265 modes.emplace_back(mode); in getParameter() 268 const uint8_t num = modes.size(); in getParameter() 270 for (const auto mode : modes) { in getParameter() 281 std::vector<HeadTracking::ConnectionMode> modes; in getParameter() local 286 modes.emplace_back(mode); in getParameter() 289 const uint8_t num = modes.size(); in getParameter() 291 for (const auto mode : modes) { in getParameter()
|
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/mode/ |
D | DisplayModeDirectorTest.java | 409 Display.Mode[] modes = createDisplayModes(refreshRates, baseModeId); in createDirectorFromRefreshRateArray() local 410 Display.Mode defaultMode = getDefaultMode(modes, defaultRefreshRate); in createDirectorFromRefreshRateArray() 413 return createDirectorFromModeArray(modes, defaultMode, displayIds); in createDirectorFromRefreshRateArray() 416 private DisplayModeDirector createDirectorFromModeArray(Display.Mode[] modes, in createDirectorFromModeArray() argument 418 return createDirectorFromModeArray(modes, defaultMode, new int[]{DISPLAY_ID}); in createDirectorFromModeArray() 421 private DisplayModeDirector createDirectorFromModeArray(Display.Mode[] modes, in createDirectorFromModeArray() argument 427 setupModesForDisplays(director, displayIds , modes, defaultMode); in createDirectorFromModeArray() 449 Display.Mode[] modes, Display.Mode defaultMode) { in setupModesForDisplays() argument 453 supportedModesByDisplay.put(displayId, modes); in setupModesForDisplays() 461 Display.Mode[] modes = new Display.Mode[refreshRates.length]; in createDisplayModes() local [all …]
|
D | AppRequestObserverTest.kt | 58 val modes = arrayOf( in test app request votes() constant 67 append(Display.DEFAULT_DISPLAY, modes) in test app request votes() 70 append(Display.DEFAULT_DISPLAY, modes[0]) in test app request votes()
|
/frameworks/native/libs/binder/rust/rpcbinder/src/server/ |
D | android.rs | 137 modes: &[FileDescriptorTransportMode], in set_supported_file_descriptor_transport_modes() 144 modes.as_ptr(), in set_supported_file_descriptor_transport_modes() 145 modes.len(), in set_supported_file_descriptor_transport_modes()
|
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/volume/data/repository/ |
D | AudioRepositoryTest.kt | 118 val modes = mutableListOf<Int>() in audioModeChanges_repositoryEmits() constant 119 underTest.mode.onEach { modes.add(it) }.launchIn(backgroundScope) in audioModeChanges_repositoryEmits() 125 assertThat(modes).containsExactly(AudioManager.MODE_RINGTONE, AudioManager.MODE_IN_CALL) in audioModeChanges_repositoryEmits() 132 val modes = mutableListOf<RingerMode>() in ringerModeChanges_repositoryEmits() constant 133 underTest.ringerMode.onEach { modes.add(it) }.launchIn(backgroundScope) in ringerModeChanges_repositoryEmits() 140 assertThat(modes) in ringerModeChanges_repositoryEmits()
|
/frameworks/native/services/surfaceflinger/tests/unittests/mock/DisplayHardware/ |
D | MockDisplayMode.h | 66 inline DisplayModes cloneForDisplay(PhysicalDisplayId displayId, const DisplayModes& modes) { in cloneForDisplay() argument 69 for (const auto& [id, modePtr] : modes) { in cloneForDisplay()
|
/frameworks/native/services/surfaceflinger/DisplayHardware/ |
D | DisplayMode.h | 201 DisplayModes modes; in makeModes() local 204 (modes.try_emplace(modePtrs->getId(), modePtrs), ...); in makeModes() 205 return modes; in makeModes()
|
/frameworks/base/services/permission/java/com/android/server/permission/access/appop/ |
D | AppOpService.kt | 151 val modes = in <lambda>() constant 158 modes[appOpCode] = mode in <lambda>() 163 return modes in <lambda>() 326 private fun opNameMapToOpSparseArray(modes: ArrayMap<String, Int>?): SparseIntArray = in <lambda>() 327 if (modes == null) { in <lambda>() 330 val opSparseArray = SparseIntArray(modes.size) in <lambda>() 331 modes.forEachIndexed { _, opName, opMode -> in <lambda>()
|