/frameworks/ml/bordeaux/service/src/android/bordeaux/services/ |
D | ClusterManager.java | 141 LocationCluster cluster = new LocationCluster(mLastLocation, duration); in addSample() local 142 mLocationClusters.add(cluster); in addSample() 208 for (BaseCluster cluster : mSemanticClusters) { in consolidateClusters() 209 float distance = cluster.distanceToCluster(candidate); in consolidateClusters() 211 cluster.getSemanticId()); in consolidateClusters() 215 bestClusterId = cluster.getSemanticId(); in consolidateClusters() 237 for (BaseCluster cluster : mSemanticClusters) { in updateSemanticClusters() 240 cluster.forgetPastHistory(); in updateSemanticClusters() 241 semanticIdMap.put(cluster.getSemanticId(), cluster); in updateSemanticClusters() local 245 for (LocationCluster cluster : mLocationClusters) { in updateSemanticClusters() [all …]
|
D | BaseCluster.java | 120 public float distanceToCluster(BaseCluster cluster) { in distanceToCluster() argument 121 return (float) computeDistance(mCenter, cluster.mCenter); in distanceToCluster() 124 public void absorbCluster(BaseCluster cluster) { in absorbCluster() argument 125 averageCenter(cluster.mCenter, cluster.mDuration); in absorbCluster() 126 absorbHistogram(cluster); in absorbCluster() 129 public void setCluster(BaseCluster cluster) { in setCluster() argument 131 mCenter[i] = cluster.mCenter[i]; in setCluster() 134 mHistogram.putAll(cluster.mHistogram); in setCluster() 135 mDuration = cluster.mDuration; in setCluster() 138 private void absorbHistogram(BaseCluster cluster) { in absorbHistogram() argument [all …]
|
D | LocationCluster.java | 115 public void moveAwayCluster(LocationCluster cluster, float distance) { in moveAwayCluster() argument 120 dot += mCenter[i] * cluster.mCenter[i]; in moveAwayCluster() 124 vector[i] = mCenter[i] - dot * cluster.mCenter[i]; in moveAwayCluster() 131 mCenter[i] = cluster.mCenter[i] * Math.cos(radian) + in moveAwayCluster()
|
D | IAggregatorManager.aidl | 30 boolean setFakeLocation(in String cluster); in setFakeLocation() argument
|
/frameworks/base/core/java/com/android/internal/os/ |
D | CpuPowerCalculator.java | 40 for (int cluster = 0; cluster < numClusters; cluster++) { in calculateApp() 41 final int speedsForCluster = mProfile.getNumSpeedStepsInCpuCluster(cluster); in calculateApp() 43 totalTime += u.getTimeAtCpuSpeed(cluster, speed, statsType); in calculateApp() 49 for (int cluster = 0; cluster < numClusters; cluster++) { in calculateApp() 50 final int speedsForCluster = mProfile.getNumSpeedStepsInCpuCluster(cluster); in calculateApp() 52 final double ratio = (double) u.getTimeAtCpuSpeed(cluster, speed, statsType) / in calculateApp() 55 mProfile.getAveragePowerForCpu(cluster, speed); in calculateApp() 57 Log.d(TAG, "UID " + u.getUid() + ": CPU cluster #" + cluster + " step #" in calculateApp()
|
D | PowerProfile.java | 327 for (int cluster = 0; cluster < array.length; cluster++) { in initCpuClusters() 328 int numCpusInCluster = (int) Math.round(array[cluster]); in initCpuClusters() 329 mCpuClusters[cluster] = new CpuClusterKey( in initCpuClusters() 330 POWER_CPU_CLUSTER_SPEED_PREFIX + cluster, in initCpuClusters() 331 POWER_CPU_CLUSTER_ACTIVE_PREFIX + cluster, in initCpuClusters() 365 public double getAveragePowerForCpu(int cluster, int step) { in getAveragePowerForCpu() argument 366 if (cluster >= 0 && cluster < mCpuClusters.length) { in getAveragePowerForCpu() 367 return getAveragePower(mCpuClusters[cluster].powerKey, step); in getAveragePowerForCpu()
|
D | BatteryStatsImpl.java | 6486 public long getTimeAtCpuSpeed(int cluster, int step, int which) { in getTimeAtCpuSpeed() argument 6488 if (cluster >= 0 && cluster < mCpuClusterSpeed.length) { in getTimeAtCpuSpeed() 6489 final LongSamplingCounter[] cpuSpeeds = mCpuClusterSpeed[cluster]; in getTimeAtCpuSpeed() 7332 for (int cluster = 0; cluster < numCpuClusters; cluster++) { in readFromParcelLocked() 7336 … mBsi.mPowerProfile.getNumSpeedStepsInCpuCluster(cluster) != numSpeeds) { in readFromParcelLocked() 7341 mCpuClusterSpeed[cluster] = cpuSpeeds; in readFromParcelLocked() 7348 mCpuClusterSpeed[cluster] = null; in readFromParcelLocked() 10144 for (int cluster = 0; cluster < mKernelCpuSpeedReaders.length; cluster++) { in updateCpuTimeLocked() 10145 clusterSpeeds[cluster] = mKernelCpuSpeedReaders[cluster].readDelta(); in updateCpuTimeLocked() 10231 for (int cluster = 0; cluster < clusterSpeeds.length; cluster++) { in updateCpuTimeLocked() [all …]
|
/frameworks/minikin/libs/minikin/ |
D | Layout.cpp | 735 uint32_t cluster) { in addHyphenToHbBuffer() argument 739 hb_buffer_add(buffer, hyphenChar, cluster); in addHyphenToHbBuffer() 835 hyphenCluster = cpInfo[numCodepoints - 1].cluster + (uint32_t) hasEndReplacement; in addToHbBuffer() 842 return cpInfo[0].cluster; in addToHbBuffer() 964 mAdvances[info[0].cluster - clusterOffset] += letterSpaceHalfLeft; in doLayoutRun() 976 if (i > 0 && info[i - 1].cluster != info[i].cluster) { in doLayoutRun() 977 mAdvances[info[i - 1].cluster - clusterOffset] += letterSpaceHalfRight; in doLayoutRun() 978 mAdvances[info[i].cluster - clusterOffset] += letterSpaceHalfLeft; in doLayoutRun() 1008 if (static_cast<size_t>(info[i].cluster - clusterOffset) < count) { in doLayoutRun() 1009 mAdvances[info[i].cluster - clusterOffset] += xAdvance; in doLayoutRun() [all …]
|
/frameworks/av/media/libstagefright/webm/ |
D | WebmFrameThread.cpp | 130 sp<WebmElement> cluster = new WebmMaster(kMkvCluster, children); in writeCluster() local 131 cluster->write(mFd, size); in writeCluster()
|
/frameworks/base/tools/apilint/ |
D | apilint.py | 858 def cluster(args): function 867 common_args = cluster(methods[0].args) 869 common_args = common_args & cluster(m.args) 877 if not common_args.issubset(cluster(sig)):
|
/frameworks/base/core/java/android/view/ |
D | ViewRootImpl.java | 4682 View cluster = focused == null ? keyboardNavigationClusterSearch(null, direction) in performKeyboardGroupNavigation() local 4692 if (cluster != null && cluster.isRootNamespace()) { in performKeyboardGroupNavigation() 4694 if (cluster.restoreFocusNotInCluster()) { in performKeyboardGroupNavigation() 4699 cluster = keyboardNavigationClusterSearch(null, direction); in performKeyboardGroupNavigation() 4702 if (cluster != null && cluster.restoreFocusInCluster(realDirection)) { in performKeyboardGroupNavigation()
|
D | View.java | 10153 View cluster = ((View) mParent).findKeyboardNavigationCluster(); in findKeyboardNavigationCluster() local 10154 if (cluster != null) { in findKeyboardNavigationCluster() 10155 return cluster; in findKeyboardNavigationCluster() 10189 private void setFocusedInCluster(View cluster) { in setFocusedInCluster() argument 10193 if (cluster == this) { in setFocusedInCluster() 10200 if (parent == cluster) { in setFocusedInCluster() 10211 View cluster = findKeyboardNavigationCluster(); in updateFocusedInCluster() local 10212 if (oldCluster != cluster) { in updateFocusedInCluster()
|
/frameworks/base/core/java/android/os/ |
D | BatteryStats.java | 674 public abstract long getTimeAtCpuSpeed(int cluster, int step, int which); in getTimeAtCpuSpeed() argument
|