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

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

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