Home
last modified time | relevance | path

Searched refs:localPaths (Results 1 – 3 of 3) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/widget/
DUsageGraphTest.java70 SparseIntArray localPaths = new SparseIntArray(); in calculateLocalPaths_singlePath() local
71 mGraph.calculateLocalPaths(paths, localPaths); in calculateLocalPaths_singlePath()
73 assertThat(localPaths.size()).isEqualTo(3); in calculateLocalPaths_singlePath()
74 assertThat(localPaths.keyAt(0)).isEqualTo(0); in calculateLocalPaths_singlePath()
75 assertThat(localPaths.valueAt(0)).isEqualTo(0); in calculateLocalPaths_singlePath()
76 assertThat(localPaths.keyAt(1)).isEqualTo(1000); in calculateLocalPaths_singlePath()
77 assertThat(localPaths.valueAt(1)).isEqualTo(100); in calculateLocalPaths_singlePath()
78 assertThat(localPaths.keyAt(2)).isEqualTo(1001); in calculateLocalPaths_singlePath()
79 assertThat(localPaths.valueAt(2)).isEqualTo(-1); in calculateLocalPaths_singlePath()
93 SparseIntArray localPaths = new SparseIntArray(); in calculateLocalPaths_multiplePaths() local
[all …]
/packages/apps/Settings/src/com/android/settings/widget/
DUsageGraph.java143 SparseIntArray points, SparseIntArray paths, SparseIntArray localPaths) { in addPathAndUpdate() argument
150 calculateLocalPaths(paths, localPaths); in addPathAndUpdate()
177 void calculateLocalPaths(SparseIntArray paths, SparseIntArray localPaths) { in calculateLocalPaths() argument
182 localPaths.clear(); in calculateLocalPaths()
192 localPaths.put(getX(x+1) - 1, getY(0)); in calculateLocalPaths()
197 localPaths.put(lx, ly); in calculateLocalPaths()
200 localPaths.put(lx + 1, PATH_DELIM); in calculateLocalPaths()
205 if (localPaths.size() > 0) { in calculateLocalPaths()
206 int lastX = localPaths.keyAt(localPaths.size() - 1); in calculateLocalPaths()
207 int lastY = localPaths.valueAt(localPaths.size() - 1); in calculateLocalPaths()
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/widget/
DUsageGraph.java143 SparseIntArray points, SparseIntArray paths, SparseIntArray localPaths) { in addPathAndUpdate() argument
150 calculateLocalPaths(paths, localPaths); in addPathAndUpdate()
177 void calculateLocalPaths(SparseIntArray paths, SparseIntArray localPaths) { in calculateLocalPaths() argument
182 localPaths.clear(); in calculateLocalPaths()
192 localPaths.put(getX(x+1) - 1, getY(0)); in calculateLocalPaths()
197 localPaths.put(lx, ly); in calculateLocalPaths()
200 localPaths.put(lx + 1, PATH_DELIM); in calculateLocalPaths()
205 if (localPaths.size() > 0) { in calculateLocalPaths()
206 int lastX = localPaths.keyAt(localPaths.size() - 1); in calculateLocalPaths()
207 int lastY = localPaths.valueAt(localPaths.size() - 1); in calculateLocalPaths()
[all …]