public void onReceive(Context paramAnonymousContext, Intent paramAnonymousIntent) { String str = paramAnonymousIntent.getAction(); FtUtil.log_d("FactoryTestNVView", "mBroadcastReceiver.onReceive", "action=" + str); if (str.equals("com.android.samsungtest.RilOmissionCommand")) { FtUtil.log_d( "FactoryTestNVView", "mBroadcastReceiver.onReceive", "ACTION_RECEIVE_TESTNV"); UIFactoryTestNVView.this.getFactoryTestNVValueCPO(paramAnonymousIntent); UIFactoryTestNVView.this.getFactoryTestNVValueCPO(); } }
private String get_NV_ValueCPO(int paramInt1, int paramInt2) { FtUtil.log_d("FactoryTestNVView", "get_NV_ValueCPO", null); String str = ""; for (int i = paramInt1; i <= paramInt2; i++) { char c = this.mResultValue[i]; FtUtil.log_d("FactoryTestNVView", "get_NV_ValueCPO", "key: " + i + "NV: " + c); str = str + "" + (i + 1) + " / " + c; if (paramInt1 < paramInt2) { str = str + "\n"; } } return str; }
private String get_NV_Value(int paramInt1, int paramInt2) { FtUtil.log_d("FactoryTestNVView", "get_NV_Value", null); String str = ""; while (paramInt1 <= paramInt2) { byte b = NVAccessor.getNV((byte) paramInt1); FtUtil.log_d("FactoryTestNVView", "get_NV_Value", "key: " + paramInt1 + "NV: " + b); str = str + "" + paramInt1 + " / " + Change_NV_Value(b); if (paramInt1 < paramInt2) { str = str + "\n"; } paramInt1++; } return str; }
private void getFactoryTestNVValueCPO() { FtUtil.log_d("FactoryTestNVView", "getFactoryTestNVValueCPO", null); this.mView1.setText(get_NV_ValueCPO(0, 22)); this.mView2.setText(get_NV_ValueCPO(23, 45)); this.mView3.setText(get_NV_ValueCPO(46, 68)); this.mView4.setText(get_NV_ValueCPO(69, 89)); }
private void getFactoryTestNVValue() { FtUtil.log_d("FactoryTestNVView", "getFactoryTestNVValue", null); this.mView1.setText(get_NV_Value(1, 23)); this.mView2.setText(get_NV_Value(24, 46)); this.mView3.setText(get_NV_Value(47, 69)); this.mView4.setText(get_NV_Value(70, 90)); }
public void onCreate(Bundle paramBundle) { super.onCreate(paramBundle); FtUtil.log_d("FactoryTestNVView", "onCreate", null); setContentView(2130903091); findViewById(2131296758).setOnClickListener(this); findViewById(2131296759).setOnClickListener(this); this.mView1 = ((TextView) findViewById(2131296754)); this.mView2 = ((TextView) findViewById(2131296755)); this.mView3 = ((TextView) findViewById(2131296756)); this.mView4 = ((TextView) findViewById(2131296757)); }
private void getFactoryTestNVValueCPO(Intent paramIntent) { FtUtil.log_d("FactoryTestNVView", "getFactoryTestNVValueCPO", null); String str1 = paramIntent.getStringExtra("COMMAND"); if (str1 == null) { str1 = ""; } int i = 6; if (i < str1.length()) { String str2 = str1.substring(i + 2, i + 4); FtUtil.log_d("FactoryTestNVView", "getFactoryTestNVValueCPO", "mTempResultValue : " + str2); if ("50".equals(str2)) { this.mPassItemValue.add("PASS"); } for (; ; ) { i += 4; break; this.mPassItemValue.add("FAIL"); } } int j = 0; if (j < 90) { FtUtil.log_d("FactoryTestNVView", "getFactoryTestNVValueCPO", "i : " + j); FtUtil.log_d( "FactoryTestNVView", "getFactoryTestNVValueCPO", "mPassItemValue.get(i) : " + (String) this.mPassItemValue.get(j)); if ("PASS".equals(this.mPassItemValue.get(j))) { this.mItemValue[j] = ((byte) (j + 1)); this.mResultValue[j] = 'P'; } for (; ; ) { j++; break; this.mItemValue[j] = ((byte) (j + 1)); this.mResultValue[j] = 'N'; } } }
protected void onResume() { super.onResume(); if (FtUtil.isFactoryAppAPO()) { getFactoryTestNVValue(); return; } IntentFilter localIntentFilter = new IntentFilter(); localIntentFilter.addAction("com.android.samsungtest.RilOmissionCommand"); registerReceiver(this.mBroadcastReceiver, localIntentFilter); this.mFactoryPhone = new FactoryTestPhone(this); this.mFactoryPhone.bindSecPhoneService(); FtUtil.log_d("FactoryTestNVView", "onResume", "Request for TestNV!"); this.mFactoryPhone.requestTestNvViewToRil(); }
public void onClick(View paramView) { FtUtil.log_d("FactoryTestNVView", "onClick", "start_update_in_nvitem"); switch (paramView.getId()) { default: return; case 2131296758: if (FtUtil.isFactoryAppAPO()) { set_NV_Value((byte) 1); getFactoryTestNVValue(); return; } set_NV_ValueCPO((byte) 1, (byte) 80); return; } if (FtUtil.isFactoryAppAPO()) { set_NV_Value((byte) 4); getFactoryTestNVValue(); return; } set_NV_ValueCPO((byte) 4, (byte) 80); }
private void set_NV_Value(byte paramByte) { NVAccessor.setNV(paramByte, (byte) 80); FtUtil.log_d("FactoryTestNVView", "set_NV_Value", "key: " + paramByte); }