Home
last modified time | relevance | path

Searched refs:focusedView (Results 1 – 4 of 4) sorted by relevance

/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/
DShadowFragmentActivity.java93 View focusedView = super.getCurrentFocus(); in getCurrentFocus() local
94 if (focusedView != null) { in getCurrentFocus()
95 return focusedView; in getCurrentFocus()
101 focusedView = view.findFocus(); in getCurrentFocus()
102 if (focusedView != null) { in getCurrentFocus()
103 return focusedView; in getCurrentFocus()
DShadowViewGroup.java181 View focusedView = child.findFocus(); in findFocus() local
182 if (focusedView != null) { in findFocus()
183 return focusedView; in findFocus()
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/
DActivityTest.java343 View focusedView = shadowOf(activity).getCurrentFocus(); in getCurrentFocus_shouldBeNullWhenNoFocusRequested() local
344 assertNull(focusedView); in getCurrentFocus_shouldBeNullWhenNoFocusRequested()
355 View focusedView = shadowOf(activity).getCurrentFocus(); in getCurrentFocus_shouldReturnSubViewAfterFocusedRequest() local
356 assertEquals(R.id.button, focusedView.getId()); in getCurrentFocus_shouldReturnSubViewAfterFocusedRequest()
DFragmentActivityTest.java164 View focusedView = activity.getCurrentFocus(); in getCurrentFocus_shouldGetFocusFromFragment() local
165 assertSame(button, focusedView); in getCurrentFocus_shouldGetFocusFromFragment()