Home
last modified time | relevance | path

Searched refs:root (Results 1 – 25 of 93) sorted by relevance

1234

/packages/inputmethods/LatinIME/native/jni/src/
Dbinary_format.h90 static int getTerminalPosition(const uint8_t *const root, const int *const inWord,
92 static int getWordAtAddress(const uint8_t *const root, const int address, const int maxDepth,
101 static void fillBigramProbabilityToHashMap(const uint8_t *const root, int position,
103 static int getBigramProbability(const uint8_t *const root, int position,
116 static int getBigramListPositionForWordPosition(const uint8_t *const root, int position);
466 AK_FORCE_INLINE int BinaryFormat::getTerminalPosition(const uint8_t *const root, in getTerminalPosition() argument
475 int charGroupCount = BinaryFormat::getGroupCountAndForwardPointer(root, &pos); in getTerminalPosition()
482 const uint8_t flags = BinaryFormat::getFlagsAndForwardPointer(root, &pos); in getTerminalPosition()
483 int character = BinaryFormat::getCodePointAndForwardPointer(root, &pos); in getTerminalPosition()
490 character = BinaryFormat::getCodePointAndForwardPointer(root, &pos); in getTerminalPosition()
[all …]
Dbigram_dictionary.cpp105 const uint8_t *const root = DICT_ROOT; in getBigrams() local
119 bigramFlags = BinaryFormat::getFlagsAndForwardPointer(root, &pos); in getBigrams()
122 const int bigramPos = BinaryFormat::getAttributeAddressAndForwardPointer(root, bigramFlags, in getBigrams()
124 const int length = BinaryFormat::getWordAtAddress(root, bigramPos, MAX_WORD_LENGTH, in getBigrams()
151 const uint8_t *const root = DICT_ROOT; in getBigramListPositionForWord() local
152 int pos = BinaryFormat::getTerminalPosition(root, prevWord, prevWordLength, in getBigramListPositionForWord()
156 const uint8_t flags = BinaryFormat::getFlagsAndForwardPointer(root, &pos); in getBigramListPositionForWord()
159 BinaryFormat::getCodePointAndForwardPointer(root, &pos); in getBigramListPositionForWord()
161 pos = BinaryFormat::skipOtherCharacters(root, pos); in getBigramListPositionForWord()
165 pos = BinaryFormat::skipShortcuts(root, flags, pos); in getBigramListPositionForWord()
[all …]
Dunigram_dictionary.cpp693 const uint8_t *const root, const int startPos, const int *const inWord, in testCharGroupForContinuedLikeness() argument
698 int codePoint = BinaryFormat::getCodePointAndForwardPointer(root, &pos); in testCharGroupForContinuedLikeness()
703 *outPos = hasMultipleChars ? BinaryFormat::skipOtherCharacters(root, pos) : pos; in testCharGroupForContinuedLikeness()
710 codePoint = BinaryFormat::getCodePointAndForwardPointer(root, &pos); in testCharGroupForContinuedLikeness()
714 *outPos = BinaryFormat::skipOtherCharacters(root, pos); in testCharGroupForContinuedLikeness()
719 codePoint = BinaryFormat::getCodePointAndForwardPointer(root, &pos); in testCharGroupForContinuedLikeness()
749 const uint8_t *const root = DICT_ROOT; in getMostProbableWordLikeInner() local
755 stackChildCount[0] = BinaryFormat::getGroupCountAndForwardPointer(root, &startPos); in getMostProbableWordLikeInner()
763 const uint8_t flags = BinaryFormat::getFlagsAndForwardPointer(root, &pos); in getMostProbableWordLikeInner()
768 const bool isAlike = testCharGroupForContinuedLikeness(flags, root, pos, inWord, in getMostProbableWordLikeInner()
[all …]
/packages/apps/Settings/src/com/android/settings/
DSecuritySettings.java122 PreferenceScreen root = getPreferenceScreen(); in createPreferenceHierarchy() local
123 if (root != null) { in createPreferenceHierarchy()
124 root.removeAll(); in createPreferenceHierarchy()
127 root = getPreferenceScreen(); in createPreferenceHierarchy()
195 mLockAfter = (ListPreference) root.findPreference(KEY_LOCK_AFTER_TIMEOUT); in createPreferenceHierarchy()
203 (CheckBoxPreference) root.findPreference(KEY_BIOMETRIC_WEAK_LIVELINESS); in createPreferenceHierarchy()
206 mVisiblePattern = (CheckBoxPreference) root.findPreference(KEY_VISIBLE_PATTERN); in createPreferenceHierarchy()
209 mPowerButtonInstantlyLocks = (CheckBoxPreference) root.findPreference( in createPreferenceHierarchy()
217 root.findPreference(KEY_SECURITY_CATEGORY); in createPreferenceHierarchy()
219 securityCategory.removePreference(root.findPreference(KEY_VISIBLE_PATTERN)); in createPreferenceHierarchy()
[all …]
DLocationSettings.java84 PreferenceScreen root = getPreferenceScreen(); in createPreferenceHierarchy() local
85 if (root != null) { in createPreferenceHierarchy()
86 root.removeAll(); in createPreferenceHierarchy()
89 root = getPreferenceScreen(); in createPreferenceHierarchy()
91 mLocationAccess = (SwitchPreference) root.findPreference(KEY_LOCATION_TOGGLE); in createPreferenceHierarchy()
92 mNetwork = (CheckBoxPreference) root.findPreference(KEY_LOCATION_NETWORK); in createPreferenceHierarchy()
93 mGps = (CheckBoxPreference) root.findPreference(KEY_LOCATION_GPS); in createPreferenceHierarchy()
94 mAssistedGps = (CheckBoxPreference) root.findPreference(KEY_ASSISTED_GPS); in createPreferenceHierarchy()
106 return root; in createPreferenceHierarchy()
DWirelessSettings.java122 PreferenceScreen root = getPreferenceScreen(); in onCreate() local
124 if (ps != null) root.removePreference(ps); in onCreate()
197 PreferenceScreen root = getPreferenceScreen(); in onCreate() local
199 if (ps != null) root.removePreference(ps); in onCreate()
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DGLView.java86 GLRoot root = getGLRoot(); in startAnimation() local
87 if (root == null) throw new IllegalStateException(); in startAnimation()
91 root.registerLaunchedAnimation(mAnimation); in startAnimation()
115 public void attachToRoot(GLRoot root) { in attachToRoot() argument
117 onAttachToRoot(root); in attachToRoot()
206 GLRoot root = getGLRoot(); in invalidate() local
207 if (root != null) root.requestRender(); in invalidate()
219 GLRoot root = getGLRoot(); in requestLayout() local
220 if (root != null) root.requestLayoutContentPane(); in requestLayout()
431 protected void onAttachToRoot(GLRoot root) { in onAttachToRoot() argument
[all …]
DPhotoView.java326 public MyHandler(GLRoot root) { in MyHandler() argument
327 super(root); in MyHandler()
488 GLRoot root = getGLRoot(); in onLayout() local
489 int displayRotation = root.getDisplayRotation(); in onLayout()
490 int compensation = root.getCompensation(); in onLayout()
1653 GLRoot root = getGLRoot(); in switchWithCaptureAnimation() local
1654 if(root == null) return false; in switchWithCaptureAnimation()
1655 root.lockRenderThread(); in switchWithCaptureAnimation()
1659 root.unlockRenderThread(); in switchWithCaptureAnimation()
1817 public PhotoFallbackEffect buildFallbackEffect(GLView root, GLCanvas canvas) { in buildFallbackEffect() argument
[all …]
DActionModeHandler.java161 GLRoot root = mActivity.getGLRoot(); in onActionItemClicked() local
162 root.lockRenderThread(); in onActionItemClicked()
190 root.unlockRenderThread(); in onActionItemClicked()
197 GLRoot root = mActivity.getGLRoot(); in onPopupItemClick() local
198 root.lockRenderThread(); in onPopupItemClick()
206 root.unlockRenderThread(); in onPopupItemClick()
DPreparePageFadeoutTexture.java66 GLRoot root = activity.getGLRoot(); in prepareFadeOutTexture()
68 root.unlockRenderThread(); in prepareFadeOutTexture()
70 root.addOnGLIdleListener(task); in prepareFadeOutTexture()
73 root.lockRenderThread(); in prepareFadeOutTexture()
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DStorageManager.java173 private synchronized void findSpace(File root, long targetBytes, int destination) in findSpace() argument
186 long bytesAvailable = getAvailableBytesInFileSystemAtGivenRoot(root); in findSpace()
194 bytesAvailable = getAvailableBytesInFileSystemAtGivenRoot(root); in findSpace()
204 if (root.equals(mSystemCacheDir)) { in findSpace()
209 "space in the filesystem rooted at: " + root + in findSpace()
214 if (root.equals(mDownloadDataDir)) { in findSpace()
219 Log.w(Constants.TAG, "Downloads data dir: " + root + in findSpace()
231 "not enough free space in the filesystem rooted at: " + root + in findSpace()
240 private long getAvailableBytesInDownloadsDataDir(File root) { in getAvailableBytesInDownloadsDataDir() argument
241 File[] files = root.listFiles(); in getAvailableBytesInDownloadsDataDir()
[all …]
/packages/apps/Settings/src/com/android/settings/applications/
DRunningServiceDetails.java259 View root = mInflater.inflate(R.layout.running_service_details_service, in addServiceDetailsView() local
261 mAllDetails.addView(root); in addServiceDetailsView()
262 detail.mRootView = root; in addServiceDetailsView()
264 detail.mViewHolder = new RunningProcessesView.ViewHolder(root); in addServiceDetailsView()
268 root.findViewById(R.id.service).setVisibility(View.GONE); in addServiceDetailsView()
276 TextView description = (TextView)root.findViewById(R.id.comp_description); in addServiceDetailsView()
277 detail.mStopButton = (Button)root.findViewById(R.id.left_button); in addServiceDetailsView()
278 detail.mReportButton = (Button)root.findViewById(R.id.right_button); in addServiceDetailsView()
285 root.findViewById(R.id.control_buttons_panel).setVisibility(View.GONE); in addServiceDetailsView()
335 View root = mInflater.inflate(R.layout.running_service_details_process, in addProcessDetailsView() local
[all …]
/packages/apps/CertInstaller/src/com/android/certinstaller/
DCertFileList.java81 PreferenceScreen root = getPreferenceScreen(); in setAllFilesEnabled() local
82 for (int i = 0, n = root.getPreferenceCount(); i < n; i++) { in setAllFilesEnabled()
83 root.getPreference(i).setEnabled(enabled); in setAllFilesEnabled()
112 PreferenceScreen root = getPreferenceScreen(); in createFileList() local
113 root.removeAll(); in createFileList()
127 root.addPreference(pref); in createFileList()
156 File root = Environment.getExternalStorageDirectory(); in SdCardMonitor() local
157 mRootMonitor = new FileObserver(root.getPath()) { in SdCardMonitor()
164 File download = new File(root, DOWNLOAD_DIR); in SdCardMonitor()
/packages/apps/Dialer/src/com/android/dialer/dialpad/
DSmartDialTrie.java130 private void getAll(Node root, ArrayList<ContactNumber> output) { in getAll() argument
131 if (root == null) { in getAll()
134 if (root.getContents() != null) { in getAll()
135 output.addAll(root.getContents()); in getAll()
137 for (int i = 0; i < root.getChildrenSize(); i++) { in getAll()
138 getAll(root.getChild(i, false), output); in getAll()
335 private void putForPrefix(ContactNumber contact, Node root, ParseInfo info, int start,
340 Node current = root;
341 Node initialNode = root;
358 initialNode != root) {
[all …]
/packages/apps/Gallery2/src/com/android/photos/
DMultiSelectGridFragment.java276 View root = getView(); in ensureGrid() local
277 if (root == null) { in ensureGrid()
280 if (root instanceof GridView) { in ensureGrid()
281 mGrid = (GridView) root; in ensureGrid()
283 View empty = root.findViewById(android.R.id.empty); in ensureGrid()
287 mProgressContainer = root.findViewById(R.id.progressContainer); in ensureGrid()
288 mGridContainer = root.findViewById(R.id.gridContainer); in ensureGrid()
289 View rawGridView = root.findViewById(android.R.id.list); in ensureGrid()
/packages/apps/Settings/src/com/android/settings/deviceinfo/
DUsbSettings.java62 PreferenceScreen root = getPreferenceScreen(); in createPreferenceHierarchy() local
63 if (root != null) { in createPreferenceHierarchy()
64 root.removeAll(); in createPreferenceHierarchy()
67 root = getPreferenceScreen(); in createPreferenceHierarchy()
69 mMtp = (CheckBoxPreference)root.findPreference(KEY_MTP); in createPreferenceHierarchy()
70 mPtp = (CheckBoxPreference)root.findPreference(KEY_PTP); in createPreferenceHierarchy()
78 return root; in createPreferenceHierarchy()
/packages/apps/Settings/src/com/android/settings/tts/
DTtsEngineSettingsFragment.java101 final PreferenceScreen root = getPreferenceScreen(); in onCreate() local
102 mLocalePreference = (ListPreference) root.findPreference(KEY_ENGINE_LOCALE); in onCreate()
104 mEngineSettingsPreference = root.findPreference(KEY_ENGINE_SETTINGS); in onCreate()
106 mInstallVoicesPreference = root.findPreference(KEY_INSTALL_DATA); in onCreate()
109 root.removePreference(mInstallVoicesPreference); in onCreate()
111 root.removePreference(mLocalePreference); in onCreate()
113 root.setTitle(getEngineLabel()); in onCreate()
114 root.setKey(getEngineName()); in onCreate()
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DAbstractGalleryActivity.java255 GLRoot root = getGLRoot(); in onBackPressed() local
256 root.lockRenderThread(); in onBackPressed()
260 root.unlockRenderThread(); in onBackPressed()
273 GLRoot root = getGLRoot(); in onOptionsItemSelected() local
274 root.lockRenderThread(); in onOptionsItemSelected()
278 root.unlockRenderThread(); in onOptionsItemSelected()
/packages/inputmethods/OpenWnn/libs/libwnnDictionary/engine/
Dndbdic.c103 NJ_UINT8 *root, NJ_UINT8 *node_mid,
552 NJ_UINT8 *root, *now, *node, *node_mid; in search_node() local
585 root = NODE_AREA_TOP_ADDR(loctset->loct.handle); in search_node()
588 node_mid = root + NODE_AREA_MID_ADDR(loctset->loct.handle); in search_node()
611 node = root; in search_node()
741 (root != node_mid)) { in search_node()
742 now = root; in search_node()
1541 NJ_UINT8 *root, *now, *node, *node_mid; in search_node2() local
1587 root = NODE_AREA_TOP_ADDR(loctset->loct.handle); in search_node2()
1590 node_mid = root + NODE_AREA_MID_ADDR(loctset->loct.handle); in search_node2()
[all …]
/packages/apps/Email/src/com/android/email/activity/
DMessageListFragment.java368 View root = inflater.inflate(R.layout.message_list_fragment,null); in onCreateView() local
370 mListPanel = UiUtilities.getView(root, R.id.list_panel); in onCreateView()
371 return root; in onCreateView()
382 ViewGroup root = (ViewGroup) getView(); in initSearchHeader() local
384 R.layout.message_list_search_header, root, false); in initSearchHeader()
389 root.addView(mSearchHeader, 0); in initSearchHeader()
1248 ViewGroup root = (ViewGroup) getView(); in onSearchLoadTimeout() local
1250 if (root != null && host != null) { in onSearchLoadTimeout()
1253 R.layout.message_list_warning, root, false); in onSearchLoadTimeout()
1258 root.addView(mWarningContainer); in onSearchLoadTimeout()
/packages/apps/PackageInstaller/src/com/android/packageinstaller/
DPackageInstallerActivity.java137 View root = inflater.inflate(R.layout.permissions_list, null); in startInstallConfirm() local
139 mScrollView = (CaffeinatedScrollView)root.findViewById(R.id.scrollview); in startInstallConfirm()
142 ((ViewGroup)root.findViewById(R.id.privacylist)).addView( in startInstallConfirm()
145 root.findViewById(R.id.privacylist).setVisibility(View.GONE); in startInstallConfirm()
148 ((ViewGroup)root.findViewById(R.id.devicelist)).addView( in startInstallConfirm()
151 root.findViewById(R.id.devicelist).setVisibility(View.GONE); in startInstallConfirm()
154 getText(R.string.allPerms)), root); in startInstallConfirm() local
DGrantActivity.java124 View root = inflater.inflate(R.layout.permissions_list, null); in getPermissionList() local
128 ((ViewGroup)root.findViewById(R.id.privacylist)).addView(personalPermissions); in getPermissionList()
129 ((ViewGroup)root.findViewById(R.id.devicelist)).addView(devicePermissions); in getPermissionList()
131 return root; in getPermissionList()
/packages/apps/Gallery2/src/com/android/gallery3d/onetimeinitializer/
DGalleryWidgetMigrator.java125 File root = Environment.getExternalStorageDirectory(); in migrateLocalEntries() local
127 updatePath(new File(root, "DCIM"), entries, dbHelper, oldExtPath); in migrateLocalEntries()
129 if (!entries.isEmpty()) updatePath(root, entries, dbHelper, oldExtPath); in migrateLocalEntries()
131 private static void updatePath(File root, HashMap<Integer, Entry> entries, in updatePath() argument
133 File[] files = root.listFiles(); in updatePath()
/packages/apps/LegacyCamera/src/com/android/camera/ui/
DIndicatorButton.java105 ViewGroup root = (ViewGroup) getRootView().findViewById(R.id.frame_layout); in initializePopup() local
110 R.layout.effect_setting_popup, root, false); in initializePopup()
116 R.layout.basic_setting_popup, root, false); in initializePopup()
121 root.addView(mPopup); in initializePopup()
/packages/apps/Gallery2/tests/src/com/android/gallery3d/ui/
DGLViewMock.java40 public void onAttachToRoot(GLRoot root) { in onAttachToRoot() argument
41 mRoot = root; in onAttachToRoot()
43 super.onAttachToRoot(root); in onAttachToRoot()

1234