Home
last modified time | relevance | path

Searched refs:roots (Results 1 – 25 of 88) sorted by relevance

1234

/packages/apps/LegacyCamera/jni/feature_stab/db_vlvm/
Ddb_utilities_poly.cpp28 void db_SolveCubic(double *roots,int *nr_roots,double a,double b,double c,double d) in db_SolveCubic() argument
40 if(a==0.0) db_SolveQuadratic(roots,nr_roots,b,c,d); in db_SolveCubic()
68 roots[0]= -2.0*srq*cos_theta_through3-bp_through3; in db_SolveCubic()
69 roots[1]=srq*min2_cos_theta_plu-bp_through3; in db_SolveCubic()
70 roots[2]=srq*min2_cos_theta_min-bp_through3; in db_SolveCubic()
77 if(A!=0.0) roots[0]=A+q/A-bp_through3; in db_SolveCubic()
78 else roots[0]= -bp_through3; in db_SolveCubic()
87 roots[0]= -2.0*si_r_srq-bp_through3; in db_SolveCubic()
89 roots[1]=si_r_srq-bp_through3; in db_SolveCubic()
94 void db_SolveQuartic(double *roots,int *nr_roots,double a,double b,double c,double d,double e) in db_SolveQuartic() argument
[all …]
Ddb_image_homography.cpp119 double roots[3]; in db_CommonFocalLengthFromRotation_2Point() local
162 db_SolveCubic(roots,&nr_roots,p9[4],p9[3],p9[2],p9[1]); in db_CommonFocalLengthFromRotation_2Point()
166 if(roots[i]>0) in db_CommonFocalLengthFromRotation_2Point()
168 if((!signed_disambiguation) || (db_PolyEval1(p1,roots[i])*db_PolyEval1(p4,roots[i])>0)) in db_CommonFocalLengthFromRotation_2Point()
170 fsol[j++]=db_SafeSqrtReciprocal(roots[i]); in db_CommonFocalLengthFromRotation_2Point()
Ddb_utilities_poly.h39 inline void db_SolveQuadratic(double *roots,int *nr_roots,double a,double b,double c) in db_SolveQuadratic() argument
50 roots[0]= -c/b; in db_SolveQuadratic()
62 roots[0]=q/a; in db_SolveQuadratic()
66 else roots[1]=c/q; in db_SolveQuadratic()
79 DB_API void db_SolveCubic(double *roots,int *nr_roots,double a,double b,double c,double d);
84 DB_API void db_SolveQuartic(double *roots,int *nr_roots,double a,double b,double c,double d,double …
89 DB_API void db_SolveQuarticForced(double *roots,int *nr_roots,double a,double b,double c,double d,d…
/packages/apps/DocumentsUI/tests/functional/com/android/documentsui/
DFilesActivityUiTest.java59 bots.roots.openRoot("Recent"); in testClickRecent()
71 bots.roots.openRoot("Images"); in testRootClick_SetsWindowTitle()
101 bots.roots.openRoot(rootDir0.title); in testNavigate_inFixedLayout_whileHasSelection()
106 bots.roots.openRoot(rootDir1.title); in testNavigate_inFixedLayout_whileHasSelection()
127 bots.roots.openRoot("Images"); in testRootChange_UpdatesSortHeader()
129 bots.roots.openRoot("Videos"); in testRootChange_UpdatesSortHeader()
134 bots.roots.openRoot("Images"); in testRootChange_UpdatesSortHeader()
137 bots.roots.openRoot("Videos"); in testRootChange_UpdatesSortHeader()
140 bots.roots.openRoot("Videos"); in testRootChange_UpdatesSortHeader()
DCancelFromNotificationUiTest.java149 bots.roots.openRoot(ROOT_0_ID); in testCopyDocument_Cancel()
168 bots.roots.openRoot(ROOT_0_ID); in testCopyDocument_CancelFromNotification()
178 bots.roots.openRoot(ROOT_1_ID); in testCopyDocument_CancelFromNotification()
190 bots.roots.openRoot(ROOT_1_ID); in testCopyDocument_CancelFromNotification()
194 bots.roots.openRoot(ROOT_0_ID); in testCopyDocument_CancelFromNotification()
201 bots.roots.openRoot(ROOT_0_ID); in testMoveDocument_Cancel()
223 bots.roots.openRoot(ROOT_0_ID); in ignored_testMoveDocument_CancelFromNotification()
233 bots.roots.openRoot(ROOT_1_ID); in ignored_testMoveDocument_CancelFromNotification()
245 bots.roots.openRoot(ROOT_1_ID); in ignored_testMoveDocument_CancelFromNotification()
249 bots.roots.openRoot(ROOT_0_ID); in ignored_testMoveDocument_CancelFromNotification()
DKeyboardNavigationUiTest.java49 bots.roots.assertHasFocus(); in testKeyboard_tab()
69 bots.roots.closeDrawer(); in testKeyboard_tabFocuses()
85 bots.roots.openDrawer(); in testKeyboard_arrowsRootsList()
90 bots.roots.assertHasFocus(); in testKeyboard_arrowsRootsList()
94 bots.roots.assertHasFocus(); in testKeyboard_arrowsRootsList()
DFileCopyUiTest.java236 bots.roots.openRoot(label); in createDocuments()
262 bots.roots.openRoot(label); in deleteDocuments()
382 bots.roots.openRoot(sourceRoot); in copyFiles()
387 bots.roots.openRoot(targetRoot); in copyFiles()
404 bots.roots.openRoot(rootLabel); in assertFilesCopied()
425 bots.roots.openRoot(StubProvider.ROOT_0_ID); in testCopyDocuments_InternalStorage()
442 bots.roots.openRoot(mSdCardLabel); in ignored_testCopyDocuments_FromSdCard()
459 bots.roots.openRoot(mDeviceLabel); in ignored_testCopyDocuments_ToSdCard()
469 bots.roots.openRoot(StubProvider.ROOT_0_ID); in testCopyDocuments_documentsDisabled()
474 bots.roots.openRoot(StubProvider.ROOT_0_ID); in testCopyDocuments_documentsDisabled()
[all …]
DFileManagementUiTest.java100 bots.roots.openRoot(ROOT_1_ID); in testKeyboard_CutDocument()
106 bots.roots.openRoot(ROOT_0_ID); in testKeyboard_CutDocument()
118 bots.roots.openRoot(ROOT_1_ID); in testKeyboard_CopyDocument()
123 bots.roots.openRoot(ROOT_0_ID); in testKeyboard_CopyDocument()
156 bots.roots.openRoot(ROOT_0_ID); in testCopyLargeAmountOfFiles()
166 bots.roots.openRoot(ROOT_0_ID); in testCopyLargeAmountOfFiles()
DSearchViewUiTest.java41 bots.roots.closeDrawer(); in setUp()
65 bots.roots.openRoot(ROOT_1_ID); // root 1 doesn't support search in testSearchIconHidden()
225 bots.roots.openRoot(ROOT_1_ID); in testSearchResultsFound_ClearsOnDirectoryChange()
229 bots.roots.openRoot(ROOT_0_ID); in testSearchResultsFound_ClearsOnDirectoryChange()
DArchiveUiTest.java30 bots.roots.openRoot("ResourcesProvider"); in testArchive_valid()
39 bots.roots.openRoot("ResourcesProvider"); in testArchive_invalid()
DSidebarUiTest.java47 bots.roots.openRoot(ROOT_0_ID); in testRootTapped_GoToRootFromChildDir()
57 bots.roots.openRoot(ROOT_1_ID); in testRootChanged_ClearSelection()
DFilesActivityDefaultsUiTest.java52 bots.roots.openRoot(rootDir0.title); in testNavigate_FromEmptyDirectory()
67 bots.roots.assertRootsPresent( in testDefaultRoots()
/packages/apps/DocumentsUI/src/com/android/documentsui/roots/
DProvidersCache.java17 package com.android.documentsui.roots;
306 final ArrayList<RootInfo> roots = new ArrayList<>();
312 return roots;
316 return roots;
321 return roots;
327 return roots;
369 roots.add(root);
376 return roots;
386 if (roots.isEmpty() && !PERMIT_EMPTY_CACHE.contains(authority)) {
389 systemCache.putParcelableArrayList(TAG, roots);
[all …]
DLoadFirstRootTask.java17 package com.android.documentsui.roots;
44 final Collection<RootInfo> roots = mProviders.getRootsForAuthorityBlocking( in getRootId() local
46 if (!roots.isEmpty()) { in getRootId()
47 rootId = roots.iterator().next().rootId; in getRootId()
DProvidersAccess.java17 package com.android.documentsui.roots;
68 public static List<RootInfo> getMatchingRoots(Collection<RootInfo> roots, State state) { in getMatchingRoots() argument
73 for (RootInfo root : roots) { in getMatchingRoots()
150 static @Nullable RootInfo getDefaultRoot(Collection<RootInfo> roots, State state) { in getDefaultRoot() argument
151 for (RootInfo root : ProvidersAccess.getMatchingRoots(roots, state)) { in getDefaultRoot()
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/
DTestProvidersAccess.java27 import com.android.documentsui.roots.ProvidersAccess;
232 public final Map<String, Collection<RootInfo>> roots = new HashMap<>(); field in TestProvidersAccess
245 if (!roots.containsKey(root.authority)) { in add()
246 roots.put(root.authority, new ArrayList<>()); in add()
248 roots.get(root.authority).add(root); in add()
261 if (roots.containsKey(authority)) { in getRootOneshot()
262 for (RootInfo root : roots.get(authority)) { in getRootOneshot()
274 for (String authority : roots.keySet()) { in getMatchingRootsBlocking()
275 allRoots.addAll(roots.get(authority)); in getMatchingRootsBlocking()
282 return roots.get(authority); in getRootsForAuthorityBlocking()
[all …]
DTestLastAccessedStorage.java28 import com.android.documentsui.roots.ProvidersAccess;
41 …public @Nullable DocumentStack getLastAccessed(Activity activity, ProvidersAccess roots, State sta… in getLastAccessed() argument
/packages/services/Mtp/src/com/android/mtp/
DMtpManager.java258 final ArrayList<MtpRoot> roots = new ArrayList<>(); in getRoots() local
264 roots.add(new MtpRoot(device.getDeviceId(), info)); in getRoots()
266 return roots.toArray(new MtpRoot[roots.size()]); in getRoots()
296 MtpRoot[] roots; in createDeviceRecord() local
303 roots = getRoots(device.getDeviceId()); in createDeviceRecord()
309 roots = new MtpRoot[0]; in createDeviceRecord()
317 roots = new MtpRoot[0]; in createDeviceRecord()
320 device.getDeviceId(), name, device.getSerialNumber(), opened, roots, in createDeviceRecord()
DMtpDeviceRecord.java27 public final MtpRoot[] roots; field in MtpDeviceRecord
32 MtpRoot[] roots, @Nullable int[] operationsSupported, in MtpDeviceRecord() argument
37 this.roots = roots; in MtpDeviceRecord()
DMapper.java93 String parentDocumentId, int[] operationsSupported, MtpRoot[] roots) in putStorageDocuments() argument
98 final ContentValues[] valuesList = new ContentValues[roots.length]; in putStorageDocuments()
99 final ContentValues[] extraValuesList = new ContentValues[roots.length]; in putStorageDocuments()
100 for (int i = 0; i < roots.length; i++) { in putStorageDocuments()
108 roots[i]); in putStorageDocuments()
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/roots/
DProvidersAccessTest.java17 package com.android.documentsui.roots;
166 final List<RootInfo> roots = newArrayList(); in testExcludedAuthorities() local
173 roots.add(root); in testExcludedAuthorities()
177 roots.get(0), roots.get(2), roots.get(4)); in testExcludedAuthorities()
179 for (RootInfo root: roots) { in testExcludedAuthorities()
188 ProvidersAccess.getMatchingRoots(roots, mState)); in testExcludedAuthorities()
/packages/apps/DocumentsUI/src/com/android/documentsui/
DShortcutsUpdater.java48 public void update(Collection<RootInfo> roots) { in update() argument
56 List<ShortcutInfo> devices = getDeviceShortcuts(roots); in update()
80 private List<ShortcutInfo> getDeviceShortcuts(Collection<RootInfo> roots) { in getDeviceShortcuts() argument
82 for (RootInfo root : roots) { in getDeviceShortcuts()
DRootsMonitor.java34 import com.android.documentsui.roots.ProvidersAccess;
109 protected RootInfo run(RootInfo... roots) { in run() argument
110 assert (roots.length == 1); in run()
111 mCurrentRoot = roots[0]; in run()
DBaseActivity.java73 import com.android.documentsui.roots.ProvidersCache;
300 final RootsFragment roots = RootsFragment.get(getSupportFragmentManager()); in onCreate()
301 if (roots != null) { in onCreate()
302 roots.onSelectedUserChanged(); in onCreate()
614 final RootsFragment roots = RootsFragment.get(getSupportFragmentManager()); in refreshCurrentRootAndDirectory() local
615 if (roots != null) { in refreshCurrentRootAndDirectory()
616 roots.onCurrentRootChanged(); in refreshCurrentRootAndDirectory()
/packages/apps/DocumentsUI/src/com/android/documentsui/sidebar/
DRootsFragment.java76 import com.android.documentsui.roots.ProvidersAccess;
77 import com.android.documentsui.roots.ProvidersCache;
78 import com.android.documentsui.roots.RootsLoader;
249 Loader<Collection<RootInfo>> loader, Collection<RootInfo> roots) { in onActivityCreated()
278 roots, in onActivityCreated()
313 mInjector.shortcutsUpdater.accept(roots); in onActivityCreated()
352 Collection<RootInfo> roots, in sortLoadResult() argument
366 for (final RootInfo root : roots) { in sortLoadResult()

1234