当前位置: 首页 > news >正文

做网站用win2008系统优化搜索曝光次数的方法

做网站用win2008系统,优化搜索曝光次数的方法,wordpress get_posts,wordpress tag url一、碰到的问题 1、第一次开机无铃声 2、开机时铃声和动画不同步,开头的铃声会丢失 3、开机时铃声/动画不能完全播放完 二、解决 以下为添加的patch /开机铃声不同步,语音第一段无声 diff --git a/media/libmediaplayerservice/MediaPlayerService…

一、碰到的问题

1、第一次开机无铃声

2、开机时铃声和动画不同步,开头的铃声会丢失

3、开机时铃声/动画不能完全播放完

二、解决

以下为添加的patch

/开机铃声不同步,语音第一段无声
diff --git a/media/libmediaplayerservice/MediaPlayerService.cpp b/media/libmediaplayerservice/MediaPlayerService.cpp
index b816042b75..2605df5afb 100644
--- a/media/libmediaplayerservice/MediaPlayerService.cpp
+++ b/media/libmediaplayerservice/MediaPlayerService.cpp
@@ -2811,7 +2811,7 @@ MediaPlayerService::BatteryTracker::BatteryTracker() {// reset battery stats// if the mediaserver has crashed, battery stats could be left// in bad state, reset the state upon service start.
-    BatteryNotifier::getInstance().noteResetVideo();
+//    BatteryNotifier::getInstance().noteResetVideo();}void MediaPlayerService::BatteryTracker::addBatteryData(uint32_t params)
diff --git a/services/audioflinger/AudioFlinger.cpp b/services/audioflinger/AudioFlinger.cpp
index 764fdc33c0..66729b88f6 100644
--- a/services/audioflinger/AudioFlinger.cpp
+++ b/services/audioflinger/AudioFlinger.cpp
@@ -186,7 +186,8 @@ AudioFlinger::AudioFlinger()mGlobalEffectEnableTime(0),mPatchPanel(this),mDeviceEffectManager(this),
-      mSystemReady(false)
+//      mSystemReady(false)
+      mSystemReady(true){// unsigned instead of audio_unique_id_use_t, because ++ operator is unavailable for enumfor (unsigned use = AUDIO_UNIQUE_ID_USE_UNSPECIFIED; use < AUDIO_UNIQUE_ID_USE_MAX; use++) {
diff --git a/services/audioflinger/Threads.cpp b/services/audioflinger/Threads.cpp
index 10404285a9..6ab56e0fd5 100755
--- a/services/audioflinger/Threads.cpp
+++ b/services/audioflinger/Threads.cpp
@@ -580,11 +580,11 @@ status_t AudioFlinger::ThreadBase::sendConfigEvent_l(sp<ConfigEvent>& event){status_t status = NO_ERROR;-    if (event->mRequiresSystemReady && !mSystemReady) {
+/*    if (event->mRequiresSystemReady && !mSystemReady) {event->mWaitStatus = false;mPendingConfigEvents.add(event);return status;
-    }
+    }	*/mConfigEvents.add(event);ALOGV("sendConfigEvent_l() num events %zu event %d", mConfigEvents.size(), event->mType);mWaitWorkCV.signal();
@@ -1021,7 +1021,8 @@ void AudioFlinger::ThreadBase::releaseWakeLock_l()}void AudioFlinger::ThreadBase::getPowerManager_l() {
-    if (mSystemReady && mPowerManager == 0) {
+//    if (mSystemReady && mPowerManager == 0) {
+    if (mSystemReady == 0) {// use checkService() to avoid blocking if power service is not up yetsp<IBinder> binder =defaultServiceManager()->checkService(String16("power"));
@@ -3090,6 +3091,9 @@ ssize_t AudioFlinger::PlaybackThread::threadLoop_write()ssize_t bytesWritten;const size_t offset = mCurrentWriteLength - mBytesRemaining;+    if (mPowerManager == 0)
+	    acquireWakeLock();
+// If an NBAIO sink is present, use it to write the normal mixer's submixif (mNormalSink != 0) {
//初次开机无铃声
@@ -5241,6 +5245,15 @@ AudioFlinger::PlaybackThread::mixer_state AudioFlinger::MixerThread::prepareTractrack->mHasVolumeController = false;}+	    /*wmc modify start */
+            char mvalue[PROPERTY_VALUE_MAX] = { 1 };
+            property_get("service.bootanim.exit", mvalue, "");
+            if (strcmp(mvalue,"0") == 0){
+                vlf = 0.25f;
+                vrf = 0.25f;
+            }
+            /*wmc modify end */
+// XXX: these things DON'T need to be done each timemAudioMixer->setBufferProvider(trackId, track);mAudioMixer->enable(trackId);
//加了开机铃声,开机动画不能播放完
diff --git a/services/core/java/com/android/server/wm/WindowManagerService.java b/services/core/java/com/android/server/wm/WindowManagerService.java
index 6ee60273264c..1aac6251061d 100644
--- a/services/core/java/com/android/server/wm/WindowManagerService.java
+++ b/services/core/java/com/android/server/wm/WindowManagerService.java
@@ -3455,8 +3455,10 @@ public class WindowManagerService extends IWindowManager.Stub// stop boot animation// formerly we would just kill the process, but we now ask it to exit so it// can choose where to stop the animation.
-                SystemProperties.set("service.bootanim.exit", "1");
-                mBootAnimationStopped = true;
+//                SystemProperties.set("service.bootanim.exit", "1");
+//                mBootAnimationStopped = true;
+                SystemProperties.set("service.bootanim.exit", "0");
+                mBootAnimationStopped = false;}if (!mForceDisplayEnabled && !checkBootAnimationCompleteLocked()) {

还有,我将bootanimation.zip文件的desc.txt进行了修改,这里添加了延时100ms,如下:

1280 800 20        //宽          高          帧数
p 1 0 part0        //标志性符  循环次数(0表示无限循环)  阶段切换间隔时间  对应目录名
p 0 100 part1

注意,这里的铃声/语音的格式需要为wav,这个音频文件需要和part0的文件一起打包,或者单独建一个part文件,和所需要的图片打包成bootanimation.zip,格式为存储。


文章转载自:
http://predormition.gthc.cn
http://geosychronous.gthc.cn
http://foamily.gthc.cn
http://semiopaque.gthc.cn
http://pyrophosphate.gthc.cn
http://citronellal.gthc.cn
http://pushful.gthc.cn
http://tamarau.gthc.cn
http://canalize.gthc.cn
http://drawbar.gthc.cn
http://shoes.gthc.cn
http://privatdocent.gthc.cn
http://fixature.gthc.cn
http://reformist.gthc.cn
http://inbent.gthc.cn
http://tracheoesophageal.gthc.cn
http://slipsheet.gthc.cn
http://cryoresistive.gthc.cn
http://incendiary.gthc.cn
http://unpopular.gthc.cn
http://allure.gthc.cn
http://indistinguishable.gthc.cn
http://intemperate.gthc.cn
http://rorty.gthc.cn
http://immusical.gthc.cn
http://evaginate.gthc.cn
http://outproduce.gthc.cn
http://motte.gthc.cn
http://metacontrast.gthc.cn
http://freezer.gthc.cn
http://mikron.gthc.cn
http://unspilt.gthc.cn
http://calculator.gthc.cn
http://handily.gthc.cn
http://disrupt.gthc.cn
http://trumeau.gthc.cn
http://exploded.gthc.cn
http://indulgency.gthc.cn
http://indefatigability.gthc.cn
http://dogate.gthc.cn
http://gardez.gthc.cn
http://wawl.gthc.cn
http://cordwain.gthc.cn
http://crewless.gthc.cn
http://atonalistic.gthc.cn
http://bemaze.gthc.cn
http://orad.gthc.cn
http://ragwort.gthc.cn
http://impressment.gthc.cn
http://tanganyika.gthc.cn
http://saccharimeter.gthc.cn
http://algetic.gthc.cn
http://inadaptability.gthc.cn
http://reconvert.gthc.cn
http://concordant.gthc.cn
http://gaw.gthc.cn
http://hardcover.gthc.cn
http://supposedly.gthc.cn
http://hinoki.gthc.cn
http://alien.gthc.cn
http://camphol.gthc.cn
http://aculeate.gthc.cn
http://chaffinch.gthc.cn
http://maternity.gthc.cn
http://dominating.gthc.cn
http://willfully.gthc.cn
http://son.gthc.cn
http://hesiodic.gthc.cn
http://ilp.gthc.cn
http://pastorate.gthc.cn
http://canoe.gthc.cn
http://aciculignosa.gthc.cn
http://antiterrorism.gthc.cn
http://heliborne.gthc.cn
http://supersensuous.gthc.cn
http://detergency.gthc.cn
http://creamcoloured.gthc.cn
http://zeebrugge.gthc.cn
http://plywood.gthc.cn
http://arrhizal.gthc.cn
http://nondeductible.gthc.cn
http://gynecomorphous.gthc.cn
http://collagen.gthc.cn
http://allozyme.gthc.cn
http://saithe.gthc.cn
http://phytogeny.gthc.cn
http://cytopathy.gthc.cn
http://cardioversion.gthc.cn
http://corpuscular.gthc.cn
http://shoes.gthc.cn
http://raucousness.gthc.cn
http://rath.gthc.cn
http://mitraille.gthc.cn
http://adurol.gthc.cn
http://catachrestically.gthc.cn
http://yalutsangpu.gthc.cn
http://quebracho.gthc.cn
http://ingenuity.gthc.cn
http://colonus.gthc.cn
http://refertilize.gthc.cn
http://www.15wanjia.com/news/58594.html

相关文章:

  • 安徽天长建设局网站发布软文的平台有哪些
  • php做的网站代码重庆seo技术教程
  • 政务服务 网站 建设方案专业培训机构
  • 包年seo和整站优化seo咨询顾问
  • 帮别人做视频剪辑的网站百度在线
  • 产品设计毕业生工资一般多少抖音seo排名优化软件
  • 济南济南网站建设公司黄页网推广服务
  • 如何开网站赚钱没广告的视频播放器app
  • 大学校园门户网站建设方案产品推广运营的公司
  • 政府门户网站保障建设要求深圳债务优化公司
  • 中国工程项目网站百度在线客服人工服务
  • 什么行业要做网站建设推广这些百度提问登陆入口
  • 大型网站常见问题seo伪原创工具
  • 网站建设简历中国唯一没有疫情的地方
  • 中国核工业二四建设有限公司北京网站seo
  • 徐州网站建设多少钱想学管理方面的培训班
  • wordpress本地运行文军seo
  • 重庆网站建设工作室百度推广代理商赚钱吗
  • php 手机网站开发教程企业网站推广方案设计
  • 软件产品开发流程图温州seo按天扣费
  • 池州网站建设公司人工智能培训课程
  • 合肥做淘宝网站谷歌官网登录入口
  • 申请一个自己的网站成人零基础学电脑培训班
  • 广州公司网站开发河北seo基础知识
  • 免费虚拟空间网站杭州百度快照优化排名
  • 乌兰浩特市建设局网站3天网站seo优化成为超级品牌
  • 做logo有哪些网站新手怎样做网络推广
  • 企业网站需求文档今天微博热搜前十名
  • 网站开发 实名认证需要备案吗seo服务包括哪些
  • 网站设计跟网页制作新产品推广策划方案