青岛网站推广的价格,做简单网站怎么做,wordpress首页左图右文,浏览器怎么连接网站的客户需要hdmi自适应屏幕分辨率#xff0c;没发现有相关的指令#xff0c;我发现设置中有个hdmi的Auto选项#xff0c;于是就试试选中这个选项#xff0c;试下了可以自适应#xff0c;于是就找到相关代码#xff0c;在开机完成后执行这个代码#xff0c;基本满足需求没发现有相关的指令我发现设置中有个hdmi的Auto选项于是就试试选中这个选项试下了可以自适应于是就找到相关代码在开机完成后执行这个代码基本满足需求修改很简单查这个修改方法费了很大劲下一篇我把这个源码设置hdmi分辨率过程追踪下修改如下
Index: packages/apps/Settings/AndroidManifest.xml--- packages/apps/Settings/AndroidManifest.xml (revision 950)packages/apps/Settings/AndroidManifest.xml (working copy)-3304,6 3304,7 intent-filteraction android:nameandroid.app.action.STATSD_STARTED/action android:nameandroid.intent.action.BOOT_COMPLETED/action android:nameandroid.intent.action.HDMI_PLUGGED//intent-filter/receiverIndex: packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/AnomalyConfigReceiver.java--- packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/AnomalyConfigReceiver.java (revision 950)packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/AnomalyConfigReceiver.java (working copy)-21,7 21,7 import android.content.Context;import android.content.Intent;import android.util.Log;
-
import com.android.settings.display.DrmDisplaySetting;/*** Receive broadcast when {link StatsManager} restart, then check the anomaly config and* prepare info for {link StatsManager}-31,10 31,13 Overridepublic void onReceive(Context context, Intent intent) {if (android.intent.action.HDMI_PLUGGED.equals(intent.getAction())) {Log.i(fan,AnomalyConfigReceiver receive HDMI_PLUGGED);DrmDisplaySetting.setMode(0, Auto);}if (StatsManager.ACTION_STATSD_STARTED.equals(intent.getAction())|| Intent.ACTION_BOOT_COMPLETED.equals(intent.getAction())) {final StatsManager statsManager context.getSystemService(StatsManager.class);
-// Check whether to update the configAnomalyConfigJobService.scheduleConfigUpdate(context); -47,6 50,7 if (Intent.ACTION_BOOT_COMPLETED.equals(intent.getAction())) {AnomalyCleanupJobService.scheduleCleanUp(context);}}}}