YGPS/src/com/mediatek/ygps/YgpsActivity.java
private void onGpsHwTestClicked() {
        String ss = GpsMnlSetting.getMnlProp(GpsMnlSetting.KEY_TEST_MODE,
                GpsMnlSetting.PROP_VALUE_0);
        if (ss.equals(GpsMnlSetting.PROP_VALUE_0)) {
            mBtnGpsHwTest.setText(R.string.btn_name_dbg2gpsdoctor_disable);
            GpsMnlSetting.setMnlProp(GpsMnlSetting.KEY_TEST_MODE,
                    GpsMnlSetting.PROP_VALUE_1);
            mBtnNmeaDbgDbgFile.setText(R.string.btn_name_dbg2file_disable);
            GpsMnlSetting.setMnlProp(GpsMnlSetting.KEY_DEBUG_DBG2FILE,
                    GpsMnlSetting.PROP_VALUE_1);
        } else {
            mBtnGpsHwTest.setText(R.string.btn_name_dbg2gpsdoctor_enable);
            GpsMnlSetting.setMnlProp(GpsMnlSetting.KEY_TEST_MODE,
                    GpsMnlSetting.PROP_VALUE_0);
        }
        final SharedPreferences preferences = this.getSharedPreferences(
                FIRST_TIME, android.content.Context.MODE_PRIVATE);
        preferences.edit().putString(FIRST_TIME, GpsMnlSetting.PROP_VALUE_1)
                .commit();
    }
/**
     * Invoked when GPS HW test button clicked.
     */
Invoked when GPS HW test button clicked.
Invoked when GPS HW test button clicked .
private void onGpsHwTestClicked() {
        String ss = GpsMnlSetting.getMnlProp(GpsMnlSetting.KEY_TEST_MODE,
                GpsMnlSetting.PROP_VALUE_0);
        if (ss.equals(GpsMnlSetting.PROP_VALUE_0)) {
            mBtnGpsHwTest.setText(R.string.btn_name_dbg2gpsdoctor_disable);
            GpsMnlSetting.setMnlProp(GpsMnlSetting.KEY_TEST_MODE,
                    GpsMnlSetting.PROP_VALUE_1);
            mBtnNmeaDbgDbgFile.setText(R.string.btn_name_dbg2file_disable);
            GpsMnlSetting.setMnlProp(GpsMnlSetting.KEY_DEBUG_DBG2FILE,
                    GpsMnlSetting.PROP_VALUE_1);
        } else {
            mBtnGpsHwTest.setText(R.string.btn_name_dbg2gpsdoctor_enable);
            GpsMnlSetting.setMnlProp(GpsMnlSetting.KEY_TEST_MODE,
                    GpsMnlSetting.PROP_VALUE_0);
        }
        final SharedPreferences preferences = this.getSharedPreferences(
                FIRST_TIME, android.content.Context.MODE_PRIVATE);
        preferences.edit().putString(FIRST_TIME, GpsMnlSetting.PROP_VALUE_1)
                .commit();
    }
private void onGpsHwTestClicked ( ) { String ss = GpsMnlSetting . getMnlProp ( GpsMnlSetting . KEY_TEST_MODE , GpsMnlSetting . PROP_VALUE_0 ) ; if ( ss . equals ( GpsMnlSetting . PROP_VALUE_0 ) ) { mBtnGpsHwTest . setText ( R . string . btn_name_dbg2gpsdoctor_disable ) ; GpsMnlSetting . setMnlProp ( GpsMnlSetting . KEY_TEST_MODE , GpsMnlSetting . PROP_VALUE_1 ) ; mBtnNmeaDbgDbgFile . setText ( R . string . btn_name_dbg2file_disable ) ; GpsMnlSetting . setMnlProp ( GpsMnlSetting . KEY_DEBUG_DBG2FILE , GpsMnlSetting . PROP_VALUE_1 ) ; } else { mBtnGpsHwTest . setText ( R . string . btn_name_dbg2gpsdoctor_enable ) ; GpsMnlSetting . setMnlProp ( GpsMnlSetting . KEY_TEST_MODE , GpsMnlSetting . PROP_VALUE_0 ) ; } final SharedPreferences preferences = this . getSharedPreferences ( FIRST_TIME , android . content . Context . MODE_PRIVATE ) ; preferences . edit ( ) . putString ( FIRST_TIME , GpsMnlSetting . PROP_VALUE_1 ) . commit ( ) ; }
Invoked when GPS HW test button clicked.
Invoked when GPS HW test button clicked .