Searched refs:locationClients (Results 1 – 3 of 3) sorted by relevance
45 JSONArray locationClients = output.getJSONArray(LocationDumpsItem.LOCATION_CLIENTS); in testToJson() local47 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 …]
49 LocationDumpsItem locationClients = new LocationServiceParser().parse(inputBlock); in testLocationClientsSize() local50 assertNotNull(locationClients.getLocationClients()); in testLocationClientsSize()51 assertEquals(locationClients.getLocationClients().size(), 3); in testLocationClientsSize()64 LocationDumpsItem locationClients = new LocationServiceParser().parse(inputBlock); in testLocationClientParser() local65 assertNotNull(locationClients.getLocationClients()); in testLocationClientParser()66 LocationInfoItem client = locationClients.getLocationClients().iterator().next(); in testLocationClientParser()84 LocationDumpsItem locationClients = new LocationServiceParser().parse(inputBlock); in testLocationClientParserInvalidInput() local85 assertEquals(locationClients.getLocationClients().size(), 0); in testLocationClientParserInvalidInput()
166 JSONArray locationClients = new JSONArray(); in toJson() local168 locationClients.put(locationClient.toJson()); in toJson()170 object.put(LOCATION_CLIENTS, locationClients); in toJson()