Пример #1
0
 public String getTestUuid() {
   if (testTask != null) {
     return testTask.getTestUuid();
   } else {
     return ConfigHelper.getLastTestUuid(getApplicationContext(), true);
   }
 }
Пример #2
0
 @Override
 public void taskEnded() {
   unlock();
   removeNotification();
   handler.removeCallbacks(deadman);
   completed = true;
   sendBroadcast(new Intent(BROADCAST_TEST_FINISHED));
   stopSelf();
   if (testTask != null) {
     ConfigHelper.setLastTestUuid(getApplicationContext(), testTask.getTestUuid());
   }
   Log.i("RMBTService", "stopped!");
 }