HomeSort by relevance Sort by last modified time
    Searched refs:nodeArray (Results 1 - 6 of 6) sorted by null

  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/makedict/
FusionDictionary.java 616 private static int findInsertionIndex(final PtNodeArray nodeArray, int character) {
617 final ArrayList<PtNode> data = nodeArray.mData;
628 * @param nodeArray the node array to search in.
632 private static int findIndexOfChar(final PtNodeArray nodeArray, int character) {
633 final int insertionIndex = findInsertionIndex(nodeArray, character);
634 if (nodeArray.mData.size() <= insertionIndex) return CHARACTER_NOT_FOUND_INDEX;
635 return character == nodeArray.mData.get(insertionIndex).mChars[0] ? insertionIndex
643 public static PtNode findWordInTree(PtNodeArray nodeArray, final String string) {
650 int indexOfGroup = findIndexOfChar(nodeArray, codePoints[index]);
652 currentPtNode = nodeArray.mData.get(indexOfGroup)
    [all...]
BinaryDictEncoderUtils.java 83 * @param nodeArray the nodeArray
86 private static int getPtNodeCountSize(final PtNodeArray nodeArray) {
87 return BinaryDictIOUtils.getPtNodeCountSize(nodeArray.mData.size());
420 for (final PtNodeArray nodeArray : flatNodes) {
421 nodeArray.mCachedAddressBeforeUpdate = nodeArrayOffset;
422 int nodeCountSize = getPtNodeCountSize(nodeArray);
424 for (final PtNode ptNode : nodeArray.mData) {
429 nodeArrayOffset += nodeArray.mCachedSize;
440 for (final PtNodeArray nodeArray : flatNodes)
    [all...]
Ver4DictEncoder.java 325 for (PtNodeArray nodeArray : flatNodes) {
326 BinaryDictEncoderUtils.writePlacedPtNodeArray(dict, this, nodeArray, formatOptions);
405 for (final PtNodeArray nodeArray : flatNodes) {
406 for (final PtNode ptNode : nodeArray.mData) {
418 for (final PtNodeArray nodeArray : flatNodes) {
419 for (final PtNode ptNode : nodeArray.mData) {
452 for (final PtNodeArray nodeArray : flatNodes) {
453 for (final PtNode ptNode : nodeArray.mData) {
BinaryDictDecoderUtils.java 505 final PtNodeArray nodeArray = new PtNodeArray(nodeArrayContents);
506 nodeArray.mCachedAddressBeforeUpdate = nodeArrayOriginPos;
507 nodeArray.mCachedAddressAfterUpdate = nodeArrayOriginPos;
508 reverseNodeArrayMap.put(nodeArray.mCachedAddressAfterUpdate, nodeArray);
509 return nodeArray;
Ver3DictEncoder.java 105 for (PtNodeArray nodeArray : flatNodes) {
106 BinaryDictEncoderUtils.writePlacedPtNodeArray(dict, this, nodeArray, formatOptions);
  /libcore/luni/src/test/java/libcore/java/util/prefs/
OldAbstractPreferencesTest.java 796 String[] nodeArray = new String[]{"First node", "Second node", "Last node"};
799 for (i = 0; i < nodeArray.length; i++) {
800 pref.node(nodeArray[i]);
805 assertEquals(nodeArray.length, str.length);
806 for(i = 0; i < nodeArray.length; i++) {
807 pref.node(nodeArray[i]).removeNode();
809 assertEquals(nodeArray.length - i - 1, str.length);
    [all...]

Completed in 328 milliseconds