Home
last modified time | relevance | path

Searched refs:hasFocus (Results 1 – 25 of 48) sorted by relevance

12

/third_party/flutter/flutter/packages/flutter/test/widgets/
Dfocus_traversal_test.dart45 expect(firstFocusNode.hasFocus, isTrue);
46 expect(secondFocusNode.hasFocus, isFalse);
47 expect(scope.hasFocus, isTrue);
109 expect(firstFocusNode.hasFocus, isTrue);
110 expect(secondFocusNode.hasFocus, isFalse);
111 expect(scope.hasFocus, isTrue);
126 expect(firstFocusNode.hasFocus, isFalse);
127 expect(secondFocusNode.hasFocus, isTrue);
128 expect(scope.hasFocus, isTrue);
143 expect(firstFocusNode.hasFocus, isTrue);
[all …]
Dfocus_scope_test.dart35 …String get label => focusNode.hasFocus ? '${widget.name.toUpperCase()} FOCUSED' : widget.name.toLo…
79 expect(key.currentState.focusNode.hasFocus, isFalse);
84 expect(key.currentState.focusNode.hasFocus, isTrue);
100 expect(keyA.currentState.focusNode.hasFocus, isFalse);
102 expect(keyB.currentState.focusNode.hasFocus, isFalse);
108 expect(keyA.currentState.focusNode.hasFocus, isTrue);
110 expect(keyB.currentState.focusNode.hasFocus, isFalse);
117 expect(keyA.currentState.focusNode.hasFocus, isFalse);
119 expect(keyB.currentState.focusNode.hasFocus, isTrue);
137 expect(keyA.currentState.focusNode.hasFocus, isFalse);
[all …]
Dfocus_manager_test.dart100 expect(scope.hasFocus, isFalse);
101 expect(child1.hasFocus, isFalse);
106 expect(scope.hasFocus, isFalse);
125 expect(scope.hasFocus, isTrue);
126 expect(child1.hasFocus, isTrue);
130 expect(scope.hasFocus, isFalse);
156 expect(parent.hasFocus, isTrue);
158 expect(child1.hasFocus, isTrue);
160 expect(child2.hasFocus, isFalse);
165 expect(parent.hasFocus, isTrue);
[all …]
Dindependent_widget_layout_test.dart204 expect(onscreenFocus.hasFocus, isTrue);
205 expect(offscreenFocus.hasFocus, isTrue);
Deditable_text_show_on_screen_test.dart135 expect(focusNode.hasFocus, isTrue);
185 expect(focusNode.hasFocus, isTrue);
Deditable_text_test.dart755 assert(focusNode.hasFocus);
761 expect(focusNode.hasFocus, true);
788 assert(focusNode.hasFocus);
795 expect(focusNode.hasFocus, true);
828 assert(focusNode.hasFocus);
868 assert(focusNode.hasFocus);
909 assert(focusNode.hasFocus);
947 assert(focusNode.hasFocus);
2156 assert(focusNode.hasFocus);
/third_party/flutter/flutter/packages/flutter/test/cupertino/material/
Dtab_scaffold_test.dart38 expect(focusNodes[0].hasFocus, isTrue);
43 expect(focusNodes[0].hasFocus, isFalse);
44 expect(focusNodes[1].hasFocus, isTrue);
49 expect(focusNodes[0].hasFocus, isTrue);
50 expect(focusNodes[1].hasFocus, isFalse);
87 focusNodes.any((FocusNode node) => node.hasFocus),
94 focusNodes.indexOf(focusNodes.singleWhere((FocusNode node) => node.hasFocus)),
104 focusNodes.indexOf(focusNodes.singleWhere((FocusNode node) => node.hasFocus)),
114 focusNodes.indexOf(focusNodes.singleWhere((FocusNode node) => node.hasFocus)),
/third_party/vk-gl-cts/framework/platform/android/
DtcuAndroidNativeActivity.cpp59 static void onWindowFocusChangedCallback (ANativeActivity* activity, int hasFocus) in onWindowFocusChangedCallback() argument
61 static_cast<tcu::Android::NativeActivity*>(activity->instance)->onWindowFocusChanged(hasFocus); in onWindowFocusChangedCallback()
168 void NativeActivity::onWindowFocusChanged (int hasFocus) in onWindowFocusChanged() argument
170 DE_UNREF(hasFocus); in onWindowFocusChanged()
DtcuAndroidNativeActivity.hpp54 virtual void onWindowFocusChanged (int hasFocus);
/third_party/flutter/skia/platform_tools/android/apps/skar_java/src/main/java/com/google/skar/examples/helloskar/helpers/
DFullScreenHelper.java35 public static void setFullScreenOnWindowFocusChanged(Activity activity, boolean hasFocus) { in setFullScreenOnWindowFocusChanged() argument
36 if (hasFocus) { in setFullScreenOnWindowFocusChanged()
/third_party/flutter/flutter/packages/flutter/lib/src/widgets/
Dfocus_scope.dart16 /// For keyboard events, [onKey] is called if [FocusNode.hasFocus] is true for
29 /// [Focus.hasFocus] from a build method, which also establishes a relationship
92 /// final bool hasFocus = focusNode.hasFocus;
95 /// if (hasFocus) {
106 /// color: hasFocus ? _color : Colors.white,
107 /// child: Text(hasFocus ? "I'm in color! Press R,G,B!" : 'Press to focus'),
237 /// the children of this node, and [FocusNode.hasFocus] can still return true
308 static bool isAt(BuildContext context) => Focus.of(context, nullOk: true)?.hasFocus ?? false;
345 _hasFocus = focusNode.hasFocus;
414 if (_hasFocus != focusNode.hasFocus) {
[all …]
Dfocus_manager.dart153 /// or [FocusScope.of] instead. [Focus.hasFocus] can also be used to establish a
271 /// if (_node.hasFocus != _focused) {
273 /// _focused = _node.hasFocus;
404 /// and [hasFocus] can still return true if this node is the ancestor of a
440 /// [hasFocus] returns true).
514 /// The [hasFocus] accessor is different from [hasPrimaryFocus] in that
515 /// [hasFocus] is true if the node is anywhere in the focus chain, but for
519 /// A node that returns true for [hasFocus] will receive key events if none of
529 bool get hasFocus {
542 /// nearest ancestor [FocusScopeNode] and [hasFocus] is true for all its
[all …]
Draw_keyboard_listener.dart97 if (widget.focusNode.hasFocus)
Deditable_text.dart1031 bool get wantKeepAlive => widget.focusNode.hasFocus;
1273 bool get _hasFocus => widget.focusNode.hasFocus;
1728 hasFocus: _hasFocus,
1794 this.hasFocus,
1830 final bool hasFocus;
1866 hasFocus: hasFocus,
1903 ..hasFocus = hasFocus
/third_party/flutter/skia/platform_tools/android/apps/arcore/src/main/java/org/skia/arcore/
DHelloArActivity.java291 public void onWindowFocusChanged(boolean hasFocus) { in onWindowFocusChanged() argument
292 super.onWindowFocusChanged(hasFocus); in onWindowFocusChanged()
293 if (hasFocus) { in onWindowFocusChanged()
/third_party/flutter/flutter/packages/flutter/test/cupertino/
Dtext_field_test.dart3309 expect(focusNode.hasFocus, false);
3312 expect(focusNode.hasFocus, true);
3315 expect(focusNode.hasFocus, false);
3322 expect(focusNode.hasFocus, true);
3357 expect(focusNode.hasFocus, false);
3360 expect(focusNode.hasFocus, true);
3363 expect(focusNode.hasFocus, false);
3370 expect(focusNode.hasFocus, true);
3405 expect(focusNode.hasFocus, false);
3408 expect(focusNode.hasFocus, true);
[all …]
Dtab_scaffold_test.dart160 expect(focusNodes[0].hasFocus, isTrue);
165 expect(focusNodes[0].hasFocus, isFalse);
166 expect(focusNodes[1].hasFocus, isTrue);
171 expect(focusNodes[0].hasFocus, isTrue);
172 expect(focusNodes[1].hasFocus, isFalse);
206 focusNodes.any((FocusNode node) => node.hasFocus),
213 focusNodes.indexOf(focusNodes.singleWhere((FocusNode node) => node.hasFocus)),
223 focusNodes.indexOf(focusNodes.singleWhere((FocusNode node) => node.hasFocus)),
233 focusNodes.indexOf(focusNodes.singleWhere((FocusNode node) => node.hasFocus)),
/third_party/flutter/flutter/packages/flutter/test/rendering/
Deditable_test.dart525 test('editable hasFocus correctly initialized', () {
538 hasFocus: true,
543 expect(editable.hasFocus, true);
544 editable.hasFocus = false;
545 expect(editable.hasFocus, false);
/third_party/skia/tools/viewer/
DSlideDir.cpp136 bool hasFocus() const { return fState == State::kFocused; } in hasFocus() function in SlideDir::FocusController
383 if (fFocusController->hasFocus()) { in onChar()
400 if (fFocusController->hasFocus()) { in onMouse()
/third_party/flutter/skia/tools/viewer/
DSlideDir.cpp124 bool hasFocus() const { return fState == State::kFocused; } in hasFocus() function in SlideDir::FocusController
371 if (fFocusController->hasFocus()) { in onChar()
388 if (fFocusController->hasFocus()) { in onMouse()
/third_party/flutter/skia/platform_tools/android/apps/skar_java/src/main/java/com/google/skar/examples/helloskar/app/
DHelloCanvasAR.java281 public void onWindowFocusChanged(boolean hasFocus) { in onWindowFocusChanged() argument
282 super.onWindowFocusChanged(hasFocus); in onWindowFocusChanged()
283 FullScreenHelper.setFullScreenOnWindowFocusChanged(this, hasFocus); in onWindowFocusChanged()
/third_party/flutter/flutter/packages/flutter/test/material/
Dsearch_test.dart37 expect(textField.focusNode.hasFocus, isTrue);
159 expect(textField.focusNode.hasFocus, isFalse);
207 expect(textField.focusNode.hasFocus, isFalse);
214 expect(textField.focusNode.hasFocus, isTrue);
240 expect(textField.focusNode.hasFocus, isFalse);
/third_party/flutter/engine/flutter/shell/platform/android/io/flutter/plugin/platform/
DPlatformViewsController.java106 (view, hasFocus) -> {
107 if (hasFocus) {
/third_party/flutter/skia/third_party/externals/sdl/android-project/src/org/libsdl/app/
DSDLActivity.java220 public void onWindowFocusChanged(boolean hasFocus) { in onWindowFocusChanged() argument
221 super.onWindowFocusChanged(hasFocus); in onWindowFocusChanged()
222 Log.v(TAG, "onWindowFocusChanged(): " + hasFocus); in onWindowFocusChanged()
228 SDLActivity.mHasFocus = hasFocus; in onWindowFocusChanged()
229 if (hasFocus) { in onWindowFocusChanged()
/third_party/flutter/flutter/dev/manual_tests/lib/
Draw_keyboard.dart64 if (!_focusNode.hasFocus) {

12