/packages/apps/LegacyCamera/jni/feature_stab/db_vlvm/ |
D | db_utilities_poly.cpp | 28 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 …]
|
D | db_utilities_poly.h | 39 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…
|
D | db_image_homography.cpp | 119 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()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/roots/ |
D | ProvidersCache.java | 17 package com.android.documentsui.roots; 250 final ArrayList<RootInfo> roots = new ArrayList<>(); in loadRootsForAuthority() local 256 return roots; in loadRootsForAuthority() 260 return roots; in loadRootsForAuthority() 265 return roots; in loadRootsForAuthority() 271 return roots; in loadRootsForAuthority() 312 roots.add(root); in loadRootsForAuthority() 319 return roots; in loadRootsForAuthority() 329 if (roots.isEmpty() && !PERMIT_EMPTY_CACHE.contains(authority)) { in loadRootsForAuthority() 332 systemCache.putParcelableArrayList(TAG, roots); in loadRootsForAuthority() [all …]
|
D | LoadFirstRootTask.java | 17 package com.android.documentsui.roots; 40 final Collection<RootInfo> roots = mProviders.getRootsForAuthorityBlocking(authority); in getRootId() local 41 if (!roots.isEmpty()) { in getRootId() 42 rootId = roots.iterator().next().rootId; in getRootId()
|
D | ProvidersAccess.java | 17 package com.android.documentsui.roots; 65 public static List<RootInfo> getMatchingRoots(Collection<RootInfo> roots, State state) { in getMatchingRoots() argument 70 for (RootInfo root : roots) { in getMatchingRoots()
|
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/ |
D | TestProvidersAccess.java | 24 import com.android.documentsui.roots.ProvidersAccess; 123 public final Map<String, Collection<RootInfo>> roots = new HashMap<>(); field in TestProvidersAccess 134 if (!roots.containsKey(root.authority)) { in add() 135 roots.put(root.authority, new ArrayList<>()); in add() 137 roots.get(root.authority).add(root); in add() 149 if (roots.containsKey(authority)) { in getRootOneshot() 150 for (RootInfo root : roots.get(authority)) { in getRootOneshot() 162 for (String authority : roots.keySet()) { in getMatchingRootsBlocking() 163 allRoots.addAll(roots.get(authority)); in getMatchingRootsBlocking() 170 return roots.get(authority); in getRootsForAuthorityBlocking() [all …]
|
D | TestLastAccessedStorage.java | 28 import com.android.documentsui.roots.ProvidersAccess; 41 …public @Nullable DocumentStack getLastAccessed(Activity activity, ProvidersAccess roots, State sta… in getLastAccessed() argument
|
/packages/apps/DocumentsUI/tests/functional/com/android/documentsui/ |
D | FilesActivityUiTest.java | 59 bots.roots.openRoot("Recent"); in testClickRecent() 71 bots.roots.openRoot("Images"); in testRootClick_SetsWindowTitle() 102 bots.roots.openRoot(rootDir0.title); in testNavigate_inFixedLayout_whileHasSelection() 107 bots.roots.openRoot(rootDir1.title); in testNavigate_inFixedLayout_whileHasSelection() 128 bots.roots.openRoot("Images"); in testRootChange_UpdatesSortHeader() 130 bots.roots.openRoot("Videos"); in testRootChange_UpdatesSortHeader() 135 bots.roots.openRoot("Images"); in testRootChange_UpdatesSortHeader() 138 bots.roots.openRoot("Videos"); in testRootChange_UpdatesSortHeader() 141 bots.roots.openRoot("Videos"); in testRootChange_UpdatesSortHeader()
|
D | CancelFromNotificationUiTest.java | 147 bots.roots.openRoot(ROOT_0_ID); in testCopyDocument_Cancel() 166 bots.roots.openRoot(ROOT_0_ID); in testCopyDocument_CancelFromNotification() 176 bots.roots.openRoot(ROOT_1_ID); in testCopyDocument_CancelFromNotification() 188 bots.roots.openRoot(ROOT_1_ID); in testCopyDocument_CancelFromNotification() 192 bots.roots.openRoot(ROOT_0_ID); in testCopyDocument_CancelFromNotification() 199 bots.roots.openRoot(ROOT_0_ID); in testMoveDocument_Cancel() 218 bots.roots.openRoot(ROOT_0_ID); in testMoveDocument_CancelFromNotification() 228 bots.roots.openRoot(ROOT_1_ID); in testMoveDocument_CancelFromNotification() 240 bots.roots.openRoot(ROOT_1_ID); in testMoveDocument_CancelFromNotification() 244 bots.roots.openRoot(ROOT_0_ID); in testMoveDocument_CancelFromNotification()
|
D | FileCopyUiTest.java | 205 bots.roots.openRoot(label); in createDocuments() 231 bots.roots.openRoot(label); in deleteDocuments() 347 bots.roots.openRoot(sourceRoot); in copyFiles() 352 bots.roots.openRoot(targetRoot); in copyFiles() 369 bots.roots.openRoot(rootLabel); in assertFilesCopied() 390 bots.roots.openRoot(StubProvider.ROOT_0_ID); in testCopyDocuments_InternalStorage() 404 bots.roots.openRoot(mSdCardLabel); in testCopyDocuments_FromSdCard() 418 bots.roots.openRoot(mDeviceLabel); in testCopyDocuments_ToSdCard() 428 bots.roots.openRoot(StubProvider.ROOT_0_ID); in testCopyDocuments_documentsDisabled() 433 bots.roots.openRoot(StubProvider.ROOT_0_ID); in testCopyDocuments_documentsDisabled()
|
D | KeyboardNavigationUiTest.java | 49 bots.roots.assertHasFocus(); in testKeyboard_tab() 69 bots.roots.closeDrawer(); in testKeyboard_tabFocuses() 85 bots.roots.openDrawer(); in testKeyboard_arrowsRootsList() 91 bots.roots.assertHasFocus(); in testKeyboard_arrowsRootsList() 95 bots.roots.assertHasFocus(); in testKeyboard_arrowsRootsList()
|
D | FileManagementUiTest.java | 100 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()
|
D | FilesActivityDefaultsUiTest.java | 77 bots.roots.openRoot(rootDir0.title); in testNavigate_FromEmptyDirectory() 92 bots.roots.assertRootsPresent( in testDefaultRoots() 102 bots.roots.assertRootsPresent("Documents"); in testDefaultRoots() 104 bots.roots.assertRootsAbsent("Documents"); in testDefaultRoots()
|
D | SearchViewUiTest.java | 41 bots.roots.closeDrawer(); in setUp() 66 bots.roots.openRoot(ROOT_1_ID); // root 1 doesn't support search in testSearchIconHidden() 215 bots.roots.openRoot(ROOT_1_ID); in testSearchResultsFound_ClearsOnDirectoryChange() 219 bots.roots.openRoot(ROOT_0_ID); in testSearchResultsFound_ClearsOnDirectoryChange()
|
D | ArchiveUiTest.java | 30 bots.roots.openRoot("ResourcesProvider"); in testArchive_valid() 39 bots.roots.openRoot("ResourcesProvider"); in testArchive_invalid()
|
D | SidebarUiTest.java | 47 bots.roots.openRoot(ROOT_0_ID); in testRootTapped_GoToRootFromChildDir() 57 bots.roots.openRoot(ROOT_1_ID); in testRootChanged_ClearSelection()
|
D | IntegratedDownloadsUiTest.java | 50 bots.roots.openRoot("Downloads"); in testDownload_Queued() 61 bots.roots.openRoot("Downloads"); in testDownload_RetryUnsuccessful()
|
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/roots/ |
D | ProvidersAccessTest.java | 17 package com.android.documentsui.roots; 134 final List<RootInfo> roots = newArrayList(); in testExcludedAuthorities() local 140 roots.add(root); in testExcludedAuthorities() 144 roots.get(0), roots.get(2), roots.get(4)); in testExcludedAuthorities() 146 for (RootInfo root: roots) { in testExcludedAuthorities() 155 ProvidersAccess.getMatchingRoots(roots, mState)); in testExcludedAuthorities()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/ |
D | ShortcutsUpdater.java | 51 public void update(Collection<RootInfo> roots) { in update() argument 59 List<ShortcutInfo> devices = getDeviceShortcuts(roots); in update() 83 private List<ShortcutInfo> getDeviceShortcuts(Collection<RootInfo> roots) { in getDeviceShortcuts() argument 85 for (RootInfo root : roots) { in getDeviceShortcuts()
|
D | RootsMonitor.java | 34 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()
|
D | MultiRootDocumentsLoader.java | 44 import com.android.documentsui.roots.ProvidersAccess; 45 import com.android.documentsui.roots.RootCursorWrapper; 246 final Collection<RootInfo> roots = mProviders.getMatchingRootsBlocking(mState); in indexRoots() local 248 for (RootInfo root : roots) { in indexRoots()
|
D | GlobalSearchLoader.java | 30 import com.android.documentsui.roots.ProvidersAccess; 31 import com.android.documentsui.roots.RootCursorWrapper;
|
D | RecentsLoader.java | 29 import com.android.documentsui.roots.ProvidersAccess; 30 import com.android.documentsui.roots.RootCursorWrapper;
|
/packages/apps/DocumentsUI/src/com/android/documentsui/sidebar/ |
D | RootsFragment.java | 72 import com.android.documentsui.roots.ProvidersAccess; 73 import com.android.documentsui.roots.ProvidersCache; 74 import com.android.documentsui.roots.RootsLoader; 236 Loader<Collection<RootInfo>> loader, Collection<RootInfo> roots) { in onActivityCreated() 247 List<Item> sortedItems = sortLoadResult(roots, excludePackage, handlerAppIntent, in onActivityCreated() 252 mInjector.shortcutsUpdater.accept(roots); in onActivityCreated() 275 Collection<RootInfo> roots, in sortLoadResult() argument 285 for (final RootInfo root : roots) { in sortLoadResult()
|