Home
last modified time | relevance | path

Searched refs:locationClients (Results 1 – 3 of 3) sorted by relevance

/tools/loganalysis/tests/src/com/android/loganalysis/item/
DLocationDumpsItemTest.java45 JSONArray locationClients = output.getJSONArray(LocationDumpsItem.LOCATION_CLIENTS); in testToJson() local
47 assertEquals(2, locationClients.length()); in testToJson()
48 assertTrue(locationClients.getJSONObject(0).has(LocationInfoItem.PACKAGE)); in testToJson()
49 assertTrue(locationClients.getJSONObject(0).has(LocationInfoItem.EFFECTIVE_INTERVAL)); in testToJson()
50 assertTrue(locationClients.getJSONObject(0).has(LocationInfoItem.MIN_INTERVAL)); in testToJson()
51 assertTrue(locationClients.getJSONObject(0).has(LocationInfoItem.MAX_INTERVAL)); in testToJson()
52 assertTrue(locationClients.getJSONObject(0).has(LocationInfoItem.REQUEST_PRIORITY)); in testToJson()
53 assertTrue(locationClients.getJSONObject(0).has(LocationInfoItem.LOCATION_DURATION)); in testToJson()
55 assertTrue(locationClients.getJSONObject(1).has(LocationInfoItem.PACKAGE)); in testToJson()
56 assertTrue(locationClients.getJSONObject(1).has(LocationInfoItem.EFFECTIVE_INTERVAL)); in testToJson()
[all …]
/tools/loganalysis/tests/src/com/android/loganalysis/parser/
DLocationServiceParserTest.java49 LocationDumpsItem locationClients = new LocationServiceParser().parse(inputBlock); in testLocationClientsSize() local
50 assertNotNull(locationClients.getLocationClients()); in testLocationClientsSize()
51 assertEquals(locationClients.getLocationClients().size(), 3); in testLocationClientsSize()
64 LocationDumpsItem locationClients = new LocationServiceParser().parse(inputBlock); in testLocationClientParser() local
65 assertNotNull(locationClients.getLocationClients()); in testLocationClientParser()
66 LocationInfoItem client = locationClients.getLocationClients().iterator().next(); in testLocationClientParser()
84 LocationDumpsItem locationClients = new LocationServiceParser().parse(inputBlock); in testLocationClientParserInvalidInput() local
85 assertEquals(locationClients.getLocationClients().size(), 0); in testLocationClientParserInvalidInput()
/tools/loganalysis/src/com/android/loganalysis/item/
DLocationDumpsItem.java166 JSONArray locationClients = new JSONArray(); in toJson() local
168 locationClients.put(locationClient.toJson()); in toJson()
170 object.put(LOCATION_CLIENTS, locationClients); in toJson()