Lines Matching refs:mode
127 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()
326 mode.st_up_step = kAtcStStep; in parseAtcProfile()
329 mode.st_down_step = nodes[i][kAtcProfileStDownStepStr].asUInt(); in parseAtcProfile()
331 mode.st_down_step = kAtcStStep; in parseAtcProfile()
336 mode.sub_setting[it->first.c_str()] = in parseAtcProfile()
339 auto ret = mAtcModeSetting.insert(std::make_pair(name.c_str(), mode)); in parseAtcProfile()
421 atc_mode mode = mode_data->second; in setAtcMode() local
423 mAtcSubSetting[it->first.c_str()].value.store(mode.sub_setting[it->first.c_str()]); in setAtcMode()
431 mAtcStUpStep = mode.st_up_step; in setAtcMode()
432 mAtcStDownStep = mode.st_down_step; in setAtcMode()
434 uint32_t index = getAtcLuxMapIndex(mode.lux_map, mCurrentLux); in setAtcMode()
435 ambient_light = mode.lux_map[index].al; in setAtcMode()
436 strength = mode.lux_map[index].st; in setAtcMode()
514 atc_mode mode = it->second; in setLbeAmbientLight() local
516 uint32_t index = getAtcLuxMapIndex(mode.lux_map, value); in setLbeAmbientLight()
517 if (setAtcAmbientLight(mode.lux_map[index].al) != NO_ERROR) { in setLbeAmbientLight()
522 if (setAtcStDimming(mode.lux_map[index].st) != NO_ERROR) { in setLbeAmbientLight()
617 int32_t ExynosPrimaryDisplayModule::setPowerMode(int32_t mode) { in setPowerMode() argument
621 ret = ExynosPrimaryDisplay::setPowerMode(mode); in setPowerMode()
623 if ((ret == HWC2_ERROR_NONE) && isDisplaySwitched(mode, prevPowerModeState)) { in setPowerMode()
632 bool ExynosPrimaryDisplayModule::isDisplaySwitched(int32_t mode, int32_t prevMode) { in isDisplaySwitched() argument
636 (mode != HWC_POWER_MODE_OFF); in isDisplaySwitched()