Clover Coverage Report - Main Coverage Report
Coverage timestamp: ven dic 19 2014 16:47:52 EST
../../../img/srcFileCovDistChart7.png 35% of files have more coverage
8   47   7   1,33
2   34   0,88   3
6     1,17  
2    
This report was generated with an evaluation server license. Purchase Clover or configure your license.
 
  BicycleApp       Line # 10 7 4 100% 1.0
  BicycleApp.MKGeneralListenerImp       Line # 34 1 3 0% 0.0
 
No Tests
 
1    package com.dreamcatcher.bicycle;
2   
3    import android.app.Application;
4   
5    import com.baidu.mapapi.BMapManager;
6    import com.baidu.mapapi.MKEvent;
7    import com.baidu.mapapi.MKGeneralListener;
8    import com.dreamcatcher.bicycle.util.Constants;
9   
 
10    public class BicycleApp extends Application {
11    private static BicycleApp mInstance = null;
12    private BMapManager mBMapMan = null;
13   
 
14  1 toggle @Override
15    public void onCreate() {
16  1 super.onCreate();
17  1 mInstance = this;
18  1 initBaiduMap();
19    }
20   
 
21  31 toggle public static BicycleApp getInstance(){
22  31 return mInstance;
23    }
24   
 
25  3 toggle public BMapManager getMapManager(){
26  3 return mBMapMan;
27    }
28   
 
29  1 toggle public void initBaiduMap(){
30  1 mBMapMan = new BMapManager(this);
31  1 mBMapMan.init(Constants.BaiduApi.KEY, new MKGeneralListenerImp());
32    }
33   
 
34    private static class MKGeneralListenerImp implements MKGeneralListener{
 
35  0 toggle public void onGetNetworkState(int resultCode) {
36    }
37   
38    /**
39    * no baidu api perssion
40    */
 
41  0 toggle public void onGetPermissionState(int iError) {
42  0 if (iError == MKEvent.ERROR_PERMISSION_DENIED){
43   
44    }
45    }
46    }
47    }