CN104615396A - Android-based resolution ratio automatic adjustment method and system - Google Patents

Android-based resolution ratio automatic adjustment method and system Download PDF

Info

Publication number
CN104615396A
CN104615396A CN201510042146.7A CN201510042146A CN104615396A CN 104615396 A CN104615396 A CN 104615396A CN 201510042146 A CN201510042146 A CN 201510042146A CN 104615396 A CN104615396 A CN 104615396A
Authority
CN
China
Prior art keywords
resolution
android
current external
memory sector
resolution ratio
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201510042146.7A
Other languages
Chinese (zh)
Other versions
CN104615396B (en
Inventor
张辉
刘天作
张伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujian Centerm Information Co Ltd
Original Assignee
Fujian Centerm Information Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujian Centerm Information Co Ltd filed Critical Fujian Centerm Information Co Ltd
Priority to CN201510042146.7A priority Critical patent/CN104615396B/en
Publication of CN104615396A publication Critical patent/CN104615396A/en
Application granted granted Critical
Publication of CN104615396B publication Critical patent/CN104615396B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/1415Digital output to display device ; Cooperation and interconnection of the display device with other functional units with means for detecting differences between the image stored in the host and the images displayed on the displays

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Controls And Circuits For Display Device (AREA)
  • Control Of Indicators Other Than Cathode Ray Tubes (AREA)

Abstract

The invention provides an Android-based resolution ratio automatic adjustment method. The Android-based resolution ratio automatic adjustment method includes the steps of (10) an initial blank area of an Android file system is divided to form a storage sector; (20) data in the storage sector are read through a BootLoader procedure to be transmitted to an inner core; (30) the inner core valuates the historical resolution ratio to a CPU output the resolution ratio; (40) the optimum resolution ratio of a current external displayer is obtained through a display driver to be written into the storage sector; (50) whether the historical resolution ratio is coincident with the optimum resolution ratio of the current external displayer or not is judged, the step (60) is executed if the historical resolution ratio is coincident with the optimum resolution ratio of the current external displayer, or the step (20) is repeatedly executed; (60) the CPU output resolution ratio is valuated to display-size of an Android framework layer. The invention further provides an Android-based resolution ratio automatic adjustment system; and the Android-based resolution ratio automatic adjustment system can be automatically suitable for display scales of different external displayers.

Description

A kind of resolution automatic adjusting method based on Android and system
Technical field
The present invention relates to a kind of resolution automatic adjusting method based on Android and system.
Background technology
Android (Android) system is a kind of open source operating system based on Linux platform, be widely used in the intelligent portable such as mobile phone, flat board digital equipment at present, along with Android handle official business class application increasingly mature, Android device is also towards office terminal future development, by the output of single touch-screen, more various external display translation of marching toward.Owing to being export based on single touch-screen and design before android system, fixing export ratio has been secured in kernel, can not modify, mobile phone screen resolution as common has 480*800, the screen resolution of flat-type has 1920*1080, if by the displaying ratio of so fixing output once in the inconsistent VGA/HDMI display of the ratio that is linked into, just there will be overall picture and can be stretched or crimp, the access demand of diversified display on the market cannot be adapted to.
Summary of the invention
One of the technical problem to be solved in the present invention, be to provide a kind of resolution automatic adjusting method based on Android, achieve the consistance of application program intermediate-resolution and CPU output resolution ratio, the scaled image occurred when efficiently solving the display of different external connection display or compression problem.
One of the technical problem to be solved in the present invention is achieved in that a kind of resolution automatic adjusting method based on Android, comprises the steps:
Step 10, start margin Region dividing one memory sector in Android file system;
Step 20, the data read by BootLoader program in memory sector, and these data are passed to kernel as the start-up parameter of Kernel (operating system nucleus) program;
Step 30, startup Kernel program, resolves the parameter that BootLoader program is imported into, obtain history resolution, and initialization LCDC (LCD controller) drives, by history resolution assignment to CPU output resolution ratio;
Step 40, obtained the optimum resolution of current external-connection displayer by Display Driver, and by the optimum resolution of current external-connection displayer write memory sector;
Step 50, judge that whether history resolution is consistent with the optimum resolution of current external-connection displayer, if unanimously, then enter step 60, otherwise, return step 20;
Step 60, the main service of startup Android, in the main service of Android, start display service, obtain CPU output resolution ratio, CPU output resolution ratio assignment to the display-size of Android ccf layer.
Further, described memory sector size is 512 bytes.
Further, described step 40 specifically comprises:
Step 41, obtained EDID (extending display identification data) information of current external-connection displayer by Display Driver, from EDID information, obtain the optimum resolution of current external-connection displayer;
Step 42, in the optimum resolution of current external-connection displayer write memory sector, replace original data in memory sector.
The technical problem to be solved in the present invention two, be to provide a kind of resolution automatic adjustment system based on Android, achieve the consistance of application program intermediate-resolution and CPU output resolution ratio, the scaled image occurred when efficiently solving the display of different external connection display or compression problem.
Two of the technical problem to be solved in the present invention is achieved in that a kind of resolution automatic adjustment system based on Android, comprising:
Module is set up in memory sector: for start margin Region dividing one memory sector in Android file system;
Memory sector read module: for being read the data in memory sector by BootLoader program, and these data are passed to kernel as the start-up parameter of Kernel (operating system nucleus) program;
CPU output resolution ratio arranges module: for starting Kernel program, resolve the parameter that BootLoader program is imported into, obtain history resolution, and initialization LCDC (LCD controller) drives, by history resolution assignment to CPU output resolution ratio;
Current external-connection displayer acquisition of information and memory module: for being obtained the optimum resolution of current external-connection displayer by Display Driver, and by the optimum resolution of current external-connection displayer write memory sector;
Judge module: for judging that whether history resolution is consistent with the optimum resolution of current external-connection displayer, if unanimously, then enter display size determination module, otherwise, enter memory sector read module; And
Display size determination module: for starting the main service of Android, in the main service of Android, starts display service, obtains CPU output resolution ratio, CPU output resolution ratio assignment to the display-size of Android ccf layer.
Further, described memory sector size is 512 bytes.
Further, current external-connection displayer acquisition of information and memory module specifically comprise:
Current external-connection displayer information module: for being obtained EDID (extending display identification data) information of current external-connection displayer by Display Driver, obtain the optimum resolution of current external-connection displayer from EDID information; And
Memory sector data update module: in the optimum resolution of current external-connection displayer write memory sector, replace original data in memory sector.
Tool of the present invention has the following advantages: the present invention realizes the displaying ratio automatically detecting external-connection displayer, obtain the optimum resolution of external-connection displayer, and by amendment CPU output resolution ratio, guarantee that application program intermediate-resolution is consistent with CPU output resolution ratio, the present invention can support the normal output of all displaying ratios on the market, automatically the interface of the different resolution display corresponding proportion of different external connection display be can adapt to, the scaled image or compression problem that occur in display efficiently solved.
Accompanying drawing explanation
The present invention is further illustrated in conjunction with the embodiments with reference to the accompanying drawings.
Fig. 1 is the inventive method flowchart.
Fig. 2 is present system logical organization schematic diagram.
Embodiment
Refer to Fig. 1, a kind of resolution automatic adjusting method based on Android, comprises the steps:
Step 10, start margin Region dividing one memory sector in Android file system, described memory sector size is 512 bytes, for storing the optimum resolution of external-connection displayer;
Step 20, the data read by BootLoader program in memory sector, and these data are passed to kernel as the start-up parameter of Kernel program;
Step 30, startup Kernel program, resolve the parameter that BootLoader program is imported into, obtain history resolution, and initialization LCDC drives, by history resolution assignment to CPU output resolution ratio, drive initialization because Display Driver is later than LCDC, could the CPU physical resolution arranged be judged after all;
Step 40, obtained the optimum resolution of current external-connection displayer by Display Driver, and by the optimum resolution of current external-connection displayer write memory sector; This step specifically comprises:
Step 41, obtained the EDID information of current external-connection displayer by Display Driver, include resolution and optimum resolution information that external-connection displayer is applicable in EDID information, from EDID information, obtain the optimum resolution of current external-connection displayer;
Step 42, in the optimum resolution of current external-connection displayer write memory sector, replace original data in memory sector;
Step 50, judge that whether history resolution is consistent with the optimum resolution of current external-connection displayer, if unanimously, then enter step 60, otherwise, return step 20;
Step 60, start the main service of Android, in the main service of Android, start display service, obtain CPU output resolution ratio, CPU output resolution ratio assignment to the display-size of Android ccf layer, resolution consistent for the CPU output resolution ratio that display-size is arranged to Android application program gets, because display-size is the system property arranged by ActivityManager, act in Android display frame, managed by ActivityManager, have influence on the Activity of one of the large assembly of Android tetra-, also UI topology file is just had influence on, make the UI of application program also can demonstrate the interface of corresponding adaptation according to display specification.
Refer to Fig. 2, based on a resolution automatic adjustment system of Android, comprise that module is set up in memory sector, memory sector read module, CPU output resolution ratio arrange module, current external-connection displayer acquisition of information and memory module, judge module and display size determination module:
Module is set up in memory sector: for start margin Region dividing one memory sector in Android file system, described memory sector size is 512 bytes, for storing the optimum resolution of external-connection displayer;
Memory sector read module: for being read the data in memory sector by BootLoader program, and these data are passed to kernel as the start-up parameter of Kernel program;
CPU output resolution ratio arranges module: for starting Kernel program, resolve the parameter that BootLoader program is imported into, obtain history resolution, and initialization LCDC drives, by history resolution assignment to CPU output resolution ratio, drive initialization because Display Driver is later than LCDC, could the CPU physical resolution arranged be judged after all;
Current external-connection displayer acquisition of information and memory module: for being obtained the optimum resolution of current external-connection displayer by Display Driver, and by the optimum resolution of current external-connection displayer write memory sector; This module specifically comprises current external-connection displayer information module and memory sector data update module:
Current external-connection displayer information module: for being obtained the EDID information of current external-connection displayer by Display Driver, include the applicable resolution of external-connection displayer and optimum resolution information in EDID information, from EDID information, obtain the optimum resolution of current external-connection displayer;
Memory sector data update module: in the optimum resolution of current external-connection displayer write memory sector, replace original data in memory sector;
Judge module: for judging that whether history resolution is consistent with the optimum resolution of current external-connection displayer, if unanimously, then enter display size determination module, otherwise, enter memory sector read module;
Display size determination module: for starting the main service of Android, in the main service of Android, start display service, obtain CPU output resolution ratio, CPU output resolution ratio assignment to the display-size of Android ccf layer, resolution consistent for the CPU output resolution ratio that display-size is arranged to Android application program gets, because display-size is the system property arranged by ActivityManager, act in Android display frame, managed by ActivityManager, have influence on the Activity of one of the large assembly of Android tetra-, also UI topology file is just had influence on, make the UI of application program also can demonstrate the interface of corresponding adaptation according to display specification.
Although the foregoing describe the specific embodiment of the present invention; but be familiar with those skilled in the art to be to be understood that; specific embodiment described by us is illustrative; instead of for the restriction to scope of the present invention; those of ordinary skill in the art, in the modification of the equivalence done according to spirit of the present invention and change, should be encompassed in scope that claim of the present invention protects.

Claims (6)

1., based on a resolution automatic adjusting method of Android, it is characterized in that: comprise the steps:
Step 10, start margin Region dividing one memory sector in Android file system;
Step 20, the data read by BootLoader program in memory sector, and these data are passed to kernel as the start-up parameter of Kernel program;
Step 30, startup Kernel program, resolve the parameter that BootLoader program is imported into, obtain history resolution, and initialization LCDC drive, by history resolution assignment to CPU output resolution ratio;
Step 40, obtained the optimum resolution of current external-connection displayer by Display Driver, and by the optimum resolution of current external-connection displayer write memory sector;
Step 50, judge that whether history resolution is consistent with the optimum resolution of current external-connection displayer, if unanimously, then enter step 60, otherwise, return step 20;
Step 60, the main service of startup Android, in the main service of Android, start display service, obtain CPU output resolution ratio, CPU output resolution ratio assignment to the display-size of Android ccf layer.
2. a kind of resolution automatic adjusting method based on Android according to claim 1, is characterized in that: described memory sector size is 512 bytes.
3. a kind of resolution automatic adjusting method based on Android according to claim 1, is characterized in that: described step 40 specifically comprises:
Step 41, obtained the EDID information of current external-connection displayer by Display Driver, from EDID information, obtain the optimum resolution of current external-connection displayer;
Step 42, in the optimum resolution of current external-connection displayer write memory sector, replace original data in memory sector.
4., based on a resolution automatic adjustment system of Android, it is characterized in that: comprising:
Module is set up in memory sector: for start margin Region dividing one memory sector in Android file system;
Memory sector read module: for being read the data in memory sector by BootLoader program, and these data are passed to kernel as the start-up parameter of Kernel program;
CPU output resolution ratio arranges module: for starting Kernel program, resolves the parameter that BootLoader program is imported into, obtain history resolution, and initialization LCDC drives, by history resolution assignment to CPU output resolution ratio;
Current external-connection displayer acquisition of information and memory module: for being obtained the optimum resolution of current external-connection displayer by Display Driver, and by the optimum resolution of current external-connection displayer write memory sector;
Judge module: for judging that whether history resolution is consistent with the optimum resolution of current external-connection displayer, if unanimously, then enter display size determination module, otherwise, enter memory sector read module; And
Display size determination module: for starting the main service of Android, in the main service of Android, starts display service, obtains CPU output resolution ratio, CPU output resolution ratio assignment to the display-size of Android ccf layer.
5. a kind of resolution automatic adjustment system based on Android according to claim 4, is characterized in that: described memory sector size is 512 bytes.
6. a kind of resolution automatic adjustment system based on Android according to claim 4, is characterized in that: current external-connection displayer acquisition of information and memory module specifically comprise:
Current external-connection displayer information module: for being obtained the EDID information of current external-connection displayer by Display Driver, obtain the optimum resolution of current external-connection displayer from EDID information; And
Memory sector data update module: in the optimum resolution of current external-connection displayer write memory sector, replace original data in memory sector.
CN201510042146.7A 2015-01-28 2015-01-28 A kind of resolution ratio automatic adjusting method and system based on Android Active CN104615396B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510042146.7A CN104615396B (en) 2015-01-28 2015-01-28 A kind of resolution ratio automatic adjusting method and system based on Android

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510042146.7A CN104615396B (en) 2015-01-28 2015-01-28 A kind of resolution ratio automatic adjusting method and system based on Android

Publications (2)

Publication Number Publication Date
CN104615396A true CN104615396A (en) 2015-05-13
CN104615396B CN104615396B (en) 2018-05-04

Family

ID=53149862

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510042146.7A Active CN104615396B (en) 2015-01-28 2015-01-28 A kind of resolution ratio automatic adjusting method and system based on Android

Country Status (1)

Country Link
CN (1) CN104615396B (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105208246A (en) * 2015-09-30 2015-12-30 重庆长安汽车股份有限公司 Display screen parameter adaptive type display screen assembly and control method
CN106095362A (en) * 2016-06-02 2016-11-09 北京金山安全软件有限公司 Method and device for setting resolution and electronic equipment
CN106126141A (en) * 2016-06-17 2016-11-16 山东大学 A kind of system and method automatically adjusting resolution based on Android terminal according to distinct interface
CN106155700A (en) * 2016-07-29 2016-11-23 努比亚技术有限公司 Resolution adjustment device and method
CN106970768A (en) * 2016-01-13 2017-07-21 福州瑞芯微电子股份有限公司 Method and system of the support multiresolution without Zoom display based on android system
CN108345438A (en) * 2018-02-06 2018-07-31 深圳市恒晨电器有限公司 Cell phone platform is applied to the physics transverse screen display method of vehicular platform
CN112650458A (en) * 2019-10-10 2021-04-13 深圳Tcl数字技术有限公司 Display screen adjusting method, storage medium and terminal equipment
CN113282256A (en) * 2021-04-30 2021-08-20 深圳市智微智能科技股份有限公司 Method, device, equipment and storage medium for managing Android system display
CN114995944A (en) * 2022-08-03 2022-09-02 武汉凌久微电子有限公司 Resolution self-adaptive zooming display method and display card driving module
CN116204149A (en) * 2023-05-06 2023-06-02 南京极域信息科技有限公司 Technology for improving display performance of Android operating system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101661729A (en) * 2008-08-29 2010-03-03 佛山市顺德区顺达电脑厂有限公司 Method for adjusting resolution of display
CN102455886A (en) * 2011-07-05 2012-05-16 中标软件有限公司 Method for dynamically identifying and configuring external display
CN103390397A (en) * 2013-07-24 2013-11-13 福州瑞芯微电子有限公司 Double screen display device and method based on Android system
CN103546689A (en) * 2013-10-11 2014-01-29 Tcl集团股份有限公司 Resolution ratio acquiring method and device of external camera of android system
CN103957454A (en) * 2014-05-23 2014-07-30 珠海迈科电子科技有限公司 Multi-resolution output method and device for smart television

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101661729A (en) * 2008-08-29 2010-03-03 佛山市顺德区顺达电脑厂有限公司 Method for adjusting resolution of display
CN102455886A (en) * 2011-07-05 2012-05-16 中标软件有限公司 Method for dynamically identifying and configuring external display
CN103390397A (en) * 2013-07-24 2013-11-13 福州瑞芯微电子有限公司 Double screen display device and method based on Android system
CN103546689A (en) * 2013-10-11 2014-01-29 Tcl集团股份有限公司 Resolution ratio acquiring method and device of external camera of android system
CN103957454A (en) * 2014-05-23 2014-07-30 珠海迈科电子科技有限公司 Multi-resolution output method and device for smart television

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105208246B (en) * 2015-09-30 2018-06-08 重庆长安汽车股份有限公司 The display screen assembly and control method of display screen parameter adaptive
CN105208246A (en) * 2015-09-30 2015-12-30 重庆长安汽车股份有限公司 Display screen parameter adaptive type display screen assembly and control method
CN106970768A (en) * 2016-01-13 2017-07-21 福州瑞芯微电子股份有限公司 Method and system of the support multiresolution without Zoom display based on android system
CN106095362A (en) * 2016-06-02 2016-11-09 北京金山安全软件有限公司 Method and device for setting resolution and electronic equipment
CN106126141A (en) * 2016-06-17 2016-11-16 山东大学 A kind of system and method automatically adjusting resolution based on Android terminal according to distinct interface
CN106126141B (en) * 2016-06-17 2019-06-21 山东大学 It is a kind of based on Android terminal according to the system and method for distinct interface adjust automatically resolution ratio
CN106155700B (en) * 2016-07-29 2019-06-25 努比亚技术有限公司 Resolution adjustment device and method
CN106155700A (en) * 2016-07-29 2016-11-23 努比亚技术有限公司 Resolution adjustment device and method
CN108345438A (en) * 2018-02-06 2018-07-31 深圳市恒晨电器有限公司 Cell phone platform is applied to the physics transverse screen display method of vehicular platform
CN112650458A (en) * 2019-10-10 2021-04-13 深圳Tcl数字技术有限公司 Display screen adjusting method, storage medium and terminal equipment
CN112650458B (en) * 2019-10-10 2022-07-08 深圳Tcl数字技术有限公司 Display screen adjusting method, storage medium and terminal equipment
CN113282256A (en) * 2021-04-30 2021-08-20 深圳市智微智能科技股份有限公司 Method, device, equipment and storage medium for managing Android system display
CN114995944A (en) * 2022-08-03 2022-09-02 武汉凌久微电子有限公司 Resolution self-adaptive zooming display method and display card driving module
CN114995944B (en) * 2022-08-03 2022-11-15 武汉凌久微电子有限公司 Resolution self-adaptive zooming display method and display card driving module
CN116204149A (en) * 2023-05-06 2023-06-02 南京极域信息科技有限公司 Technology for improving display performance of Android operating system

Also Published As

Publication number Publication date
CN104615396B (en) 2018-05-04

Similar Documents

Publication Publication Date Title
CN104615396A (en) Android-based resolution ratio automatic adjustment method and system
EP3171242B1 (en) Electronic device and method for configuring display thereof
US10181305B2 (en) Method of controlling display and electronic device for providing the same
CN108702480B (en) Electronic device and method for driving display thereof
US10275012B2 (en) Operating method for display corresponding to luminance, driving circuit, and electronic device supporting the same
US20220058030A1 (en) Intelligent device and method for controlling boot screen of the intelligent device
US10347166B2 (en) Electronic device and operating method thereof
US8982158B2 (en) Computer screen image displaying method, computer having a vertical display device, and computer program product
CN103957454A (en) Multi-resolution output method and device for smart television
US20160266838A1 (en) Method and electronic device for initializing memory and updating firmware
US20140078160A1 (en) Display-controlling method and display device
US10536739B2 (en) Display apparatus and control method thereof
CN111399922B (en) Dual-system display device and system
CN102664990B (en) Installation and display method of dynamic wallpaper of Android mobile phone
CN111752504B (en) Multi-screen display method and system for electronic equipment, electronic equipment and computer readable medium
CN103440334A (en) Driver matching method and device of mobile terminal
US20120320271A1 (en) Electronic device and method for fast starting widgets thereof
US20170116146A1 (en) Control method and control device for a mobile terminal
CN109525839A (en) HDMI compatibility test method, device, mobile terminal and readable storage medium storing program for executing
US20140118382A1 (en) Method for programming extended display identification data and display device
CN105068835B (en) Mobile terminal and debugging information display method thereof
CN111857483B (en) Electronic device and control method thereof
CN104079855A (en) Digital video device and method for reading EDID of HDMI
KR20210125951A (en) Electronic apparatus and control method thereof
US9001133B2 (en) Edid shadowing techniques for fast display startup

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant