/packages/apps/Car/RotaryController/src/com/android/car/rotary/ |
D | Utils.java | 73 static void recycleNode(@Nullable AccessibilityNodeInfo node) { in recycleNode() argument 74 if (node != null) { in recycleNode() 75 node.recycle(); in recycleNode() 81 for (AccessibilityNodeInfo node : nodes) { in recycleNodes() 82 recycleNode(node); in recycleNodes() 89 for (AccessibilityNodeInfo node : nodes) { in recycleNodes() 90 recycleNode(node); in recycleNodes() 100 static AccessibilityNodeInfo refreshNode(@Nullable AccessibilityNodeInfo node) { in refreshNode() argument 101 if (node == null) { in refreshNode() 104 boolean succeeded = node.refresh(); in refreshNode() [all …]
|
D | TreeTraverser.java | 43 AccessibilityNodeInfo findNodeOrAncestor(@NonNull AccessibilityNodeInfo node, in findNodeOrAncestor() argument 45 return findNodeOrAncestor(node, /* stopPredicate= */ null, targetPredicate); in findNodeOrAncestor() 57 AccessibilityNodeInfo findNodeOrAncestor(@NonNull AccessibilityNodeInfo node, in findNodeOrAncestor() argument 60 AccessibilityNodeInfo currentNode = copyNode(node); in findNodeOrAncestor() 80 AccessibilityNodeInfo depthFirstSearch(@NonNull AccessibilityNodeInfo node, in depthFirstSearch() argument 82 return depthFirstSearch(node, /* skipPredicate= */ null, targetPredicate); in depthFirstSearch() 94 AccessibilityNodeInfo depthFirstSearch(@NonNull AccessibilityNodeInfo node, in depthFirstSearch() argument 97 if (skipPredicate != null && skipPredicate.test(node)) { in depthFirstSearch() 100 if (targetPredicate.test(node)) { in depthFirstSearch() 101 return copyNode(node); in depthFirstSearch() [all …]
|
D | Navigator.java | 99 boolean isHostNode(@NonNull AccessibilityNodeInfo node) { in isHostNode() argument 100 return mSurfaceViewHelper.isHostNode(node); in isHostNode() 104 boolean isClientNode(@NonNull AccessibilityNodeInfo node) { in isClientNode() argument 105 return mSurfaceViewHelper.isClientNode(node); in isClientNode() 237 AccessibilityNodeInfo getRoot(@NonNull AccessibilityNodeInfo node) { in getRoot() argument 240 if (isHostNode(node)) { in getRoot() 241 AccessibilityNodeInfo child = mNodeCopier.copy(node); in getRoot() 242 AccessibilityNodeInfo parent = node.getParent(); in getRoot() 253 AccessibilityWindowInfo window = node.getWindow(); in getRoot() 263 AccessibilityNodeInfo child = mNodeCopier.copy(node); in getRoot() [all …]
|
/packages/apps/Car/RotaryController/tests/unit/src/com/android/car/rotary/ |
D | TreeTraverserTest.java | 107 /* stopPredicate= */ null, /* targetPredicate= */ node -> node.equals(mNode0)); in testFindNodeOrAncestor() 113 /* targetPredicate= */ node -> node.equals(mNode0)); in testFindNodeOrAncestor() 119 /* targetPredicate= */ node -> node.equals(mNode0)); in testFindNodeOrAncestor() 125 /* targetPredicate= */ node -> node.equals(mNode6)); in testFindNodeOrAncestor() 131 node -> node.equals(mNode1), in testFindNodeOrAncestor() 132 /* targetPredicate= */ node -> node.equals(mNode0)); in testFindNodeOrAncestor() 138 node -> node.equals(mNode0), in testFindNodeOrAncestor() 139 /* targetPredicate= */ node -> node.equals(mNode0)); in testFindNodeOrAncestor() 163 node -> { in testDepthFirstSearch() 164 targetPredicateCalledWithNodes.add(new AccessibilityNodeInfo(node)); in testDepthFirstSearch() [all …]
|
D | NodeBuilderTest.java | 61 AccessibilityNodeInfo node = mNodeBuilder.build(); in testBuildDefaultNode() local 62 assertThat(node.isFocusable()).isTrue(); in testBuildDefaultNode() 63 assertThat(node.isFocused()).isFalse(); in testBuildDefaultNode() 64 assertThat(node.isVisibleToUser()).isTrue(); in testBuildDefaultNode() 65 assertThat(node.refresh()).isTrue(); in testBuildDefaultNode() 66 assertThat(node.isEnabled()).isTrue(); in testBuildDefaultNode() 67 assertThat(node.isScrollable()).isFalse(); in testBuildDefaultNode() 69 node.getBoundsInParent(boundsInParent); in testBuildDefaultNode() 72 node.getBoundsInScreen(boundsInScreen); in testBuildDefaultNode() 74 assertThat(node.getBoundsInScreen()).isEqualTo(NodeBuilder.DEFAULT_BOUNDS); in testBuildDefaultNode() [all …]
|
D | NodeBuilder.java | 115 AccessibilityNodeInfo node = mock(AccessibilityNodeInfo.class); in build() local 116 when(node.getWindow()).thenReturn(builder.mWindow); in build() 117 when(node.getWindowId()).thenReturn(builder.mWindowId); in build() 118 when(node.getParent()).thenReturn( in build() 168 when(node.getPackageName()).thenReturn(builder.mPackageName); in build() 169 when(node.getClassName()).thenReturn(builder.mClassName); in build() 174 }).when(node).getBoundsInParent(any(Rect.class)); in build() 179 }).when(node).getBoundsInScreen(any(Rect.class)); in build() 180 when(node.getBoundsInScreen()).thenReturn(builder.mBoundsInScreen); in build() 181 when(node.isFocusable()).thenReturn(builder.mFocusable); in build() [all …]
|
D | NavigatorTest.java | 117 assertThat(target.node).isEqualTo(button2); in testFindRotateTarget() 120 Utils.recycleNode(target.node); in testFindRotateTarget() 124 assertThat(target.node).isEqualTo(button3); in testFindRotateTarget() 127 Utils.recycleNode(target.node); in testFindRotateTarget() 271 assertThat(target.node).isEqualTo(text2); in testFindRotateTargetDoesNotSkipOffscreenNode() 272 Utils.recycleNode(target.node); in testFindRotateTargetDoesNotSkipOffscreenNode() 281 assertThat(target.node).isEqualTo(text3); in testFindRotateTargetDoesNotSkipOffscreenNode() 282 Utils.recycleNode(target.node); in testFindRotateTargetDoesNotSkipOffscreenNode() 315 assertThat(target.node).isEqualTo(button3); in testFindRotateTargetSkipNodeThatCannotPerformFocus() 317 Utils.recycleNode(target.node); in testFindRotateTargetSkipNodeThatCannotPerformFocus() [all …]
|
D | MockNodeCopierProvider.java | 31 AccessibilityNodeInfo copy(@Nullable AccessibilityNodeInfo node) { 32 if (isMock(node)) { 33 return node; 35 return node == null ? null : AccessibilityNodeInfo.obtain(node);
|
/packages/providers/MediaProvider/jni/ |
D | node_test.cpp | 12 using mediaprovider::fuse::node; 22 uint32_t GetRefCount(node* node) { return node->refcount_; } in GetRefCount() argument 28 static void destroy(node* node) { delete node; } in destroy() argument 30 static void acquire(node* node) { node->Acquire(); } in acquire() argument 32 typedef std::unique_ptr<node, decltype(&NodeTest::destroy)> unique_node_ptr; 34 unique_node_ptr CreateNode(node* parent, const std::string& path) { in CreateNode() 35 return unique_node_ptr(node::Create(parent, path, &lock_, &tracker_), &NodeTest::destroy); in CreateNode() 39 node::NodeCompare cmp; 43 unique_node_ptr node = CreateNode(nullptr, "/path"); in TEST_F() local 45 ASSERT_EQ("/path", node->GetName()); in TEST_F() [all …]
|
D | node-inl.h | 73 class node; variable 83 const node* node = reinterpret_cast<const class node*>(ino); in CheckTracked() local 85 CHECK(active_nodes_.find(node) != active_nodes_.end()); in CheckTracked() 89 void NodeDeleted(const node* node) { in NodeDeleted() argument 92 LOG(DEBUG) << "Node: " << reinterpret_cast<uintptr_t>(node) << " deleted."; in NodeDeleted() 94 CHECK(active_nodes_.find(node) != active_nodes_.end()); in NodeDeleted() 95 active_nodes_.erase(node); in NodeDeleted() 99 void NodeCreated(const node* node) { in NodeCreated() argument 102 LOG(DEBUG) << "Node: " << reinterpret_cast<uintptr_t>(node) << " created."; in NodeCreated() 104 CHECK(active_nodes_.find(node) == active_nodes_.end()); in NodeCreated() [all …]
|
D | FuseDaemon.cpp | 72 using mediaprovider::fuse::node; 242 root(node::CreateRoot(_path, &lock, &tracker)), in fuse() 246 inline bool IsRoot(const node* node) const { return node == root; } in IsRoot() 259 inline node* FromInode(__u64 inode) { in FromInode() 264 return node::FromInode(inode, &tracker); in FromInode() 267 inline __u64 ToInode(node* node) const { in ToInode() 268 if (IsRoot(node)) { in ToInode() 272 return node::ToInode(node); in ToInode() 279 node* const root; 300 static inline string get_name(node* n) { in get_name() [all …]
|
D | node.cpp | 44 void node::BuildPathForNodeRecursive(bool safe, const node* node, std::stringstream* path) const { in BuildPathForNodeRecursive() argument 45 if (node->parent_) { in BuildPathForNodeRecursive() 46 BuildPathForNodeRecursive(safe, node->parent_, path); in BuildPathForNodeRecursive() 49 if (safe && node->parent_) { in BuildPathForNodeRecursive() 50 (*path) << reinterpret_cast<uintptr_t>(node); in BuildPathForNodeRecursive() 52 (*path) << node->GetName(); in BuildPathForNodeRecursive() 55 if (node != this) { in BuildPathForNodeRecursive() 61 std::string node::BuildPath() const { in BuildPath() 69 std::string node::BuildSafePath() const { in BuildSafePath() 77 const node* node::LookupAbsolutePath(const node* root, const std::string& absolute_path) { in LookupAbsolutePath() [all …]
|
/packages/apps/Dialer/java/com/android/dialer/searchfragment/cp2/ |
D | ContactTernarySearchTree.java | 42 private Node put(Node node, String key, int value, int position) { in put() argument 44 if (node == null) { in put() 45 node = new Node(); in put() 46 node.key = c; in put() 48 if (c < node.key) { in put() 49 node.left = put(node.left, key, value, position); in put() 50 } else if (c > node.key) { in put() 51 node.right = put(node.right, key, value, position); in put() 53 node.values.add(value); in put() 54 node.mid = put(node.mid, key, value, position + 1); in put() [all …]
|
/packages/services/Car/evs/apps/default/ |
D | ConfigManager.cpp | 97 for (auto&& node : displayArray) { in initialize() 99 info.port = node.get("displayPort", 0).asUInt(); in initialize() 100 info.function = node.get("function", "").asCString(); in initialize() 101 info.frontRangeInCarSpace = node.get("frontRange", -1).asFloat(); in initialize() 102 info.rearRangeInCarSpace = node.get("rearRange", -1).asFloat(); in initialize() 135 for (auto&& node: cameraArray) { in initialize() 137 Json::Value nameNode = node.get("cameraId", "MISSING"); in initialize() 140 Json::Value usageNode = node.get("function", ""); in initialize() 143 float yaw = node.get("yaw", 0).asFloat(); in initialize() 144 float pitch = node.get("pitch", 0).asFloat(); in initialize() [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/util/ |
D | ProfileData.java | 80 Node node = mRoot; in addSample() local 82 if (node.children == null) { in addSample() 83 node.children = new ArrayList<Node>(); in addSample() 87 ArrayList<Node> children = node.children; in addSample() 93 children.add(new Node(node, id)); in addSample() 96 node = children.get(j); in addSample() 99 node.sampleCount++; in addSample() 131 private void writeOneStack(Node node, int depth) throws IOException { in writeOneStack() argument 132 writeInt(node.sampleCount); in writeOneStack() 135 writeInt(node.id); in writeOneStack() [all …]
|
D | LinkedNode.java | 28 public void insert(LinkedNode node) { in insert() argument 29 node.mNext = mNext; in insert() 30 mNext.mPrev = node; in insert() 31 node.mPrev = this; in insert() 32 mNext = node; in insert() 46 public void insertLast(T node) { in insertLast() argument 47 mHead.mPrev.insert(node); in insertLast() 58 public T nextOf(T node) { in nextOf() argument 59 return (T) (node.mNext == mHead ? null : node.mNext); in nextOf() 62 public T previousOf(T node) { in previousOf() argument [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcpcontroller/ |
D | BrowseTree.java | 194 synchronized boolean addChild(BrowseNode node) { in addChild() argument 195 if (node != null) { in addChild() 196 node.mParent = this; in addChild() 198 node.mBrowseScope = this.mBrowseScope; in addChild() 200 mChildren.add(node); in addChild() 201 mBrowseMap.put(node.getID(), node); in addChild() local 205 String imageUuid = node.getCoverArtUuid(); in addChild() 207 indicateCoverArtUsed(node.getID(), imageUuid); in addChild() 214 synchronized void removeChild(BrowseNode node) { in removeChild() argument 215 mChildren.remove(node); in removeChild() [all …]
|
D | AvrcpControllerStateMachine.java | 374 private void notifyChanged(BrowseTree.BrowseNode node) { in notifyChanged() argument 377 int scope = node.getScope(); in notifyChanged() 381 BluetoothMediaBrowserService.notifyChanged(node); in notifyChanged() 391 void requestContents(BrowseTree.BrowseNode node) { in requestContents() argument 392 sendMessage(MESSAGE_GET_FOLDER_ITEMS, node); in requestContents() 393 logD("Fetching " + node); in requestContents() 396 public void playItem(BrowseTree.BrowseNode node) { in playItem() argument 397 sendMessage(MESSAGE_PLAY_ITEM, node); in playItem() 623 for (BrowseTree.BrowseNode node : nodes) { in processMessage() 624 notifyChanged(node); in processMessage() [all …]
|
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/policy/ |
D | weighting.cpp | 30 static inline void profile(const CorrectionType correctionType, DicNode *const node) { in profile() argument 34 PROF_OMISSION(node->mProfiler); in profile() 37 PROF_ADDITIONAL_PROXIMITY(node->mProfiler); in profile() 40 PROF_SUBSTITUTION(node->mProfiler); in profile() 43 PROF_NEW_WORD(node->mProfiler); in profile() 46 PROF_MATCH(node->mProfiler); in profile() 49 PROF_COMPLETION(node->mProfiler); in profile() 52 PROF_TERMINAL(node->mProfiler); in profile() 55 PROF_TERMINAL_INSERTION(node->mProfiler); in profile() 58 PROF_SPACE_SUBSTITUTION(node->mProfiler); in profile() [all …]
|
/packages/services/Car/evs/support_library/ |
D | ConfigManager.cpp | 130 for (auto&& node: cameraArray) { in initialize() 132 Json::Value nameNode = node.get("cameraId", "MISSING"); in initialize() 135 Json::Value usageNode = node.get("function", ""); in initialize() 138 float yaw = node.get("yaw", 0).asFloat(); in initialize() 139 float pitch = node.get("pitch", 0).asFloat(); in initialize() 140 float hfov = node.get("hfov", 0).asFloat(); in initialize() 141 float vfov = node.get("vfov", 0).asFloat(); in initialize() 176 info.position[0] = node.get("x", 0).asFloat(); in initialize() 177 info.position[1] = node.get("y", 0).asFloat(); in initialize() 178 info.position[2] = node.get("z", 0).asFloat(); in initialize()
|
/packages/apps/Car/tests/TestMediaApp/src/com/android/car/media/testmediaapp/ |
D | TmaBrowser.java | 205 TmaMediaItem node; in getMediaItemsWithDelay() 207 node = null; in getMediaItemsWithDelay() 209 node = getRoot(); in getMediaItemsWithDelay() 211 node = mLibrary.getMediaItemById(parentId); in getMediaItemsWithDelay() 214 if (node == null) { in getMediaItemsWithDelay() 219 addSearchResults(node, pat.matcher(""), hits, MAX_SEARCH_DEPTH); in getMediaItemsWithDelay() 222 List<TmaMediaItem> children = node.getChildren(); in getMediaItemsWithDelay() 228 int selfUpdateDelay = node.getSelfUpdateDelay(); in getMediaItemsWithDelay() 229 int toShow = (selfUpdateDelay > 0) ? 1 + node.mRevealCounter : childrenCount; in getMediaItemsWithDelay() 241 node.mRevealCounter = (node.mRevealCounter + 1) % (childrenCount); in getMediaItemsWithDelay() [all …]
|
/packages/apps/Settings/src/com/android/settings/widget/ |
D | LabeledSeekBar.java | 166 int virtualViewId, AccessibilityNodeInfoCompat node) { in onPopulateNodeForVirtualView() argument 167 node.setClassName(RadioButton.class.getName()); in onPopulateNodeForVirtualView() 168 node.setBoundsInParent(getBoundsInParentFromVirtualViewId(virtualViewId)); in onPopulateNodeForVirtualView() 169 node.addAction(AccessibilityNodeInfoCompat.ACTION_CLICK); in onPopulateNodeForVirtualView() 170 node.setContentDescription(mLabels[virtualViewId]); in onPopulateNodeForVirtualView() 171 node.setClickable(true); in onPopulateNodeForVirtualView() 172 node.setCheckable(true); in onPopulateNodeForVirtualView() 173 node.setChecked(virtualViewId == LabeledSeekBar.this.getProgress()); in onPopulateNodeForVirtualView() 184 protected void onPopulateNodeForHost(AccessibilityNodeInfoCompat node) { in onPopulateNodeForHost() argument 185 node.setClassName(RadioGroup.class.getName()); in onPopulateNodeForHost()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/widget/ |
D | LabeledSeekBar.java | 166 int virtualViewId, AccessibilityNodeInfoCompat node) { in onPopulateNodeForVirtualView() argument 167 node.setClassName(RadioButton.class.getName()); in onPopulateNodeForVirtualView() 168 node.setBoundsInParent(getBoundsInParentFromVirtualViewId(virtualViewId)); in onPopulateNodeForVirtualView() 169 node.addAction(AccessibilityNodeInfoCompat.ACTION_CLICK); in onPopulateNodeForVirtualView() 170 node.setContentDescription(mLabels[virtualViewId]); in onPopulateNodeForVirtualView() 171 node.setClickable(true); in onPopulateNodeForVirtualView() 172 node.setCheckable(true); in onPopulateNodeForVirtualView() 173 node.setChecked(virtualViewId == LabeledSeekBar.this.getProgress()); in onPopulateNodeForVirtualView() 184 protected void onPopulateNodeForHost(AccessibilityNodeInfoCompat node) { in onPopulateNodeForHost() argument 185 node.setClassName(RadioGroup.class.getName()); in onPopulateNodeForHost()
|
/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/androidTest/java/com/android/car/ui/ |
D | FocusAreaTest.java | 437 AccessibilityNodeInfo node = mFocusArea1.createAccessibilityNodeInfo(); in testBoundsOffset() local 438 assertBoundsOffset(node, left, top, right, bottom); in testBoundsOffset() 439 node.recycle(); in testBoundsOffset() 454 AccessibilityNodeInfo node = mFocusArea1.createAccessibilityNodeInfo(); in testBoundsOffsetWithRtl() local 455 assertBoundsOffset(node, left, top, right, bottom); in testBoundsOffsetWithRtl() 456 node.recycle(); in testBoundsOffsetWithRtl() 463 AccessibilityNodeInfo node = mFocusArea1.createAccessibilityNodeInfo(); in testSetBoundsOffset() local 464 assertBoundsOffset(node, 50, 60, 70, 80); in testSetBoundsOffset() 465 node.recycle(); in testSetBoundsOffset() 476 AccessibilityNodeInfo node = mFocusArea2.createAccessibilityNodeInfo(); in testHighlightPadding() local [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/accessibility/ |
D | DragAndDropAccessibilityDelegate.java | 115 protected void onPopulateNodeForVirtualView(int id, AccessibilityNodeInfoCompat node) { in onPopulateNodeForVirtualView() argument 120 node.setContentDescription(getLocationDescriptionForIconDrop(id)); in onPopulateNodeForVirtualView() 121 node.setBoundsInParent(getItemBounds(id)); in onPopulateNodeForVirtualView() 123 node.addAction(AccessibilityNodeInfoCompat.ACTION_CLICK); in onPopulateNodeForVirtualView() 124 node.setClickable(true); in onPopulateNodeForVirtualView() 125 node.setFocusable(true); in onPopulateNodeForVirtualView()
|