/cts/tests/tests/assist/testapp/src/android/assist/testapp/ |
FocusChangeActivity.java | 29 public void onWindowFocusChanged(boolean hasFocus) { 30 if (hasFocus && !mGainedFocus) { 34 } else if (!hasFocus && mGainedFocus) {
|
LifecycleActivity.java | 58 public void onWindowFocusChanged(boolean hasFocus) { 59 super.onWindowFocusChanged(hasFocus); 60 Log.i(TAG, "Activity focus changed: " + hasFocus); 61 if (hasFocus) {
|
/cts/tests/tests/view/src/android/view/cts/ |
ViewTestCtsActivity.java | 36 public void onWindowFocusChanged(boolean hasFocus) { 37 super.onWindowFocusChanged(hasFocus); 38 if (!hasFocus) { 42 mHasWindowFocus = hasFocus;
|
View_FocusHandlingTest.java | 121 assertTrue(v1.hasFocus()); 122 assertFalse(v2.hasFocus()); 123 assertFalse(v3.hasFocus()); 124 assertFalse(v4.hasFocus()); 127 assertFalse(v1.hasFocus()); 128 assertTrue(v2.hasFocus()); 129 assertFalse(v3.hasFocus()); 130 assertFalse(v4.hasFocus()); 133 assertFalse(v1.hasFocus()); 134 assertFalse(v2.hasFocus()); [all...] |
/frameworks/base/core/tests/coretests/src/android/widget/ |
TextViewActivity.java | 44 public void onWindowFocusChanged(boolean hasFocus) { 45 super.onWindowFocusChanged(hasFocus); 46 if (!hasFocus) { 50 mHasWindowFocus = hasFocus;
|
/frameworks/base/core/tests/coretests/src/android/widget/focus/ |
ListOfButtonsTest.java | 64 assertFalse(mButtonAtTop.hasFocus()); 65 assertTrue(mListView.hasFocus()); 74 assertTrue(mButtonAtTop.hasFocus()); 75 assertFalse(mListView.hasFocus()); 82 assertTrue(mListView.hasFocus()); 87 assertTrue(childOne.hasFocus()); 96 mButtonAtTop.hasFocus()); 97 assertTrue(mListView.hasFocus()); 111 assertTrue(indexInfo, mListView.hasFocus()); 116 assertTrue(indexInfo, button.hasFocus()); [all...] |
FocusAfterRemovalTest.java | 67 assertTrue(mTopLeftButton.hasFocus()); 80 mTopRightButton.hasFocus()); 89 assertTrue(mBottomLeftButton.hasFocus()); 97 mTopRightButton.hasFocus()); 105 assertTrue(mTopRightButton.hasFocus()); 112 mTopLeftButton.hasFocus()); 121 assertTrue(mBottomRightButton.hasFocus()); 128 mTopLeftButton.hasFocus());
|
FocusChangeWithInterestingRectHintTest.java | 63 assertTrue(mLeftColumn.hasFocus()); 81 mMiddleColumn.hasFocus()); 86 mRightColumn.hasFocus()); 95 mRightColumn.hasFocus()); 99 mMiddleColumn.hasFocus());
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
FocusOnlyTabWidget.java | 64 if (v.hasFocus()) { 75 public void superOnFocusChange(View v, boolean hasFocus) { 76 super.onFocusChange(v, hasFocus); 80 public void onFocusChange(android.view.View v, boolean hasFocus) { 81 if (v == this && hasFocus && getTabCount() > 0) {
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/vr/ |
MockVrActivity2.java | 55 public void onWindowFocusChanged(boolean hasFocus) { 56 Log.i(TAG, "onWindowFocusChanged called with " + hasFocus); 57 super.onWindowFocusChanged(hasFocus);
|
MockVrActivity.java | 71 public void onWindowFocusChanged(boolean hasFocus) { 72 Log.i(TAG, "onWindowFocusChanged called with " + hasFocus); 73 super.onWindowFocusChanged(hasFocus);
|
/cts/hostsidetests/services/activityandwindowmanager/activitymanager/app/src/android/server/cts/ |
VrTestActivity.java | 52 public void onWindowFocusChanged(boolean hasFocus) { 53 if (DEBUG) Log.i(TAG, "onWindowFocusChanged called with " + hasFocus); 54 super.onWindowFocusChanged(hasFocus);
|
/cts/hostsidetests/trustedvoice/app/src/android/trustedvoice/app/ |
TrustedVoiceActivity.java | 51 public void onWindowFocusChanged(boolean hasFocus) { 52 super.onWindowFocusChanged(hasFocus); 53 if (hasFocus) {
|
/development/samples/devbytes/ui/ImmersiveMode/src/main/java/com/example/android/immersive/ |
ImmersiveStickyActivity.java | 38 public void onWindowFocusChanged(boolean hasFocus) { 39 super.onWindowFocusChanged(hasFocus); 40 if (hasFocus) {
|
ImmersiveActivity.java | 77 public void onWindowFocusChanged(boolean hasFocus) { 78 super.onWindowFocusChanged(hasFocus); 83 if (hasFocus) {
|
/cts/tests/tests/text/src/android/text/method/cts/ |
KeyListenerCtsActivity.java | 68 public void onWindowFocusChanged(boolean hasFocus) { 69 super.onWindowFocusChanged(hasFocus); 70 if (!hasFocus) { 74 mHasWindowFocus = hasFocus;
|
/frameworks/support/samples/SupportLeanbackShowcase/app/src/main/java/android/support/v17/leanback/supportleanbackshowcase/cards/presenters/ |
IconCardPresenter.java | 45 public void onFocusChange(View v, boolean hasFocus) { 46 animateIconBackground(image.getBackground(), hasFocus); 52 private void animateIconBackground(Drawable drawable, boolean hasFocus) { 53 if (hasFocus) {
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
FocusHighlightHandler.java | 30 * @param hasFocus True if focus is gained; false otherwise. 33 void onItemFocused(View view, boolean hasFocus);
|
/frameworks/base/core/tests/coretests/src/android/widget/listview/focus/ |
AdjacentListsWithAdjacentISVsInsideTest.java | 55 assertTrue(mLeftListView.hasFocus()); 69 assertTrue(mLeftListView.hasFocus()); 83 assertTrue(mLeftListView.hasFocus()); 88 assertTrue("mRightListView.hasFocus()", mRightListView.hasFocus());
|
/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/ |
FocusHandler.java | 40 void onFocusChange(View v, boolean hasFocus);
|
/cts/tests/app/app/src/android/app/stubs/ |
KeyboardShortcutsActivity.java | 57 public void onWindowFocusChanged(boolean hasFocus) { 58 if (!hasFocus) { 66 super.onWindowFocusChanged(hasFocus);
|
/frameworks/support/v17/leanback/tests/java/android/support/v17/leanback/widget/picker/ |
DatePickerTest.java | 102 assertThat("TextView above should have focus initially", mViewAbove.hasFocus(), is(true)); 111 mDatePickerInnerView.getChildAt(0).hasFocus(), is(true)); 117 mDatePickerInnerView.getChildAt(2).hasFocus(), is(true)); 122 mDatePickerInnerView.getChildAt(4).hasFocus(), is(true)); 143 mDatePickerInnerView.getChildAt(0).hasFocus(), is(true)); 151 mDatePickerInnerView.getChildAt(4).hasFocus(), is(true)); 161 mDatePickerInnerView.getChildAt(4).hasFocus(), is(true)); 173 assertThat("TextView above should have focus initially.", mViewAbove.hasFocus(), is(true)); 179 mViewBelow.hasFocus(), is(true)); 195 public void onFocusChange(View v, boolean hasFocus) { [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/common/layout/ |
EditTextRule.java | 67 final boolean hasFocus = hasFocus(selectedNode); 68 final String label = hasFocus ? "Clear Focus" : "Request Focus"; 84 if (!hasFocus) { 98 private static boolean hasFocus(INode node) {
|
/frameworks/base/core/tests/coretests/src/android/view/ |
VisibilityTest.java | 68 assertTrue(mVisible.hasFocus()); 74 assertTrue(mInvisible.hasFocus()); 89 assertTrue(mGone.hasFocus()); 103 assertTrue(mGone.hasFocus()); 123 assertTrue(mGone.hasFocus()); 143 assertTrue(mInvisible.hasFocus()); 163 assertTrue(mInvisible.hasFocus());
|
/frameworks/base/core/java/android/widget/ |
ZoomControls.java | 106 public boolean hasFocus() { 107 return mZoomIn.hasFocus() || mZoomOut.hasFocus();
|