コード例 #1
0
ファイル: AudioTester.java プロジェクト: caihongwang/ChatMe
 @Override
 public void onServiceConnected(ComponentName arg0, IBinder arg1) {
   service = ISipService.Stub.asInterface(arg1);
   if (service != null) {
     try {
       int res = service.startLoopbackTest();
       if (res == SipManager.SUCCESS) {
         currentStatus = R.string.test_audio_ongoing;
       } else {
         currentStatus = R.string.test_audio_network_failure;
       }
       updateStatusDisplay();
     } catch (RemoteException e) {
       Log.e(THIS_FILE, "Error in test", e);
     }
   }
 }
コード例 #2
0
 @Override
 public void onServiceConnected(ComponentName component, IBinder binder) {
   service = ISipService.Stub.asInterface(binder);
 }
コード例 #3
0
 @Override
 public void onServiceConnected(ComponentName arg0, IBinder arg1) {
   service = ISipService.Stub.asInterface(arg1);
 }