Home
last modified time | relevance | path

Searched refs:prop (Results 1 – 2 of 2) sorted by relevance

/packages/providers/CalendarProvider/tests/src/com/android/providers/calendar/
DICalendarTest.java15 ICalendar.Property prop = new ICalendar.Property("prop1", "value1"); in testAddParameter() local
16 assertEquals(0, prop.getParameterNames().size()); in testAddParameter()
17 prop.addParameter(new ICalendar.Parameter("param1", "foo")); in testAddParameter()
18 assertEquals(1, prop.getParameterNames().size()); in testAddParameter()
19 prop.addParameter(new ICalendar.Parameter("param1", "bar")); in testAddParameter()
20 assertEquals(1, prop.getParameterNames().size()); in testAddParameter()
21 prop.addParameter(new ICalendar.Parameter("param2", "baaz")); in testAddParameter()
22 assertEquals(2, prop.getParameterNames().size()); in testAddParameter()
23 prop.addParameter(new ICalendar.Parameter("param1", "quux")); in testAddParameter()
24 assertEquals(2, prop.getParameterNames().size()); in testAddParameter()
[all …]
/packages/apps/Settings/src/com/android/settings/
DUtils.java308 LinkProperties prop = cm.getLinkProperties(ConnectivityManager.TYPE_WIFI); in getWifiIpAddresses() local
309 return formatIpAddresses(prop); in getWifiIpAddresses()
321 LinkProperties prop = cm.getActiveLinkProperties(); in getDefaultIpAddresses() local
322 return formatIpAddresses(prop); in getDefaultIpAddresses()
325 private static String formatIpAddresses(LinkProperties prop) { in formatIpAddresses() argument
326 if (prop == null) return null; in formatIpAddresses()
327 Iterator<InetAddress> iter = prop.getAddresses().iterator(); in formatIpAddresses()