/hardware/qcom/sdm845/display/sdm/libs/core/drm/ |
D | hw_virtual_drm.cpp | 89 drmModeModeInfo mode = {}; in SetWbConfigs() local 92 mode.hdisplay = mode.hsync_start = mode.hsync_end = mode.htotal = in SetWbConfigs() 94 mode.vdisplay = mode.vsync_start = mode.vsync_end = mode.vtotal = in SetWbConfigs() 96 mode.vrefresh = UINT32(display_attributes.fps); in SetWbConfigs() 97 mode.clock = (mode.htotal * mode.vtotal * mode.vrefresh) / 1000; in SetWbConfigs() 98 snprintf(mode.name, DRM_DISPLAY_MODE_LEN, "%dx%d", mode.hdisplay, mode.vdisplay); in SetWbConfigs() 99 modes.push_back(mode); in SetWbConfigs() 101 modes.push_back(item.mode); in SetWbConfigs() 201 if (display_attributes.x_pixels == connector_info_.modes[i].mode.hdisplay && in GetModeIndex() 202 display_attributes.y_pixels == connector_info_.modes[i].mode.vdisplay && in GetModeIndex() [all …]
|
D | hw_device_drm.cpp | 263 if (hw_rotator_session->mode == kRotatorOffline && hw_rotate_info->valid) { in Register() 438 if (connector_info_.modes[mode_index].mode.type & DRM_MODE_TYPE_PREFERRED) { in InitializeConfigs() 446 uint32_t width = connector_info_.modes[current_mode_index_].mode.hdisplay; in InitializeConfigs() 447 uint32_t height = connector_info_.modes[current_mode_index_].mode.vdisplay; in InitializeConfigs() 449 auto &mode = connector_info_.modes[i].mode; in InitializeConfigs() local 450 if (mode.hdisplay != width || mode.vdisplay != height) { in InitializeConfigs() 458 drmModeModeInfo mode = {}; in PopulateDisplayAttributes() local 471 res_mgr->GetMode(&mode); in PopulateDisplayAttributes() 474 mode = connector_info_.modes[index].mode; in PopulateDisplayAttributes() 480 display_attributes_[index].x_pixels = mode.hdisplay; in PopulateDisplayAttributes() [all …]
|
/hardware/qcom/sm8150/display/sdm/libs/core/drm/ |
D | hw_virtual_drm.cpp | 90 drmModeModeInfo mode = {}; in SetWbConfigs() local 93 mode.hdisplay = mode.hsync_start = mode.hsync_end = mode.htotal = in SetWbConfigs() 95 mode.vdisplay = mode.vsync_start = mode.vsync_end = mode.vtotal = in SetWbConfigs() 97 mode.vrefresh = UINT32(display_attributes.fps); in SetWbConfigs() 98 mode.clock = (mode.htotal * mode.vtotal * mode.vrefresh) / 1000; in SetWbConfigs() 99 snprintf(mode.name, DRM_DISPLAY_MODE_LEN, "%dx%d", mode.hdisplay, mode.vdisplay); in SetWbConfigs() 100 modes.push_back(mode); in SetWbConfigs() 102 modes.push_back(item.mode); in SetWbConfigs() 220 if (display_attributes.x_pixels == connector_info_.modes[i].mode.hdisplay && in GetModeIndex() 221 display_attributes.y_pixels == connector_info_.modes[i].mode.vdisplay && in GetModeIndex() [all …]
|
D | hw_device_drm.cpp | 301 if (hw_rotator_session->mode == kRotatorOffline && hw_rotate_info->valid) { in Register() 307 if (hw_rotator_session->mode == kRotatorInline && hw_rotate_info->valid && in Register() 534 if (connector_info_.modes[mode_index].mode.type & DRM_MODE_TYPE_PREFERRED) { in InitializeConfigs() 544 uint32_t width = connector_info_.modes[current_mode_index_].mode.hdisplay; in InitializeConfigs() 545 uint32_t height = connector_info_.modes[current_mode_index_].mode.vdisplay; in InitializeConfigs() 547 auto &mode = connector_info_.modes[i].mode; in InitializeConfigs() local 548 if (mode.hdisplay != width || mode.vdisplay != height) { in InitializeConfigs() 556 drmModeModeInfo mode = {}; in PopulateDisplayAttributes() local 569 res_mgr->GetMode(&mode); in PopulateDisplayAttributes() 572 mode = connector_info_.modes[index].mode; in PopulateDisplayAttributes() [all …]
|
/hardware/libhardware_legacy/audio/ |
D | AudioHardwareInterface.cpp | 54 static const char* displayMode(int mode) in displayMode() argument 56 if ((mode < AudioSystem::MODE_INVALID) || (mode >= AudioSystem::NUM_MODES)) in displayMode() 58 return routingModeStrings[mode+3]; in displayMode() 86 status_t AudioHardwareBase::setMode(int mode) in setMode() argument 89 ALOGD("setMode(%s)", displayMode(mode)); in setMode() 91 if ((mode < 0) || (mode >= AudioSystem::NUM_MODES)) in setMode() 93 if (mMode == mode) in setMode() 95 mMode = mode; in setMode()
|
/hardware/qcom/display/msm8084/libexternal/ |
D | external.cpp | 60 int mode = getUserMode(); in configure() local 61 if (mode == -1) { in configure() 63 mode = getBestMode(); in configure() 65 setResolution(mode); in configure() 253 const msm_hdmi_mode_timing_info* mode) in setDisplayTiming() argument 260 (mode->video_format << 16); in setDisplayTiming() 264 info.xres = mode->active_h; in setDisplayTiming() 265 info.yres = mode->active_v; in setDisplayTiming() 267 info.pixclock = (mode->pixel_freq)*1000; in setDisplayTiming() 268 info.vmode = mode->interlaced ? in setDisplayTiming() [all …]
|
/hardware/interfaces/audio/2.0/ |
D | IPrimaryDevice.hal | 34 * This method is used to notify the HAL about audio mode changes. 36 * @param mode new mode. 39 setMode(AudioMode mode) generates (Result retval); 62 * Gets whether BT SCO Wideband mode is enabled. Calling this method is 71 * Sets whether BT SCO Wideband mode is enabled. Calling this method is 87 * Gets current TTY mode selection. Calling this method is equivalent to 91 * @return mode TTY mode. 93 getTtyMode() generates (Result retval, TtyMode mode); 96 * Sets current TTY mode. Calling this method is equivalent to setting 99 * @param mode TTY mode. [all …]
|
/hardware/qcom/display/msm8226/libexternal/ |
D | external.cpp | 60 int mode = getUserMode(); in configure() local 61 if (mode == -1) { in configure() 63 mode = getBestMode(); in configure() 65 setResolution(mode); in configure() 253 const msm_hdmi_mode_timing_info* mode) in setDisplayTiming() argument 260 (mode->video_format << 16); in setDisplayTiming() 264 info.xres = mode->active_h; in setDisplayTiming() 265 info.yres = mode->active_v; in setDisplayTiming() 267 info.pixclock = (mode->pixel_freq)*1000; in setDisplayTiming() 268 info.vmode = mode->interlaced ? in setDisplayTiming() [all …]
|
/hardware/interfaces/wifi/1.3/default/ |
D | wifi_mode_controller.cpp | 28 int mode; in convertIfaceTypeToFirmwareMode() local 31 mode = DriverTool::kFirmwareModeAp; in convertIfaceTypeToFirmwareMode() 34 mode = DriverTool::kFirmwareModeP2p; in convertIfaceTypeToFirmwareMode() 38 mode = DriverTool::kFirmwareModeSta; in convertIfaceTypeToFirmwareMode() 41 mode = DriverTool::kFirmwareModeSta; in convertIfaceTypeToFirmwareMode() 44 return mode; in convertIfaceTypeToFirmwareMode()
|
/hardware/qcom/display/msm8994/libhdmi/ |
D | hdmi.cpp | 309 const msm_hdmi_mode_timing_info* mode) in setDisplayTiming() argument 316 (mode->video_format << 16); in setDisplayTiming() 320 info.xres = mode->active_h; in setDisplayTiming() 321 info.yres = mode->active_v; in setDisplayTiming() 323 info.pixclock = (mode->pixel_freq)*1000; in setDisplayTiming() 324 info.vmode = mode->interlaced ? in setDisplayTiming() 327 info.right_margin = mode->front_porch_h; in setDisplayTiming() 328 info.hsync_len = mode->pulse_width_h; in setDisplayTiming() 329 info.left_margin = mode->back_porch_h; in setDisplayTiming() 330 info.lower_margin = mode->front_porch_v; in setDisplayTiming() [all …]
|
D | hdmi.h | 43 EDIDData(int mode, int width, int height, int fps, int order) in EDIDData() 44 : mMode(mode), mWidth(width), mHeight(height), mFps(fps), mModeOrder(order) in EDIDData() 86 bool isValidMode(int mode); 87 int getModeOrder(int mode); 90 bool isInterlacedMode(int mode); 95 int getModeIndex(int mode);
|
/hardware/interfaces/power/aidl/vts/ |
D | VtsHalPowerTargetTest.cpp | 64 for (const auto& mode : kModes) { in TEST_P() local 65 ASSERT_TRUE(power->setMode(mode, true).isOk()); in TEST_P() 66 ASSERT_TRUE(power->setMode(mode, false).isOk()); in TEST_P() 68 for (const auto& mode : kInvalidModes) { in TEST_P() local 69 ASSERT_TRUE(power->setMode(mode, true).isOk()); in TEST_P() 70 ASSERT_TRUE(power->setMode(mode, false).isOk()); in TEST_P() 75 for (const auto& mode : kModes) { in TEST_P() local 77 ASSERT_TRUE(power->isModeSupported(mode, &supported).isOk()); in TEST_P() 79 for (const auto& mode : kInvalidModes) { in TEST_P() local 81 ASSERT_TRUE(power->isModeSupported(mode, &supported).isOk()); in TEST_P()
|
/hardware/qcom/sdm845/display/sdm/libs/core/ |
D | display_primary.cpp | 63 if (hw_panel_info_.mode == kModeCommand && Debug::IsVideoModeEnabled()) { in Init() 66 DLOGW("Retaining current display mode. Current = %d, Requested = %d", hw_panel_info_.mode, in Init() 71 if (hw_panel_info_.mode == kModeCommand) { in Init() 138 if (hw_panel_info_.mode == kModeCommand) { in Commit() 190 DisplayError DisplayPrimary::SetDisplayMode(uint32_t mode) { in SetDisplayMode() argument 196 HWDisplayMode hw_display_mode = static_cast<HWDisplayMode>(mode); in SetDisplayMode() 209 if (hw_display_mode == hw_panel_info_.mode) { in SetDisplayMode() 210 DLOGW("Same display mode requested. Current = %d, Requested = %d", hw_panel_info_.mode, in SetDisplayMode() 217 DLOGW("Retaining current display mode. Current = %d, Requested = %d", hw_panel_info_.mode, in SetDisplayMode() 222 if (mode == kModeVideo) { in SetDisplayMode() [all …]
|
/hardware/qcom/sdm845/gps/msm8998/android/location_api/ |
D | FlpAPIClient.cpp | 95 uint32_t mode = 0; in flpStartSession() local 97 mode = SESSION_MODE_ON_FULL; in flpStartSession() 99 if (locAPIStartSession(mDefaultId, mode, options) == LOCATION_ERROR_SUCCESS) { in flpStartSession() 113 uint32_t mode = 0; in flpUpdateSessionOptions() local 115 mode = SESSION_MODE_ON_FULL; in flpUpdateSessionOptions() 117 if (locAPIUpdateSessionOptions(mDefaultId, mode, options) == LOCATION_ERROR_SUCCESS) { in flpUpdateSessionOptions() 175 out.mode = GNSS_SUPL_MODE_STANDALONE; in convertBatchOption() 177 out.mode = GNSS_SUPL_MODE_MSA; in convertBatchOption() 179 out.mode = GNSS_SUPL_MODE_MSB; in convertBatchOption()
|
/hardware/qcom/gps/msm8998/android/location_api/ |
D | FlpAPIClient.cpp | 95 uint32_t mode = 0; in flpStartSession() local 97 mode = SESSION_MODE_ON_FULL; in flpStartSession() 99 if (locAPIStartSession(mDefaultId, mode, options) == LOCATION_ERROR_SUCCESS) { in flpStartSession() 113 uint32_t mode = 0; in flpUpdateSessionOptions() local 115 mode = SESSION_MODE_ON_FULL; in flpUpdateSessionOptions() 117 if (locAPIUpdateSessionOptions(mDefaultId, mode, options) == LOCATION_ERROR_SUCCESS) { in flpUpdateSessionOptions() 175 out.mode = GNSS_SUPL_MODE_STANDALONE; in convertBatchOption() 177 out.mode = GNSS_SUPL_MODE_MSA; in convertBatchOption() 179 out.mode = GNSS_SUPL_MODE_MSB; in convertBatchOption()
|
/hardware/qcom/msm8960/original-kernel-headers/linux/ |
D | msm_rmnet.h | 26 #define RMNET_IS_MODE_QOS(mode) \ argument 27 ((mode & RMNET_MODE_QOS) == RMNET_MODE_QOS) 28 #define RMNET_IS_MODE_IP(mode) \ argument 29 ((mode & RMNET_MODE_LLP_IP) == RMNET_MODE_LLP_IP)
|
/hardware/qcom/msm8960/kernel-headers/linux/ |
D | msm_rmnet.h | 27 #define RMNET_IS_MODE_QOS(mode) ((mode & RMNET_MODE_QOS) == RMNET_MODE_QOS) argument 29 #define RMNET_IS_MODE_IP(mode) ((mode & RMNET_MODE_LLP_IP) == RMNET_MODE_LLP_IP) argument
|
/hardware/qcom/gps/msm8909w_3100/android/location_api/ |
D | BatchingAPIClient.cpp | 100 uint32_t mode = 0; in startSession() local 102 mode = SESSION_MODE_ON_FULL; in startSession() 104 if (locAPIStartSession(mDefaultId, mode, options) == LOCATION_ERROR_SUCCESS) { in startSession() 118 uint32_t mode = 0; in updateSessionOptions() local 120 mode = SESSION_MODE_ON_FULL; in updateSessionOptions() 122 if (locAPIUpdateSessionOptions(mDefaultId, mode, options) == LOCATION_ERROR_SUCCESS) { in updateSessionOptions() 180 out.mode = GNSS_SUPL_MODE_STANDALONE; in convertBatchOption() 182 out.mode = GNSS_SUPL_MODE_MSA; in convertBatchOption() 184 out.mode = GNSS_SUPL_MODE_MSB; in convertBatchOption()
|
/hardware/qcom/sdm845/gps/sdm845/android/location_api/ |
D | BatchingAPIClient.cpp | 104 uint32_t mode = 0; in startSession() local 106 mode = SESSION_MODE_ON_FULL; in startSession() 108 if (locAPIStartSession(mDefaultId, mode, options) == LOCATION_ERROR_SUCCESS) { in startSession() 122 uint32_t mode = 0; in updateSessionOptions() local 124 mode = SESSION_MODE_ON_FULL; in updateSessionOptions() 126 if (locAPIUpdateSessionOptions(mDefaultId, mode, options) == LOCATION_ERROR_SUCCESS) { in updateSessionOptions() 184 out.mode = GNSS_SUPL_MODE_STANDALONE; in convertBatchOption() 186 out.mode = GNSS_SUPL_MODE_MSA; in convertBatchOption() 188 out.mode = GNSS_SUPL_MODE_MSB; in convertBatchOption()
|
/hardware/qcom/sm8150/gps/android/1.1/location_api/ |
D | BatchingAPIClient.cpp | 104 uint32_t mode = 0; in startSession() local 106 mode = SESSION_MODE_ON_FULL; in startSession() 108 if (locAPIStartSession(mDefaultId, mode, options) == LOCATION_ERROR_SUCCESS) { in startSession() 122 uint32_t mode = 0; in updateSessionOptions() local 124 mode = SESSION_MODE_ON_FULL; in updateSessionOptions() 126 if (locAPIUpdateSessionOptions(mDefaultId, mode, options) == LOCATION_ERROR_SUCCESS) { in updateSessionOptions() 185 out.mode = GNSS_SUPL_MODE_STANDALONE; in convertBatchOption() 187 out.mode = GNSS_SUPL_MODE_MSA; in convertBatchOption() 189 out.mode = GNSS_SUPL_MODE_MSB; in convertBatchOption()
|
/hardware/qcom/sm8150/gps/android/1.0/location_api/ |
D | BatchingAPIClient.cpp | 104 uint32_t mode = 0; in startSession() local 106 mode = SESSION_MODE_ON_FULL; in startSession() 108 if (locAPIStartSession(mDefaultId, mode, options) == LOCATION_ERROR_SUCCESS) { in startSession() 122 uint32_t mode = 0; in updateSessionOptions() local 124 mode = SESSION_MODE_ON_FULL; in updateSessionOptions() 126 if (locAPIUpdateSessionOptions(mDefaultId, mode, options) == LOCATION_ERROR_SUCCESS) { in updateSessionOptions() 185 out.mode = GNSS_SUPL_MODE_STANDALONE; in convertBatchOption() 187 out.mode = GNSS_SUPL_MODE_MSA; in convertBatchOption() 189 out.mode = GNSS_SUPL_MODE_MSB; in convertBatchOption()
|
/hardware/interfaces/audio/core/all-versions/vts/functional/2.0/ |
D | AudioPrimaryHidlHalTest.cpp | 69 for (AudioMode mode : {AudioMode::INVALID, AudioMode::CURRENT, AudioMode::CNT}) { in TEST_P() 70 SCOPED_TRACE("mode=" + toString(mode)); in TEST_P() 71 ASSERT_RESULT(Result::INVALID_ARGUMENTS, getDevice()->setMode(mode)); in TEST_P() 74 for (AudioMode mode : {AudioMode::IN_CALL, AudioMode::IN_COMMUNICATION, AudioMode::RINGTONE, in TEST_P() 76 SCOPED_TRACE("mode=" + toString(mode)); in TEST_P() 77 ASSERT_OK(getDevice()->setMode(mode)); in TEST_P()
|
/hardware/qcom/display/msm8909w_3100/sdm/libs/core/fb/ |
D | hw_hdmi.cpp | 149 static bool MapHDMIDisplayTiming(const msm_hdmi_mode_timing_info *mode, in MapHDMIDisplayTiming() argument 151 if (!mode || !info) { in MapHDMIDisplayTiming() 158 info->reserved[3] = (info->reserved[3] & 0xFFFF) | (mode->video_format << 16); in MapHDMIDisplayTiming() 161 info->xres = mode->active_h; in MapHDMIDisplayTiming() 162 info->yres = mode->active_v; in MapHDMIDisplayTiming() 163 info->pixclock = (mode->pixel_freq) * 1000; in MapHDMIDisplayTiming() 164 info->vmode = mode->interlaced ? FB_VMODE_INTERLACED : FB_VMODE_NONINTERLACED; in MapHDMIDisplayTiming() 165 info->right_margin = mode->front_porch_h; in MapHDMIDisplayTiming() 166 info->hsync_len = mode->pulse_width_h; in MapHDMIDisplayTiming() 167 info->left_margin = mode->back_porch_h; in MapHDMIDisplayTiming() [all …]
|
/hardware/interfaces/audio/5.0/ |
D | IPrimaryDevice.hal | 32 * This method is used to notify the HAL about audio mode changes. 34 * @param mode new mode. 37 setMode(AudioMode mode) generates (Result retval); 72 * Gets whether BT SCO Wideband mode is enabled. Calling this method is 81 * Sets whether BT SCO Wideband mode is enabled. Calling this method is 140 * Gets current TTY mode selection. Calling this method is equivalent to 144 * @return mode TTY mode. 146 getTtyMode() generates (Result retval, TtyMode mode); 149 * Sets current TTY mode. Calling this method is equivalent to setting 152 * @param mode TTY mode. [all …]
|
/hardware/interfaces/audio/6.0/ |
D | IPrimaryDevice.hal | 32 * This method is used to notify the HAL about audio mode changes. 34 * @param mode new mode. 37 setMode(AudioMode mode) generates (Result retval); 72 * Gets whether BT SCO Wideband mode is enabled. Calling this method is 81 * Sets whether BT SCO Wideband mode is enabled. Calling this method is 140 * Gets current TTY mode selection. Calling this method is equivalent to 144 * @return mode TTY mode. 146 getTtyMode() generates (Result retval, TtyMode mode); 149 * Sets current TTY mode. Calling this method is equivalent to setting 152 * @param mode TTY mode. [all …]
|