Clover Coverage Report - SaveApp Coverage Report
Coverage timestamp: mar dic 23 2014 15:53:11 EST
../../../../img/srcFileCovDistChart10.png 0% of files have more coverage
51   193   33   1,55
0   134   0,65   33
33     1  
1    
This report was generated with an evaluation server license. Purchase Clover or configure your license.
 
  SaveApp       Line # 7 51 33 95,2% 0.95238096
 
No Tests
 
1    package com.loopback.androidapps.saveapp;
2   
3    import android.app.Application;
4    import android.content.SharedPreferences;
5    import android.util.Log;
6   
 
7    public class SaveApp extends Application {
8   
9    // Application Variables -------------------------------
10    private boolean initiated;
11    private DBManager dbManager;
12   
13    // Account Global Variables -------------------------------
14    private int accountId, currencyId, currentBudget, budget, currentDays;
15    private String accountDesc, currencySymbol, startDate;
16    private boolean isEuropean;
17   
18    // Address Variables -------------------------------
19    private String addressDesc;
20    private double latitude, longitude;
21   
22    // Date Variables -------------------------------
23    private String date;
24   
25    // Outlay Variables -------------------------------
26    private boolean isAdding;
27    public Outlay outlay;
28   
29    /*------------------------------------------------------------------------------------------------
30    *-------------------------------------OnCREATE--------------------------------------------------
31    *------------------------------------------------------------------------------------------------ */
 
32  1 toggle public void onCreate() {
33  1 Log.i("APP", "On Create...");
34    // Preferences
35  1 SharedPreferences settings = getSharedPreferences(
36    getString(R.string.prefs_name), 0);
37  1 int prefAccount = settings.getInt("Account", 1);
38  1 this.setAccountId(prefAccount);
39  1 boolean isEuropean = settings.getBoolean("IsEuropean", false);
40  1 this.setEuropean(isEuropean);
41   
42   
43   
44  1 Account.saveApp = this;
45  1 AddressX.saveApp = this;
46  1 Album.saveApp = this;
47  1 Currency.saveApp = this;
48  1 DBManager.saveApp = this;
49  1 Item.saveApp = this;
50  1 Outlay.saveApp = this;
51  1 OutlayListItem.saveApp = this;
52  1 Place.saveApp = this;
53  1 Utilities.saveApp = this;
54  1 DBReader.saveApp = this;
55   
56   
57  1 outlay=new Outlay();
58   
59  1 Log.i("APP", "On Created");
60   
61    }
62   
63    /*------------------------------------------------------------------------------------------------
64    *-------------------------------------Setters and Getters--------------------------------------------------
65    *------------------------------------------------------------------------------------------------ */
 
66  11 toggle public void setAccountId(int accountId) {
67  11 this.accountId = accountId;
68    }
69   
 
70  66 toggle public int getAccountId() {
71  66 return accountId;
72    }
73   
 
74  0 toggle public void setInitiated(boolean initiated) {
75  0 this.initiated = initiated;
76    }
77   
 
78  0 toggle public boolean isInitiated() {
79  0 return initiated;
80    }
81   
 
82  9 toggle public void setCurrencyId(int currencyId) {
83  9 this.currencyId = currencyId;
84    }
85   
 
86  14 toggle public int getCurrencyId() {
87  14 return currencyId;
88    }
89   
 
90  13 toggle public void setCurrentBudget(int currentBudget) {
91  13 this.currentBudget = currentBudget;
92    }
93   
 
94  17 toggle public int getCurrentBudget() {
95  17 return currentBudget;
96    }
97   
 
98  8 toggle public void setBudget(int budget) {
99  8 this.budget = budget;
100    }
101   
 
102  13 toggle public int getBudget() {
103  13 return budget;
104    }
105   
 
106  13 toggle public void setCurrentDays(int currentDays) {
107  13 this.currentDays = currentDays;
108    }
109   
 
110  17 toggle public int getCurrentDays() {
111  17 return currentDays;
112    }
113   
 
114  9 toggle public void setAccountDesc(String accountDesc) {
115  9 this.accountDesc = accountDesc;
116    }
117   
 
118  69 toggle public String getAccountDesc() {
119  69 return accountDesc;
120    }
121   
 
122  9 toggle public void setCurrencySymbol(String currencySymbol) {
123  9 this.currencySymbol = currencySymbol;
124    }
125   
 
126  73 toggle public String getCurrencySymbol() {
127  73 return currencySymbol;
128    }
129   
 
130  8 toggle public void setStartDate(String startDate) {
131  8 this.startDate = startDate;
132    }
133   
 
134  5 toggle public String getStartDate() {
135  5 return startDate;
136    }
137   
 
138  1 toggle public void setEuropean(boolean isEuropean) {
139  1 this.isEuropean = isEuropean;
140    }
141   
 
142  66 toggle public boolean isEuropean() {
143  66 return isEuropean;
144    }
145   
 
146  7 toggle public void setAddressDesc(String addressDesc) {
147  7 this.addressDesc = addressDesc;
148    }
149   
 
150  19 toggle public String getAddressDesc() {
151  19 return addressDesc;
152    }
153   
 
154  32 toggle public void setLatitude(double latitude) {
155  32 this.latitude = latitude;
156    }
157   
 
158  31 toggle public double getLatitude() {
159  31 return latitude;
160    }
161   
 
162  32 toggle public void setLongitude(double longitude) {
163  32 this.longitude = longitude;
164    }
165   
 
166  31 toggle public double getLongitude() {
167  31 return longitude;
168    }
169   
 
170  6 toggle public void setDbManager(DBManager dbManager) {
171  6 this.dbManager = dbManager;
172    }
173   
 
174  399 toggle public DBManager getDbManager() {
175  399 return dbManager;
176    }
177   
 
178  2 toggle public void setAdding(boolean isAdding) {
179  2 this.isAdding = isAdding;
180    }
181   
 
182  14 toggle public boolean isAdding() {
183  14 return isAdding;
184    }
185   
 
186  5 toggle public void setDate(String date) {
187  5 this.date = date;
188    }
189   
 
190  9 toggle public String getDate() {
191  9 return date;
192    }
193    }