Home
last modified time | relevance | path

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

12345678910>>...67

/hardware/google/aemu/base/testing/
Dfile_io.cpp50 FILE* android_fopen(const char* path, const char* mode) { in android_fopen() argument
52 Win32UnicodeString wmode(mode); in android_fopen()
66 return WIDEN_CALL_2(fopen, path, mode); in android_fopen()
70 FILE* android_popen(const char* path, const char* mode) { in android_popen() argument
71 return WIDEN_CALL_2(popen, path, mode); in android_popen()
87 int android_open_with_mode(const char* path, int flags, mode_t mode) { in android_open_with_mode() argument
88 int res = WIDEN_CALL_1(open, path, flags | O_CLOEXEC, mode); in android_open_with_mode()
109 int android_access(const char* path, int mode) { in android_access() argument
110 return WIDEN_CALL_1(access, path, mode); in android_access()
120 int android_mkdir(const char* path, mode_t mode) { in android_mkdir() argument
[all …]
/hardware/google/pixel/thermal/
Dpixel-thermal-logd.rc37 write /dev/thermal/tz-by-name/quiet-therm-adc/mode disabled
38 write /dev/thermal/tz-by-name/quiet-therm-monitor/mode disabled
39 write /dev/thermal/tz-by-name/fps-therm-adc/mode disabled
40 write /dev/thermal/tz-by-name/fps-therm-monitor/mode disabled
42 write /dev/thermal/tz-by-name/mb-therm-adc/mode disabled
43 write /dev/thermal/tz-by-name/mb-therm-monitor/mode disabled
45 write /dev/thermal/tz-by-name/sdm-therm/mode disabled
46 write /dev/thermal/tz-by-name/sdm-therm-monitor/mode disabled
48 write /dev/thermal/tz-by-name/skin-therm-adc/mode disabled
49 write /dev/thermal/tz-by-name/skin-therm-monitor/mode disabled
[all …]
/hardware/google/gfxstream/guest/mesa/src/util/format/
Dtexcompress_bptc_tmp.h355 extract_unorm_endpoints(const struct bptc_unorm_mode *mode, in extract_unorm_endpoints() argument
368 for (subset = 0; subset < mode->n_subsets; subset++) { in extract_unorm_endpoints()
371 extract_bits(block, bit_offset, mode->n_color_bits); in extract_unorm_endpoints()
372 bit_offset += mode->n_color_bits; in extract_unorm_endpoints()
378 if (mode->n_alpha_bits > 0) { in extract_unorm_endpoints()
379 for (subset = 0; subset < mode->n_subsets; subset++) { in extract_unorm_endpoints()
382 extract_bits(block, bit_offset, mode->n_alpha_bits); in extract_unorm_endpoints()
383 bit_offset += mode->n_alpha_bits; in extract_unorm_endpoints()
389 for (subset = 0; subset < mode->n_subsets; subset++) in extract_unorm_endpoints()
397 if (mode->has_endpoint_pbits) { in extract_unorm_endpoints()
[all …]
/hardware/qcom/sm7250/display/sdm/libs/core/drm/
Dhw_virtual_drm.cpp96 drmModeModeInfo mode = {}; in SetWbConfigs() local
99 mode.hdisplay = mode.hsync_start = mode.hsync_end = mode.htotal = in SetWbConfigs()
101 mode.vdisplay = mode.vsync_start = mode.vsync_end = mode.vtotal = in SetWbConfigs()
103 mode.vrefresh = UINT32(display_attributes.fps); in SetWbConfigs()
104 mode.clock = (mode.htotal * mode.vtotal * mode.vrefresh) / 1000; in SetWbConfigs()
105 snprintf(mode.name, DRM_DISPLAY_MODE_LEN, "%dx%d", mode.hdisplay, mode.vdisplay); in SetWbConfigs()
106 modes.push_back(mode); in SetWbConfigs()
108 modes.push_back(item.mode); in SetWbConfigs()
228 if (display_attributes.x_pixels == connector_info_.modes[i].mode.hdisplay && in GetModeIndex()
229 display_attributes.y_pixels == connector_info_.modes[i].mode.vdisplay && in GetModeIndex()
[all …]
/hardware/qcom/sm8150/display/sdm/libs/core/drm/
Dhw_virtual_drm.cpp90 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 …]
Dhw_device_drm.cpp308 if (hw_rotator_session->mode == kRotatorOffline && hw_rotate_info->valid) { in Register()
314 if (hw_rotator_session->mode == kRotatorInline && hw_rotate_info->valid && in Register()
561 if (connector_info_.modes[mode_index].mode.type & DRM_MODE_TYPE_PREFERRED) { in InitializeConfigs()
571 uint32_t width = connector_info_.modes[current_mode_index_].mode.hdisplay; in InitializeConfigs()
572 uint32_t height = connector_info_.modes[current_mode_index_].mode.vdisplay; in InitializeConfigs()
574 auto &mode = connector_info_.modes[i].mode; in InitializeConfigs() local
575 if (mode.hdisplay != width || mode.vdisplay != height) { in InitializeConfigs()
583 drmModeModeInfo mode = {}; in PopulateDisplayAttributes() local
596 res_mgr->GetMode(&mode); in PopulateDisplayAttributes()
599 mode = connector_info_.modes[index].mode; in PopulateDisplayAttributes()
[all …]
/hardware/libhardware_legacy/audio/
DAudioHardwareInterface.cpp54 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/google/aemu/base/include/aemu/base/testing/
Dfile_io.h24 FILE* android_fopen(const char* path, const char* mode);
25 FILE* android_popen(const char* path, const char* mode);
39 int android_open_with_mode(const char* path, int flags, mode_t mode);
49 int android_access(const char* path, int mode);
50 int android_mkdir(const char* path, mode_t mode);
52 int android_creat(const char* path, mode_t mode);
55 int android_chmod(const char* path, mode_t mode);
/hardware/google/pixel/power-libperfmgr/aidl/
DPowerExt.cpp42 ndk::ScopedAStatus PowerExt::setMode(const std::string &mode, bool enabled) { in setMode() argument
43 LOG(DEBUG) << "PowerExt setMode: " << mode << " to: " << enabled; in setMode()
46 HintManager::GetInstance()->DoHint(mode); in setMode()
48 HintManager::GetInstance()->EndHint(mode); in setMode()
52 PowerSessionManager<>::getInstance()->updateHintMode(mode, enabled); in setMode()
58 ndk::ScopedAStatus PowerExt::isModeSupported(const std::string &mode, bool *_aidl_return) { in isModeSupported() argument
59 bool supported = HintManager::GetInstance()->IsHintSupported(mode); in isModeSupported()
61 if (!supported && HintManager::GetInstance()->IsAdpfProfileSupported(mode)) { in isModeSupported()
64 LOG(INFO) << "PowerExt mode " << mode << " isModeSupported: " << supported; in isModeSupported()
/hardware/google/aemu/base/
DSharedMemory_posix.cpp41 int SharedMemory::create(mode_t mode) { in create() argument
42 return openInternal(O_CREAT | O_RDWR, mode); in create()
45 int SharedMemory::createNoMapping(mode_t mode) { in createNoMapping() argument
46 return openInternal(O_CREAT | O_RDWR, mode, false /* no mapping */); in createNoMapping()
51 int mode = 0400; in open() local
54 mode = 0600; in open()
56 return openInternal(oflag, mode); in open()
85 int SharedMemory::openInternal(int oflag, int mode, bool doMapping) { in openInternal() argument
94 mFd = shm_open(mName.c_str(), oflag, mode); in openInternal()
99 mFd = ::open(mName.c_str(), oflag, mode); in openInternal()
/hardware/qcom/display/msm8084/libexternal/
Dexternal.cpp60 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/
DIPrimaryDevice.hal34 * 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/
Dexternal.cpp60 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/aidl/default/
Dwifi_mode_controller.cpp28 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/google/gfxstream/host/gl/glestranslator/GLcommon/
DGLESvalidate.cpp94 bool GLESvalidate::drawMode(GLenum mode) { in drawMode() argument
95 switch(mode) { in drawMode()
108 bool GLESvalidate::drawType(GLenum mode) { in drawType() argument
109 return mode == GL_UNSIGNED_BYTE || in drawType()
110 mode == GL_UNSIGNED_SHORT || in drawType()
111 mode == GL_UNSIGNED_INT; in drawType()
136 bool GLESvalidate::blendEquationMode(GLenum mode){ in blendEquationMode() argument
137 return mode == GL_FUNC_ADD || in blendEquationMode()
138 mode == GL_FUNC_SUBTRACT || in blendEquationMode()
139 mode == GL_FUNC_REVERSE_SUBTRACT; in blendEquationMode()
/hardware/qcom/display/msm8994/libhdmi/
Dhdmi.cpp309 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 …]
/hardware/google/graphics/gs101/libhwc2.1/libmaindisplay/
DExynosPrimaryDisplayModule.cpp127 int32_t ExynosPrimaryDisplayModule::setColorMode(int32_t mode) in setColorMode() argument
129 return mColorManager->setColorMode(mode); in setColorMode()
132 int32_t ExynosPrimaryDisplayModule::getRenderIntents(int32_t mode, in getRenderIntents() argument
135 return mColorManager->getRenderIntents(mode, outNumIntents, outIntents); in getRenderIntents()
138 int32_t ExynosPrimaryDisplayModule::setColorModeWithRenderIntent(int32_t mode, in setColorModeWithRenderIntent() argument
141 return mColorManager->setColorModeWithRenderIntent(mode, intent); in setColorModeWithRenderIntent()
303 atc_mode mode; in parseAtcProfile() local
316 mode.lux_map.clear(); in parseAtcProfile()
318 mode.lux_map.emplace_back(atc_lux_map{nodes[i][kAtcProfileLuxMapStr][index].asUInt(), in parseAtcProfile()
324 mode.st_up_step = nodes[i][kAtcProfileStUpStepStr].asUInt(); in parseAtcProfile()
[all …]
/hardware/qcom/gps/msm8998/android/location_api/
DFlpAPIClient.cpp95 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/msm8909w_3100/android/location_api/
DBatchingAPIClient.cpp100 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/sm7250/gps/android/1.0/location_api/
DBatchingAPIClient.cpp105 uint32_t mode = 0; in startSession() local
107 mode = SESSION_MODE_ON_FULL; in startSession()
109 if (locAPIStartSession(mDefaultId, mode, options) == LOCATION_ERROR_SUCCESS) { in startSession()
123 uint32_t mode = 0; in updateSessionOptions() local
125 mode = SESSION_MODE_ON_FULL; in updateSessionOptions()
127 if (locAPIUpdateSessionOptions(mDefaultId, mode, options) == LOCATION_ERROR_SUCCESS) { in updateSessionOptions()
186 out.mode = GNSS_SUPL_MODE_STANDALONE; in convertBatchOption()
188 out.mode = GNSS_SUPL_MODE_MSA; in convertBatchOption()
190 out.mode = GNSS_SUPL_MODE_MSB; in convertBatchOption()
/hardware/qcom/sm8150p/gps/android/1.1/location_api/
DBatchingAPIClient.cpp104 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/sm7150/gps/android/1.1/location_api/
DBatchingAPIClient.cpp104 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/sm7150/gps/android/1.0/location_api/
DBatchingAPIClient.cpp104 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/sm7250/gps/android/1.1/location_api/
DBatchingAPIClient.cpp105 uint32_t mode = 0; in startSession() local
107 mode = SESSION_MODE_ON_FULL; in startSession()
109 if (locAPIStartSession(mDefaultId, mode, options) == LOCATION_ERROR_SUCCESS) { in startSession()
123 uint32_t mode = 0; in updateSessionOptions() local
125 mode = SESSION_MODE_ON_FULL; in updateSessionOptions()
127 if (locAPIUpdateSessionOptions(mDefaultId, mode, options) == LOCATION_ERROR_SUCCESS) { in updateSessionOptions()
186 out.mode = GNSS_SUPL_MODE_STANDALONE; in convertBatchOption()
188 out.mode = GNSS_SUPL_MODE_MSA; in convertBatchOption()
190 out.mode = GNSS_SUPL_MODE_MSB; in convertBatchOption()
/hardware/qcom/sm8150p/gps/android/1.0/location_api/
DBatchingAPIClient.cpp104 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()

12345678910>>...67