Changeset 35209ac in orbit for android/src
- Timestamp:
- 12/11/13 17:35:42 (9 years ago)
- Branches:
- master, Servo
- Children:
- 41010fb
- Parents:
- e537bac
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
android/src/info/puzzlebox/orbit/FragmentTabFlightEmotiv.java
re537bac r35209ac 162 162 public void onClick(View arg0) { 163 163 164 Log. v(TAG, "Flight_enterOnClickListener()");164 Log.d(TAG, "Flight_enterOnClickListener()"); 165 165 166 166 String textPassToAdvanced = "textPassToAdvanced: input.getText().toString()"; 167 Log. v(TAG, textPassToAdvanced);167 Log.d(TAG, textPassToAdvanced); 168 168 169 169 … … 342 342 "Fail to start training. Algorithm is deactivated due to optimization.", 343 343 Toast.LENGTH_SHORT).show(); 344 Log. v(TAG, "Fail to start training. Algorithm is deactivated due to optimization.");344 Log.d(TAG, "Fail to start training. Algorithm is deactivated due to optimization."); 345 345 } 346 346 … … 419 419 .ESCognitivGetCurrentAction(); 420 420 _currentPower = EmoStateDLL.ESCognitivGetCurrentActionPower(); 421 422 423 progressBarCognitiv.setProgress((int) (_currentPower * 100)); 424 421 425 422 426 if (_currentAction == EE_CognitivAction_t.COG_NEUTRAL … … 460 464 Toast.makeText(((OrbitTabActivity)getActivity()), "Start Training", 461 465 Toast.LENGTH_SHORT).show(); 462 Log. v(TAG, "Start Training");466 Log.d(TAG, "Start Training"); 463 467 464 468 … … 468 472 Toast.makeText(((OrbitTabActivity)getActivity()), "Training Completed", 469 473 Toast.LENGTH_SHORT).show(); 470 Log. v(TAG, "Training Completed");474 Log.d(TAG, "Training Completed"); 471 475 472 476 } … … 478 482 Toast.makeText(((OrbitTabActivity)getActivity()), "Training Succeeded", 479 483 Toast.LENGTH_SHORT).show(); 480 Log. v(TAG, "Training Succeeded");484 Log.d(TAG, "Training Succeeded"); 481 485 482 486 … … 511 515 Toast.LENGTH_SHORT) 512 516 .show(); 513 Log. v(TAG, "accept ok");517 Log.d(TAG, "accept ok"); 514 518 515 519 } else … … 519 523 Toast.LENGTH_SHORT) 520 524 .show(); 521 Log. v(TAG, "accept error");525 Log.d(TAG, "accept error"); 522 526 } 523 527 }) … … 540 544 Toast.LENGTH_SHORT) 541 545 .show(); 542 Log. v(TAG, "reject ok");546 Log.d(TAG, "reject ok"); 543 547 544 548 } else … … 548 552 Toast.LENGTH_SHORT) 549 553 .show(); 550 Log. v(TAG, "reject error");554 Log.d(TAG, "reject error"); 551 555 552 556 } … … 562 566 Toast.makeText(((OrbitTabActivity)getActivity()), "Training Failed", 563 567 Toast.LENGTH_SHORT).show(); 564 Log. v(TAG, "Training Failed");568 Log.d(TAG, "Training Failed"); 565 569 } 566 570 if (cogType == Edk.EE_CognitivEvent_t.EE_CognitivTrainingRejected … … 568 572 Toast.makeText(((OrbitTabActivity)getActivity()), "Training Rejected", 569 573 Toast.LENGTH_SHORT).show(); 570 Log. v(TAG, "Training Rejected");574 Log.d(TAG, "Training Rejected"); 571 575 } 572 576 } … … 618 622 "Fail to start training. Algorithm is deactivated due to optimization.", 619 623 Toast.LENGTH_SHORT).show(); 620 Log. v(TAG, "Fail to start training. Algorithm is deactivated due to optimization.");624 Log.d(TAG, "Fail to start training. Algorithm is deactivated due to optimization."); 621 625 622 626 } else … … 625 629 "Fail to start training. Algorithm is deactivated due to optimization.", 626 630 Toast.LENGTH_SHORT).show(); 627 Log. v(TAG, "Fail to start training. Algorithm is deactivated due to optimization.");631 Log.d(TAG, "Fail to start training. Algorithm is deactivated due to optimization."); 628 632 } else 629 633 for (int i = 1; i < cognitivActionList.length; i++) { … … 643 647 "Start Training", Toast.LENGTH_SHORT) 644 648 .show(); 645 Log. v(TAG, "Start Training");649 Log.d(TAG, "Start Training"); 646 650 647 651 } else … … 650 654 "Fail to start training. Algorithm is deactivated due to optimization.", 651 655 Toast.LENGTH_SHORT).show(); 652 Log. v(TAG, "Fail to start training. Algorithm is deactivated due to optimization.");656 Log.d(TAG, "Fail to start training. Algorithm is deactivated due to optimization."); 653 657 654 658 } else … … 657 661 "Fail to start training. Algorithm is deactivated due to optimization.", 658 662 Toast.LENGTH_SHORT).show(); 659 Log. v(TAG, "Fail to start training. Algorithm is deactivated due to optimization.");663 Log.d(TAG, "Fail to start training. Algorithm is deactivated due to optimization."); 660 664 } 661 665 … … 737 741 switch(config.screenLayout & Configuration.SCREENLAYOUT_SIZE_MASK){ 738 742 case Configuration.SCREENLAYOUT_SIZE_SMALL: 739 Log. v(TAG, "screenLayout: small");743 Log.d(TAG, "screenLayout: small"); 740 744 updateScreenLayoutSmall(); 741 745 break; 742 746 case Configuration.SCREENLAYOUT_SIZE_NORMAL: 743 Log. v(TAG, "screenLayout: normal");747 Log.d(TAG, "screenLayout: normal"); 744 748 updateScreenLayoutSmall(); 745 749 break; 746 750 case Configuration.SCREENLAYOUT_SIZE_LARGE: 747 Log. v(TAG, "screenLayout: large");751 Log.d(TAG, "screenLayout: large"); 748 752 break; 749 753 case Configuration.SCREENLAYOUT_SIZE_XLARGE: 750 Log. v(TAG, "screenLayout: xlarge");754 Log.d(TAG, "screenLayout: xlarge"); 751 755 break; 752 756 case Configuration.SCREENLAYOUT_SIZE_UNDEFINED: 753 Log. v(TAG, "screenLayout: undefined");757 Log.d(TAG, "screenLayout: undefined"); 754 758 updateScreenLayoutSmall(); 755 759 break; … … 795 799 796 800 if(DEBUG) { 797 // Log. v(TAG, (new StringBuilder("Attention: ")).append(eegAttention).toString());798 // Log. v(TAG, (new StringBuilder("Meditation: ")).append(eegMeditation).toString());799 Log. v(TAG, (new StringBuilder("Cognitiv: ")).append(eegCognitiv).toString());800 Log. v(TAG, (new StringBuilder("Power: ")).append(eegPower).toString());801 Log. v(TAG, (new StringBuilder("Signal: ")).append(eegSignal).toString());802 Log. v(TAG, (new StringBuilder("Connecting: ")).append(eegConnecting).toString());803 Log. v(TAG, (new StringBuilder("Connected: ")).append(eegConnected).toString());801 // Log.d(TAG, (new StringBuilder("Attention: ")).append(eegAttention).toString()); 802 // Log.d(TAG, (new StringBuilder("Meditation: ")).append(eegMeditation).toString()); 803 Log.d(TAG, (new StringBuilder("Cognitiv: ")).append(eegCognitiv).toString()); 804 Log.d(TAG, (new StringBuilder("Power: ")).append(eegPower).toString()); 805 Log.d(TAG, (new StringBuilder("Signal: ")).append(eegSignal).toString()); 806 Log.d(TAG, (new StringBuilder("Connecting: ")).append(eegConnecting).toString()); 807 Log.d(TAG, (new StringBuilder("Connected: ")).append(eegConnected).toString()); 804 808 } 805 809 … … 856 860 public void onStopTrackingTouch(SeekBar seekBar) { 857 861 858 Log. v(TAG, "onStopTrackingTouch()");862 Log.d(TAG, "onStopTrackingTouch()"); 859 863 860 864 … … 931 935 // // eegMeditation = msg.arg1; 932 936 // // if (DEBUG) 933 // // Log. v(TAG, "Meditation: " + eegMeditation);937 // // Log.d(TAG, "Meditation: " + eegMeditation); 934 938 // // // appendDebugConsole("Meditation: " + eegMeditation + "\n"); 935 939 // // progressBarMeditation.setProgress(eegMeditation); … … 1125 1129 1126 1130 // Set Attention and Meditation to zero if we've lost signal 1127 if (eegSignal < 100) {1128 eegCognitiv = 0;1129 progressBarCognitiv.setProgress(eegCognitiv);1130 }1131 // if (eegSignal < 100) { 1132 // eegCognitiv = 0; 1133 // progressBarCognitiv.setProgress(eegCognitiv); 1134 // } 1131 1135 1132 1136 eegPower = calculateSpeed(); … … 1143 1147 public void hideEEGRawHistory() { 1144 1148 1145 Log. v(TAG, "hideEEGRawHistory()");1149 Log.d(TAG, "hideEEGRawHistory()"); 1146 1150 1147 1151
Note: See TracChangeset
for help on using the changeset viewer.