亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? power_management.html

?? Android Porting Guide
?? HTML
字號:
<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"/><title>Android - Porting Guide</title><script src="http://www.google.com/uds/api?file=uds.js&amp;v=1.0&amp;key=internal-codesite" type="text/javascript"></script><script src="http://code.google.com/js/jquery.js" type="text/javascript"></script><script type="text/javascript">var _tocPath_ = 'http://code.google.com/android/_toc.ezt';</script><script src="http://code.google.com/js/codesite.pack.01312008.js" type="text/javascript"></script><script language="JavaScript">function resizeHeight() {	if(document.getElementById && !(document.all)) {		height= document.getElementById('doxygen').contentDocument.body.scrollHeight + 20;		document.getElementById('doxygen').style.height = height;	}	else if(document.all) {		height= document.frames('doxygen').document.body.scrollHeight + 20;		document.all.doxygen.style.height = height;	}}</script><link href="http://code.google.com/css/codesite.pack.01312008.css" type="text/css" rel="stylesheet"></link><!--[if IE]><link rel="stylesheet" type="text/css" href="/css/iehacks.css" /><![endif]--><script src="http://code.google.com/android/assets/search_autocomplete.js"></script><link rel="stylesheet" type="text/css" href="http://code.google.com/css/semantic_headers.css" /><link rel="stylesheet" type="text/css" href="http://code.google.com/android/assets/style.css" /><script>    jQuery(document).ready(function() {            jQuery("pre").addClass("prettyprint");        });    </script><style type="text/css"><!--h1,h2,h3 {	color: #000000;}--></style></head><body class="gc-documentation"><div id="gc-container"><a name="top"></a><div id="skipto"> </div><div id="langpref">  <!--<a class="dropdown" href="/">English</a> <span>|</span> <a href="/more/">Site Directory</a> --></div><div id="gc-header">  <div id="logo"><a href="http://code.google.com/android/index.html"><img src="http://code.google.com/android/images/logo_android.gif" alt="Android"/></a></div>  <div id="search" style="inline">    <div id="searchForm" class="searchForm" style="height: 44px;">      <!--previously form was here-->    </div>    <!-- end searchForm -->    <noscript>    <style type="text/css">      .searchForm {        display : none !important;      }      .searchForm2 {        display : inline !important;      }      </style>    </noscript>    <div id="searchForm2" class="searchForm2" style="display:none">      <form id="searchbox_001456098540849067467:6whlsytkdqg" action="http://www.google.com/cse">        <input type="hidden" name="cx" value="001456098540849067467:6whlsytkdqg" />        <input type="hidden" name="cof" value="FORID:0" />        <input type="text" name="q" maxlength="2048" size="41" autocomplete="off" title="Google Code Search"/>        <input type="submit" name="sa" value="Search" title="Search"/>        <br/>        <div class="greytext">e.g. "ajax apis" or "open source"</div>      </form>    </div>    <!-- end searchForm2 -->  </div>  <!-- end search --></div><!-- end gc-header --><div id="searchControl" class="search-control"></div><!--[if IE]><iframe id="backiFrame" name="backiFrame" src='/dummy.html' style="display:none"></iframe><![endif]--><div id="codesiteContent"><a name="gc-topnav-anchor"></a><div id="gc-topnav">  <h1>Android Platform Development Kit</h1>  <ul class="gc-topnav-tabs">    <li id="sdk_link"> <a href="http://code.google.com/android/index.html" title="Android Software Development Kit">SDK</a> </li>    <li id="docs_link"> <a href="index.html" title="Official Android documentation">Docs</a> </li>    <li id="faq_link"> <a href="http://code.google.com/android/kb/index.html" title="Answers to frequently asked questions about Android">FAQ</a> </li>    <li> <a href="http://android-developers.blogspot.com/" title="Official Android blog">Blog</a> </li>    <li> <a href="http://code.google.com/android/groups.html" title="Android developer forum">Group</a> </li>    <li> <a href="http://code.google.com/android/terms.html" title="Android terms of service">Terms</a> </li>    <li> <a href="mailto:android-pdk-feedback@google.com?subject=PDK%20Feedback&body=(filed%20from:%20power_management.html%20v0.6%20-%2025%20November%202008)%0D%0A%0D%0ASUMMARY:%0D%0A%0D%0A%0D%0A%0D%0ASTEPS%20TO%20REPRODUCE:%0D%0A%0D%0A%0D%0A%0D%0AADDITIONAL%20NOTES:">Report a Problem</a> </li>  </ul></div><!-- end gc-topnav --><div class="g-section g-tpl-180"><a name="gc-toc"></a><div class="g-unit g-first" id="gc-toc">  <ul>    <li>      <h1><a href="index.html">Documentation</a></h1>      <ul>        <li> <strong>Introduction</strong>          <ul>            <li><a href="system_requirements.html">Device Requirements</a></li>                      </ul>        </li>        <li> <strong>Dev Environment Setup</strong>          <ul>            <li><a href="build_system.html">Build System</a></li>          </ul>        </li>        <li> <strong>Basic Bring up</strong>          <ul>            <li><a href="build_new_device.html">Building New Device</a></li>            <li><a href="bring_up.html">Bring up</a></li>            <li><a href="keymaps_keyboard_input.html">Keymaps and Keyboard</a></li>            <li><a href="display_drivers.html">Display Drivers</a></li>          </ul>        </li>        <li> <strong>Multimedia</strong>          <ul>            <li><a href="audio_sub_system.html">Audio</a></li>            <li><a href="camera.html">Camera</a></li>			          </ul>        </li>        <li> <strong>Power Management</strong>          <ul>            <li><a href="power_management.html">Power Management</a></li>          </ul>        </li>        <li> <strong>Networking</strong>          <ul>            <li><a href="wifi.html">Wi-Fi</a></li>            <li><a href="gps.html">GPS</a></li>            <li><a href="bluetooth.html">Bluetooth</a></li>          </ul>        </li>        <li> <strong>Telephony</strong>          <ul>            <li><a href="telephony.html">Radio Interface Layer</a></li>          </ul>        </li>        <li> <strong>Testing</strong>          <ul>            <li><a href="instrumentation_testing.html">Instrumentation Testing</a></li>          </ul>        </li>      </ul>    </li>  </ul></div><a name="gc-pagecontent"></a><div class="g-unit" id="gc-pagecontent"><div id="jd-content"><div class="jd-descr"><a name="androidPowerTitle"></a><h1>Power Management</h1><a name="toc"/><div style="padding:10px"><a href="#androidPowerIntro">Introduction</a><br/><a href="#androidPowerWakeLocks">Wake Locks</a><br/><div style="padding-left:40px"><a href="#androidPowerWakeLocksDefinitions">Types of Wake Locks</a><br/><a href="#androidPowerWakeLockExample">Exploring a Wake Lock Example</a><br/></div><a href="#androidPowerPowerManagerClass">PowerManager class</a><br/><a href="#androidPowerKernelRegistration">Registering Drivers with the PM Driver</a><br/></div></font></div><a name="androidPowerIntro"></a><h2>Introduction</h2><p>Android supports its own Power Management (on top of the standard Linux Power Management) designed with the premise that the CPU shouldn't consume power if no applications or services require power. For more information regarding standard Linux power management, please see <a href="http://git.kernel.org/?p=linux/kernel/git/stable/linux-2.6.24.y.git;a=blob;f=Documentation/pm.txt">Linux Power Management Support</a> at <a href="http://kernel.org">http://kernel.org</a>.</p><p>Android requires that applications and services request CPU resources with &quot;wake locks&quot; through the Android application framework and native Linux libraries. If there are no active wake locks, Android will shut down the CPU. </p><p>The image below illustrates the Android power management architecture. </p><p><img src='androidPMArchitecture.gif'></p>Solid elements represent Android blocks and dashed elements represent partner-specific blocks.<a name="androidPowerWakeLocks"></a><h2>Wake Locks</h2><p>Wake locks are used by applications and services to request CPU resources.</p><a name="androidPowerWakeLocksDefinitions"></a><h3>Types of Wake Locks</h3><table border=1 cellpadding=2 cellspacing=0>    <tbody><tr>        <th scope="col">Wake Lock </th>        <th scope="col">Description</th>    </tr>    <tr>      <td>ACQUIRE_CAUSES_WAKEUP<br/></td>        <td>Normally wake locks don't actually wake the device, they just cause it to remain on once it's already on. Think of the video player app as the normal behavior. Notifications that pop up and want the device to be on are the exception; use this flag to be like them.</td>    </tr>    <tr>      <td>FULL_WAKE_LOCK</td>      <td>Wake lock that ensures that the screen and keyboard are on at full brightness. </td>    </tr>    <tr>      <td>ON_AFTER_RELEASE</td>      <td>When this wake lock is released, poke the user activity timer so the screen stays on for a little longer.</td>    </tr>    <tr>      <td>PARTIAL_WAKE_LOCK</td>      <td>Wake lock that ensures that the CPU is running. The screen might not be on.</td>    </tr>    <tr>      <td>SCREEN_BRIGHT_WAKE_LOCK</td>      <td>Wake lock that ensures that the screen is on at full brightness; the keyboard backlight will be allowed to go off.</td>    </tr>    <tr>      <td>SCREEN_DIM_WAKE_LOCK</td>      <td>Wake lock that ensures that the screen is on, but the keyboard backlight will be allowed to go off, and the screen backlight will be allowed to go dim.</td>    </tr></table><a name="androidPowerWakeLockExample"></a><h3>Exploring a Wake Lock Example</h3><p>All power management calls follow the same basic format:</p><p><ol><li>Acquire handle to the <code>PowerManager</code> service.</li><li>Create a wake lock and specify the power management flags for screen, timeout, etc.</li><li>Acquire wake lock.</li><li>Perform operation (play MP3, open HTML page, etc.).</li><li>Release wake lock.</li></ol></p><p>The snippet below illustrates this process.</p><pre class="prettify">PowerManager pm = (PowerManager)mContext.getSystemService(                                          Context.POWER_SERVICE);PowerManager.WakeLock wl = pm.newWakeLock(                                      PowerManager.SCREEN_DIM_WAKE_LOCK                                      | PowerManager.ON_AFTER_RELEASE,                                      TAG);wl.acquire(); // ...wl.release();</pre><a name="androidPowerPowerManagerClass"></a><h2>PowerManager class</h2><p>The Android Framework exposes power management to services and applications through the <code>PowerManager</code> class.</p><p>User space native libraries (any hardware function in <code>//device/lib/hardware/</code> meant to serve as supporting libraries for Android runtime) should never call into Android Power Management directly (see the image above). Bypassing the power management policy in the Android runtime will destabilize the system.</p><p>All calls into Power Management should go through the Android runtime PowerManager APIs.</p><p> Please visit <a href="http://code.google.com/android/reference/android/os/PowerManager.html">http://code.google.com/android/reference/android/os/PowerManager.html</a> for a description of the API and examples.</p><a name="androidPowerKernelRegistration"></a><h2>Registering Drivers with the PM Driver</h2><p>You can register Kernel-level drivers with the Android Power Manager driver so that they're notified immediately before power down or after power up. For example, you might set a display driver to completely power down when a request comes in to power down from the user space (see the Android MSM MDDI display driver for a sample implementation).</p><p>To register drivers with the Android PM driver, implement call-back handlers and register them with the Android PM, as illustrated in the snippet below:</p><pre class="prettify">android_register_early_suspend(android_early_suspend_t *handler)android_register_early_resume(android_early_resume_t *handler)</pre><p>It is critical in a drive to return immediately and not wait for anything to happen in the call back.</p><p><span class="lh2"><a name="androidFooter"></a></span>        </div>      </div>      <!-- end gc-pagecontent -->    </div>    <!-- end gooey wrapper -->  </div>  <!-- end codesearchresults -->  <div id="gc-footer" dir="ltr">    <div class="text"> &copy;2008 Google<!-- - <a href="/">Code Home</a> - <a href="http://www.google.com/accounts/TOS">Site Terms of Service</a> - <a href="http://www.google.com/privacy.html">Privacy Policy</a> - <a href="/more">Site Directory</a> --></div>  </div>  <!-- end gc-footer --></div><!-- end gc-containter --><script src="http://www.google-analytics.com/ga.js" type="text/javascript"></script><script type="text/javascript">  try {    var pageTracker = _gat._getTracker("UA-18071-1");    pageTracker._setAllowAnchor(true);    pageTracker._initData();    pageTracker._trackPageview();   } catch(e) {}</script><div id="jd-build-id"> v0.6 - 25 November 2008</div></div></div></div></body></html>

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲精品乱码久久久久久久久| 最新日韩在线视频| 亚洲黄色免费电影| 色婷婷久久久久swag精品 | 欧美肥妇毛茸茸| 天天av天天翘天天综合网| 欧美日韩国产影片| 欧美在线一区二区| 色婷婷国产精品综合在线观看| 91视频免费播放| 91日韩精品一区| 国产精品一区久久久久| 青青国产91久久久久久| 亚洲精品成人少妇| 蜜桃久久精品一区二区| 国产高清精品网站| av综合在线播放| 91小视频免费观看| 欧美三级电影在线观看| 在线不卡一区二区| 欧美www视频| 亚洲欧洲日产国码二区| 日本亚洲免费观看| 99久久99久久免费精品蜜臀| 欧美一区欧美二区| 中文字幕免费观看一区| 午夜久久福利影院| 国产91露脸合集magnet| 精品国产91亚洲一区二区三区婷婷| 国产三级一区二区三区| 狠狠网亚洲精品| 欧美电影一区二区三区| 国产在线精品一区二区三区不卡| 欧美日韩五月天| 亚洲人一二三区| 欧美一区二区黄| 99在线精品免费| 久久久青草青青国产亚洲免观| 中文字幕精品—区二区四季| 中文字幕国产一区二区| 久久精品国产亚洲高清剧情介绍| 欧美三级日韩三级| 日韩vs国产vs欧美| 亚洲一本大道在线| 欧美不卡在线视频| 成人av电影在线| 91在线你懂得| 亚洲伦在线观看| 日韩女优av电影在线观看| jiyouzz国产精品久久| 日本成人在线网站| 7777精品伊人久久久大香线蕉超级流畅 | 欧美另类久久久品| 午夜电影久久久| 欧美日韩一区久久| 亚洲精品视频免费观看| 波多野结衣视频一区| 亚洲欧美成aⅴ人在线观看 | 欧美视频一区二区| 中文字幕一区三区| 色婷婷综合久久久久中文| 亚洲国产精品成人久久综合一区| 激情综合一区二区三区| 国产日韩欧美一区二区三区乱码| 成人午夜电影网站| 亚洲嫩草精品久久| 91精品久久久久久蜜臀| 99视频精品免费视频| 亚洲一区二区四区蜜桃| 91精品久久久久久久久99蜜臂| 蜜桃av一区二区三区电影| 欧美电影一区二区三区| 色天使色偷偷av一区二区| 亚洲综合免费观看高清完整版| 亚洲精品一区二区三区福利| 欧美色涩在线第一页| 欧美性大战久久久久久久| 欧美色爱综合网| 日韩精品乱码av一区二区| 欧美精品丝袜中出| 欧美日韩黄色影视| 国产欧美日本一区视频| 精品毛片乱码1区2区3区| av高清久久久| caoporm超碰国产精品| 成人丝袜视频网| 懂色av一区二区三区免费看| 高清不卡一区二区| 国产一区不卡在线| 国产成人av在线影院| 国产成人在线视频播放| 国产福利一区二区三区在线视频| 美美哒免费高清在线观看视频一区二区| 久久亚洲欧美国产精品乐播| 91精品国产黑色紧身裤美女| 制服丝袜在线91| 欧美日韩亚洲另类| 欧美日韩激情在线| 久久久亚洲精品一区二区三区| 亚洲成人免费影院| 中文无字幕一区二区三区| 精品国产污污免费网站入口 | 人人超碰91尤物精品国产| 欧美在线你懂的| 亚洲免费视频成人| 色噜噜狠狠成人网p站| 亚洲视频一区在线| www.日韩精品| 亚洲国产经典视频| 成人福利视频网站| 韩国毛片一区二区三区| 777午夜精品免费视频| 免费观看30秒视频久久| 91美女片黄在线| 亚洲一区av在线| 欧美视频在线一区二区三区 | 欧美在线看片a免费观看| 亚洲视频中文字幕| 欧洲一区在线观看| 午夜国产精品一区| 6080国产精品一区二区| 美美哒免费高清在线观看视频一区二区| 欧美丰满高潮xxxx喷水动漫| 日韩电影免费在线观看网站| 91精品国产综合久久精品性色| 久久精品久久精品| 国产精品久久久久aaaa| 欧美猛男超大videosgay| 精品在线亚洲视频| 一区二区三国产精华液| 日韩久久久精品| 欧美在线视频日韩| 国产精品亚洲视频| 日韩不卡手机在线v区| 国产精品成人网| 欧美日韩综合色| 精品在线你懂的| 亚洲va天堂va国产va久| 国产三区在线成人av| 欧美一级日韩免费不卡| 色先锋资源久久综合| 成人av资源站| 懂色中文一区二区在线播放| 日本成人中文字幕在线视频| 亚洲成人一区二区在线观看| 亚洲乱码精品一二三四区日韩在线| www国产亚洲精品久久麻豆| 欧美一区二区高清| 欧美精品在线观看播放| 成人av电影免费在线播放| 日韩久久久久久| 国产毛片精品视频| 国产精品乱码人人做人人爱 | 在线观看国产精品网站| 91小视频在线观看| 久久精品视频免费| 日本在线不卡视频| 欧美年轻男男videosbes| 亚洲欧洲中文日韩久久av乱码| 国产suv精品一区二区883| 日韩免费福利电影在线观看| 石原莉奈在线亚洲二区| 欧美日产在线观看| 亚洲国产精品久久久久婷婷884| 91一区一区三区| 日韩美女视频一区二区| 91美女精品福利| 亚洲精品国产视频| 一本到不卡免费一区二区| 亚洲欧美激情在线| 91麻豆.com| 亚洲影视在线播放| 欧美性淫爽ww久久久久无| 亚洲第一福利一区| 欧美另类一区二区三区| 日本成人在线网站| 精品国产精品一区二区夜夜嗨| 奇米色777欧美一区二区| 欧美一二三四在线| 国产一区视频在线看| 国产日韩欧美高清在线| 国产成人在线电影| 中文字幕在线观看不卡| 色一情一伦一子一伦一区| 亚洲妇熟xx妇色黄| 91精品国产综合久久福利软件 | 国产精品久久久久久久久图文区| 成人综合婷婷国产精品久久| 最新日韩在线视频| 欧美日韩日日夜夜| 激情综合网天天干| 国产精品电影一区二区| 91国偷自产一区二区三区成为亚洲经典| 亚洲国产一二三| 精品福利一二区| www.日韩大片| 午夜国产精品一区| 久久先锋影音av鲁色资源网| 91在线你懂得| 免费观看91视频大全|