YGPS/src/com/mediatek/ygps/YgpsActivity.java
void acquireCpuWakeLock(Context context) {
            Log.v("@M_" + TAG, "Acquiring cpu wake lock");
            if (mCpuWakeLock != null) {
                return;
            }

            PowerManager pm = (PowerManager) context
                    .getSystemService(Context.POWER_SERVICE);

            mCpuWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK
                    | PowerManager.ACQUIRE_CAUSES_WAKEUP, TAG);
            // | PowerManager.ON_AFTER_RELEASE, TAG);
            mCpuWakeLock.acquire();
        }
/**
         * Acquire CPU wake lock.
         *
         * @param context
         *            Getting lock context
         */
Acquire CPU wake lock.
@param context
Getting lock context
Acquire CPU wake lock . @param context Getting lock context
void acquireCpuWakeLock(Context context) {
            Log.v("@M_" + TAG, "Acquiring cpu wake lock");
            if (mCpuWakeLock != null) {
                return;
            }
            PowerManager pm = (PowerManager) context
                    .getSystemService(Context.POWER_SERVICE);
            mCpuWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK
                    | PowerManager.ACQUIRE_CAUSES_WAKEUP, TAG);
            mCpuWakeLock.acquire();
        }
void acquireCpuWakeLock ( Context context ) { Log . v ( "@M_" + TAG , "Acquiring cpu wake lock" ) ; if ( mCpuWakeLock != null ) { return ; } PowerManager pm = ( PowerManager ) context . getSystemService ( Context . POWER_SERVICE ) ; mCpuWakeLock = pm . newWakeLock ( PowerManager . PARTIAL_WAKE_LOCK | PowerManager . ACQUIRE_CAUSES_WAKEUP , TAG ) ; mCpuWakeLock . acquire ( ) ; }
Acquire CPU wake lock.
Acquire CPU wake lock .
// | PowerManager.ON_AFTER_RELEASE, TAG);