1 package com.xtremelabs.robolectric.shadows;
2 
3 import android.app.Service;
4 import android.content.ComponentName;
5 import android.content.Intent;
6 import android.content.ServiceConnection;
7 import android.os.IBinder;
8 
9 class TestService extends Service implements ServiceConnection {
10     ComponentName name;
11     IBinder service;
12     ComponentName nameUnbound;
13 
14     @Override
onBind(Intent intent)15     public IBinder onBind(Intent intent) {
16         return null;
17     }
18 
19     @Override
onServiceConnected(ComponentName name, IBinder service)20     public void onServiceConnected(ComponentName name, IBinder service) {
21         this.name = name;
22         this.service = service;
23     }
24 
25     @Override
onServiceDisconnected(ComponentName name)26     public void onServiceDisconnected(ComponentName name) {
27         nameUnbound = name;
28     }
29 }
30