Home
last modified time | relevance | path

Searched refs:node (Results 1 – 25 of 47) sorted by relevance

12

/packages/apps/Dialer/java/com/android/dialer/searchfragment/cp2/
DContactTernarySearchTree.java42 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/apps/Launcher3/src/com/android/launcher3/logging/
DDumpTargetWrapper.java42 DumpTarget node; field in DumpTargetWrapper
51 node = newContainerTarget(containerType, id); in DumpTargetWrapper()
56 node = newItemTarget(info); in DumpTargetWrapper()
60 return node; in getDumpTarget()
69 list.add(node); in getFlattenedList()
74 list.add(node); // add a delimiter empty object in getFlattenedList()
147 return node; in writeToDumpTarget()
150 node.component = ((WorkspaceItemInfo) info).getDeepShortcutId(); in writeToDumpTarget()
153 node.component = cmp == null ? "" : cmp.flattenToString(); in writeToDumpTarget()
155 node.packageName = info.getTargetComponent() == null? "": in writeToDumpTarget()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/util/
DProfileData.java80 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 …]
DLinkedNode.java28 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/
DBrowseTree.java194 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 …]
DAvrcpControllerStateMachine.java374 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 …]
DBluetoothMediaBrowserService.java153 private void updateNowPlayingQueue(BrowseTree.BrowseNode node) { in updateNowPlayingQueue() argument
154 List<MediaItem> songList = node.getContents(); in updateNowPlayingQueue()
171 static synchronized void notifyChanged(BrowseTree.BrowseNode node) { in notifyChanged() argument
173 if (node.getScope() == AvrcpControllerService.BROWSE_SCOPE_NOW_PLAYING) { in notifyChanged()
174 sBluetoothMediaBrowserService.updateNowPlayingQueue(node); in notifyChanged()
176 sBluetoothMediaBrowserService.notifyChildrenChanged(node.getID()); in notifyChanged()
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/policy/
Dweighting.cpp30 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/app/
DConfigManager.cpp126 for (auto&& node: cameraArray) { in initialize()
128 Json::Value nameNode = node.get("cameraId", "MISSING"); in initialize()
131 Json::Value usageNode = node.get("function", ""); in initialize()
134 float yaw = node.get("yaw", 0).asFloat(); in initialize()
135 float pitch = node.get("pitch", 0).asFloat(); in initialize()
136 float hfov = node.get("hfov", 0).asFloat(); in initialize()
137 float vfov = node.get("vfov", 0).asFloat(); in initialize()
172 info.position[0] = node.get("x", 0).asFloat(); in initialize()
173 info.position[1] = node.get("y", 0).asFloat(); in initialize()
174 info.position[2] = node.get("z", 0).asFloat(); in initialize()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/widget/
DLabeledSeekBar.java166 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/Settings/src/com/android/settings/widget/
DLabeledSeekBar.java166 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/tests/TestMediaApp/src/com/android/car/media/testmediaapp/
DTmaBrowser.java190 TmaMediaItem node; in getMediaItemsWithDelay()
192 node = null; in getMediaItemsWithDelay()
194 node = mLibrary.getRoot(mPrefs.mRootNodeType.getValue()); in getMediaItemsWithDelay()
196 node = mLibrary.getMediaItemById(parentId); in getMediaItemsWithDelay()
199 if (node == null) { in getMediaItemsWithDelay()
204 addSearchResults(node, pat.matcher(""), hits, MAX_SEARCH_DEPTH); in getMediaItemsWithDelay()
207 List<MediaItem> items = new ArrayList<>(node.mChildren.size()); in getMediaItemsWithDelay()
208 for (TmaMediaItem child : node.mChildren) { in getMediaItemsWithDelay()
222 private void addSearchResults(@Nullable TmaMediaItem node, Matcher matcher, in addSearchResults() argument
224 if (node == null || currentDepth <= 0) { in addSearchResults()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/accessibility/
DDragAndDropAccessibilityDelegate.java113 protected void onPopulateNodeForVirtualView(int id, AccessibilityNodeInfoCompat node) { in onPopulateNodeForVirtualView() argument
118 node.setContentDescription(getLocationDescriptionForIconDrop(id)); in onPopulateNodeForVirtualView()
119 node.setBoundsInParent(getItemBounds(id)); in onPopulateNodeForVirtualView()
121 node.addAction(AccessibilityNodeInfoCompat.ACTION_CLICK); in onPopulateNodeForVirtualView()
122 node.setClickable(true); in onPopulateNodeForVirtualView()
123 node.setFocusable(true); in onPopulateNodeForVirtualView()
DWorkspaceAccessibilityHelper.java139 protected void onPopulateNodeForVirtualView(int id, AccessibilityNodeInfoCompat node) { in onPopulateNodeForVirtualView() argument
140 super.onPopulateNodeForVirtualView(id, node); in onPopulateNodeForVirtualView()
149 node.getBoundsInParent(mTempRect); in onPopulateNodeForVirtualView()
154 node.setBoundsInScreen(mTempRect); in onPopulateNodeForVirtualView()
/packages/apps/Launcher3/src/com/android/launcher3/views/
DScrimView.java407 AccessibilityNodeInfoCompat node) { in onPopulateNodeForVirtualView() argument
408 node.setContentDescription(getContext().getString(R.string.all_apps_button_label)); in onPopulateNodeForVirtualView()
409 node.setBoundsInParent(mDragHandleBounds); in onPopulateNodeForVirtualView()
414 node.setBoundsInScreen(mTempRect); in onPopulateNodeForVirtualView()
416 node.addAction(AccessibilityNodeInfoCompat.ACTION_CLICK); in onPopulateNodeForVirtualView()
417 node.setClickable(true); in onPopulateNodeForVirtualView()
418 node.setFocusable(true); in onPopulateNodeForVirtualView()
423 node.addAction( in onPopulateNodeForVirtualView()
426 node.addAction(new AccessibilityActionCompat(WIDGETS, context.getText(WIDGETS))); in onPopulateNodeForVirtualView()
427 node.addAction(new AccessibilityActionCompat(SETTINGS, context.getText(SETTINGS))); in onPopulateNodeForVirtualView()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/
DBinaryDictEncoderUtils.java124 for (PtNode node : ptNodeArray.mData) { in calculatePtNodeArrayMaximumSize()
125 final int nodeSize = getPtNodeMaximumSize(node, codePointToOneByteCodeMap); in calculatePtNodeArrayMaximumSize()
126 node.mCachedSize = nodeSize; in calculatePtNodeArrayMaximumSize()
544 /* package */ static byte makePtNodeFlags(final PtNode node, final int childrenOffset) { in makePtNodeFlags() argument
545 return (byte) makePtNodeFlags(node.mChars.length > 1, node.isTerminal(), in makePtNodeFlags()
547 node.mBigrams != null && !node.mBigrams.isEmpty(), in makePtNodeFlags()
548 node.mIsNotAWord, node.mIsPossiblyOffensive); in makePtNodeFlags()
/packages/modules/DnsResolver/
Dres_cache.cpp944 Entry* node = *pnode; in flush() local
945 *pnode = node->hlink; in flush()
946 entry_free(node); in flush()
1109 Entry* node = *pnode; in _cache_lookup_p() local
1111 if (node == NULL) break; in _cache_lookup_p()
1113 if (node->hash == key->hash && entry_equals(node, key)) break; in _cache_lookup_p()
1115 pnode = &node->hlink; in _cache_lookup_p()
1366 Entry* node = nullptr; in resolv_gethostbyaddr_from_cache() local
1383 for (node = cache->mru_list.mru_next; node != nullptr && node != &cache->mru_list; in resolv_gethostbyaddr_from_cache()
1384 node = node->mru_next) { in resolv_gethostbyaddr_from_cache()
[all …]
/packages/apps/Test/connectivity/sl4n/rapidjson/doc/diagram/
Dsimpledom.dot9 node [fontname="Inconsolata, Consolas", fontsize=10, penwidth=0.5]
13 node [shape=record, fontsize="8", margin="0.04", height=0.2, color=gray]
19 node [shape="box", style="filled", fillcolor="gray95"]
30 node [shape=Mrecord, style=filled, colorscheme=spectral7]
Dmove1.dot9 node [fontname="Inconsolata, Consolas", fontsize=10, penwidth=0.5]
19 node [shape=Mrecord, style=filled, colorscheme=spectral7]
37 node [shape=Mrecord, style=filled, colorscheme=spectral7]
Diterative-parser-states-diagram.dot7 node [fontname="Inconsolata, Consolas", fontsize=10, penwidth=0.5]
10 node [shape = doublecircle]; Start; Finish;
11 node [shape = box; style = "rounded, filled"; fillcolor=white ];
Dmove3.dot10 node [fontname="Inconsolata, Consolas", fontsize=10, penwidth=0.5]
20 node [shape=Mrecord, style=filled, colorscheme=spectral7]
43 node [shape=Mrecord, style=filled, colorscheme=spectral7]
Dmove2.dot9 node [fontname="Inconsolata, Consolas", fontsize=10, penwidth=0.5]
19 node [shape=Mrecord, style=filled, colorscheme=spectral7]
42 node [shape=Mrecord, style=filled, colorscheme=spectral7]
/packages/apps/Launcher3/tests/src/com/android/launcher3/util/
DLauncherLayoutBuilder.java107 for (Pair<String, HashMap<String, Object>> node : nodes) { in writeNodes()
110 serializer.startTag(null, node.first); in writeNodes()
111 for (Map.Entry<String, Object> attr : node.second.entrySet()) { in writeNodes()
122 serializer.endTag(null, node.first); in writeNodes()
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/dicnode/
Ddic_node_priority_queue.h87 DicNode *node = mDicNodesQueue.top(); in copyPop() local
89 DicNodeUtils::initByCopy(node, dest); in copyPop()
91 mDicNodePool.placeBackInstance(node); in copyPop()
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DPathMatcher.java80 Node node = mMap.get(segment); in addChild() local
81 if (node != null) return node; in addChild()

12