mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-26 03:53:09 +08:00
Remove logging
This commit is contained in:
parent
8eaaa04746
commit
a1b35b7636
@ -114,10 +114,6 @@ public class ContactAccessorSdk5 extends ContactAccessor {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public JSONArray search(JSONArray filter, JSONObject options) {
|
public JSONArray search(JSONArray filter, JSONObject options) {
|
||||||
long totalEnd;
|
|
||||||
long totalStart = System.currentTimeMillis();
|
|
||||||
long start = System.currentTimeMillis();
|
|
||||||
long stop;
|
|
||||||
String searchTerm = "";
|
String searchTerm = "";
|
||||||
int limit = Integer.MAX_VALUE;
|
int limit = Integer.MAX_VALUE;
|
||||||
boolean multiple = true;
|
boolean multiple = true;
|
||||||
@ -136,19 +132,12 @@ public class ContactAccessorSdk5 extends ContactAccessor {
|
|||||||
} catch (JSONException e) {
|
} catch (JSONException e) {
|
||||||
Log.e(LOG_TAG, e.getMessage(), e);
|
Log.e(LOG_TAG, e.getMessage(), e);
|
||||||
}
|
}
|
||||||
stop = System.currentTimeMillis();
|
|
||||||
Log.d(LOG_TAG, "Parsing parameters took = " + (stop-start));
|
|
||||||
start = System.currentTimeMillis();
|
|
||||||
|
|
||||||
// Get a cursor by creating the query.
|
// Get a cursor by creating the query.
|
||||||
ContentResolver cr = mApp.getContentResolver();
|
ContentResolver cr = mApp.getContentResolver();
|
||||||
|
|
||||||
Set<String> contactIds = buildSetOfContactIds(filter, searchTerm);
|
Set<String> contactIds = buildSetOfContactIds(filter, searchTerm);
|
||||||
|
|
||||||
stop = System.currentTimeMillis();
|
|
||||||
Log.d(LOG_TAG, "Building contact ID's took = " + (stop-start));
|
|
||||||
start = System.currentTimeMillis();
|
|
||||||
|
|
||||||
Iterator<String> it = contactIds.iterator();
|
Iterator<String> it = contactIds.iterator();
|
||||||
|
|
||||||
JSONArray contacts = new JSONArray();
|
JSONArray contacts = new JSONArray();
|
||||||
@ -182,10 +171,6 @@ public class ContactAccessorSdk5 extends ContactAccessor {
|
|||||||
contacts.put(contact);
|
contacts.put(contact);
|
||||||
pos++;
|
pos++;
|
||||||
}
|
}
|
||||||
stop = System.currentTimeMillis();
|
|
||||||
totalEnd = System.currentTimeMillis();
|
|
||||||
Log.d(LOG_TAG, "Populating contact Array took = " + (stop - start));
|
|
||||||
Log.d(LOG_TAG, "Total search took = " + (totalEnd - totalStart));
|
|
||||||
return contacts;
|
return contacts;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user