summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Universal/HiiDatabaseDxe
AgeCommit message (Collapse)AuthorFilesLines
2012-12-17Base on the value type to get the value for default opcode.ydong101-1/+1
Signed-off-by: Eric Dong <eric.dong@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com> git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@14006 6f19259b-4bc3-4df7-8a09-765794883524
2012-12-05Update the HiiConfigToBlock to follow spec.ydong101-15/+9
Signed-off-by: Eric Dong <eric.dong@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com> git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13983 6f19259b-4bc3-4df7-8a09-765794883524
2012-09-29MdeModulePkg:removes the unreachable ‘break’ instruction after a ↵erictian1-6/+0
‘return’ instruction in the switch(). Signed-off-by: Olivier Martin <olivier.martin@arm.com> Signed-off-by: Feng Tian <feng.tian@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com> git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13778 6f19259b-4bc3-4df7-8a09-765794883524
2012-08-21Initialize the variable before use it.ydong101-1/+2
Signed-off-by: Eric Dong <eric.dong@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com> git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13656 6f19259b-4bc3-4df7-8a09-765794883524
2012-06-26Check whether has storage for date/time opcode, if it has storage, also ↵ydong101-1/+137
generate the offset/width info for it. Signed-off-by: Eric Dong <eric.dong@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com> git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13473 6f19259b-4bc3-4df7-8a09-765794883524
2012-05-31Fixed build failed.ydong101-1/+1
Signed-off-by: Eric Dong <eric.dong@intel.com> git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13406 6f19259b-4bc3-4df7-8a09-765794883524
2012-05-30Add new interface GetVariable2 and GetEfiGlobalVariable2 to return more ↵ydong101-1/+1
info. Also replace old interface with new one. Signed-off-by: Eric Dong <eric.dong@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com> git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13375 6f19259b-4bc3-4df7-8a09-765794883524
2012-05-07Fix memory leak issues.ydong101-0/+2
Signed-off-by: Eric Dong <eric.dong@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com> Reviewed-by: Li Elvin <elvin.li@intel.com> Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com> git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13288 6f19259b-4bc3-4df7-8a09-765794883524
2012-04-24Update HiiFont Service to return error status instead of ASSERT for the ↵lgao41-2/+8
invalid input. Signed-off-by: Liming Gao <liming.gao@intel.com> Reviewed-by: Eric Dong <eric.dong@intel.com> git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13209 6f19259b-4bc3-4df7-8a09-765794883524
2011-11-24Patch includes:ydong102-17/+77
1. Support get default value for ref opcode logic. 2. Correct the sample for ref opcode with default value. 3. Refine logic about processing device path info in ref value. Signed-off-by: ydong10 Reviewed-by: lgao4 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12774 6f19259b-4bc3-4df7-8a09-765794883524
2011-11-23Update code to follow coding style. Mainly change about:ydong102-11/+11
1. Remove duplicate lib 2. Refine the name for enum member. Signed-off-by: ydong10 Reviewed-by: lgao4 Reviewed-by: gdong1 Reviewed-by: vanjeff git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12767 6f19259b-4bc3-4df7-8a09-765794883524
2011-11-18Patch for:ydong102-111/+119
1. Get default value base on the priority: default opcode has highest priority and get from minimum or first option has lowest. 2. When default value saved in expression, not set default value for this question. Signed-off-by: ydong10 Reviewed-by: lgao4 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12738 6f19259b-4bc3-4df7-8a09-765794883524
2011-10-13Refine code and check null pointer error.ydong101-7/+5
Signed-off-by: ydong10 Reviewed-by: mdkinney git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12532 6f19259b-4bc3-4df7-8a09-765794883524
2011-10-09Update code to make get string case insensitive about languageydong101-2/+50
Signed-off-by: ydong10 Reviewed-by: rsun3 Reviewed-by: lgao4 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12517 6f19259b-4bc3-4df7-8a09-765794883524
2011-09-29Add pointer check for NULL before dereference it.ydong101-1/+5
Signed-off-by: ydong10 Reviewed-by: rsun3, lgao4 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12472 6f19259b-4bc3-4df7-8a09-765794883524
2011-09-18Clean up the private GUID definition in module Level.lgao42-15/+3
0. Remove the unused private GUID from module source files. 1. Use gEfiCallerIdGuid replace of the private module GUID. 2. Add the public header files to define HII FormSet and PackageList GUID used in every HII driver. 3. Move two EBC protocols for debug purpose from EBC driver to MdeModulePkg Include directory. Signed-off-by: lgao4 Reviewed-by: ydong10 gdong1 tye jfan12 wli12 rsun3 jyao1 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12373 6f19259b-4bc3-4df7-8a09-765794883524
2011-09-13MdeModulePkg/HiiDatabaseDxe: Removed unused variablesoliviermartin1-4/+0
'VarDefaultName' and 'ResultSize' were set but not used. Reviewed-by: lgao4 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12341 6f19259b-4bc3-4df7-8a09-765794883524
2011-09-01Update HiiBlockToConfig function to follow spec.ydong101-4/+11
Signed-off-by: ydong10 Reviewed-by: lgao4 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12249 6f19259b-4bc3-4df7-8a09-765794883524
2011-08-01Fixes two issues in HiiFontProtocol->StringToImage() implementation on how ↵lgao41-7/+29
to show string with wrap flag. Signed-off-by: lgao4 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12064 6f19259b-4bc3-4df7-8a09-765794883524
2011-07-13Fixed build fail with GCC/ICC toolsydong101-1/+1
Signed-off-by:ydong10 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12014 6f19259b-4bc3-4df7-8a09-765794883524
2011-07-12Change the HiiDataBase and browser codes to support new efi varstore data ↵ydong101-63/+481
structure. Signed-off-by:ydong10 Reviewed-by:lgao4 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12009 6f19259b-4bc3-4df7-8a09-765794883524
2011-06-10Add the missing logic in HiiConfigRouting ExtractConfig() to retrieves FALSE ↵lgao41-31/+44
as default value for CheckBox without default flag. Signed-off-by: lgao4 Reviewed-by: ydong10 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11782 6f19259b-4bc3-4df7-8a09-765794883524
2011-06-08String Reference Cleanup.lzeng142-27/+35
Signed-off-by: lzeng14 Reviewed-by: lgao4 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11762 6f19259b-4bc3-4df7-8a09-765794883524
2011-04-19Update ALTCFG reference from default name token to default ID.ydong102-70/+7
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11558 6f19259b-4bc3-4df7-8a09-765794883524
2011-04-13Do not assert in HiiBlockToConfig function when an invalid format of ↵ydong101-5/+6
ConfigRequest is inputed, just return error. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11526 6f19259b-4bc3-4df7-8a09-765794883524
2011-04-01Use the minimum value for Numeric and the first option value for OneOf as ↵lgao41-2/+63
their default value when no specific default value is specified. HII IFR Numeric and OneOf opcode may not specify their default value in opcode. And, zero may not be valid value for them. To make sure the valid value is set to default value, the minimum value for Numeric and the first option value for OneOf will be chosen as default value. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11497 6f19259b-4bc3-4df7-8a09-765794883524
2011-03-18Fix ICC build failure.lgao41-1/+1
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11411 6f19259b-4bc3-4df7-8a09-765794883524
2011-03-17Use exactly match method for HiiCompareLanguage.ydong101-4/+18
Compare all of Language2 against the characters in Language1 up to the first ‘;’ or Null terminator. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11409 6f19259b-4bc3-4df7-8a09-765794883524
2011-03-14Roll back change to previous version. Language should be compared as the ↵lgao41-14/+1
exact match. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11398 6f19259b-4bc3-4df7-8a09-765794883524
2011-03-14Enhance inf and dec file to follow specs.ydong101-2/+2
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11392 6f19259b-4bc3-4df7-8a09-765794883524
2011-03-08Update HiiCompareLanguage to support case that language in String package is ↵lgao42-5/+21
"en" and the input language is "en-US". git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11356 6f19259b-4bc3-4df7-8a09-765794883524
2011-02-23The input StringInfo should be kept for HiiStringIdToImage() function. lgao41-1/+0
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11336 6f19259b-4bc3-4df7-8a09-765794883524
2011-02-23HiiCompareLanguage should use the exact match method, old code use the best ↵ydong101-4/+3
match method. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11333 6f19259b-4bc3-4df7-8a09-765794883524
2011-02-16Update HiiCompareLanguage() function to use GetBestLanguage() API to do ↵lgao41-17/+1
RFC4646 language compare. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11319 6f19259b-4bc3-4df7-8a09-765794883524
2011-01-24 Support proportional Font and Font output flags. lgao42-182/+351
1. Abstract the maximum baseline and character height in Proportional Font package as its baseline and line height, and use fixed height as base line and line height for simple font packages. 2. Update logic to handle string without EFI_HII_OUT_FLAG_CLIP_CLEAN_Y flag when string height exceeds the line height, and handle the string without EFI_HII_OUT_FLAG_CLIP_CLEAN_X flag when string wide exceeds the screen wide. 3. Calculate Origin point by adding BaseLine on Starting position, and calculate the left-top corner of character by Origin point and CELL information. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11270 6f19259b-4bc3-4df7-8a09-765794883524
2011-01-21MdeModulePkg HiiDatabaseDxe: Fix build error on GCC 4.4jljusten1-4/+4
Remove extra left side (lvalue) type casting that generated warnings with GCC 4.4. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11267 6f19259b-4bc3-4df7-8a09-765794883524
2011-01-21Enhance code to avoid build error.ydong101-6/+6
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11261 6f19259b-4bc3-4df7-8a09-765794883524
2011-01-20Fixed HiiSetString failed. Tracker NUM:204479ydong103-18/+198
Reason: When call function HiiSetString to update the string which has no old string exist for one language, it will failed. Solution: When no old string exist, update with new string. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11257 6f19259b-4bc3-4df7-8a09-765794883524
2010-12-09EFI_INVALID_PARAMETER should return when the input Block is NULL for ↵lgao41-3/+6
ConfigRouting.ConfigToBlock(). git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11145 6f19259b-4bc3-4df7-8a09-765794883524
2010-11-23 Fix the bug that HiiConfigToBlock doesn't update BlockSize when Block is ↵lgao41-8/+24
not large enough git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11085 6f19259b-4bc3-4df7-8a09-765794883524
2010-10-25Update HiiDatabase->ExportPackageLists() service to support NULL HII handle ↵lgao41-2/+2
per UEFI spec. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10979 6f19259b-4bc3-4df7-8a09-765794883524
2010-09-16Refine code to make code run safely.ydong101-1/+1
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10880 6f19259b-4bc3-4df7-8a09-765794883524
2010-09-15Refine soma code to make code run safely.ydong101-1/+1
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10877 6f19259b-4bc3-4df7-8a09-765794883524
2010-04-24Update the copyright notice formathhtian8-16/+16
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10418 6f19259b-4bc3-4df7-8a09-765794883524
2010-02-27Add the missing check for NULL pointer before use it.lgao41-2/+2
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10116 6f19259b-4bc3-4df7-8a09-765794883524
2010-02-25Enhance SetupBrowser to support new UEFI HiiFormMap featurelgao41-1/+2
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10069 6f19259b-4bc3-4df7-8a09-765794883524
2010-02-241. Correct File header to ## @filelgao41-6/+6
2. Remove unnecessary .common] postfix on section. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10052 6f19259b-4bc3-4df7-8a09-765794883524
2010-02-221. Update GetStringWorker() of HiiDataBaseDxe to only search in other ↵lgao41-3/+10
language and not update the StringSize to avoid GetString() buffer overflow. 2. Update SetupBrowser to correctly handle ordered list option. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10041 6f19259b-4bc3-4df7-8a09-765794883524
2010-02-11Update HiiDataBase to make sure that the installed StringPackages contains ↵lgao41-1/+87
the same number string ID. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9989 6f19259b-4bc3-4df7-8a09-765794883524
2010-02-111. free those inserted NsKeyNode resource when releasing SetKeyBoardLayout ↵erictian2-3/+7
event. 2. cleanup HiiDataBaseDxe to directly use gEfiHiiKeyBoardLayoutGuid which is used as the guid of event group. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9978 6f19259b-4bc3-4df7-8a09-765794883524