/frameworks/base/core/java/com/android/internal/os/ |
H A D | CpuPowerCalculator.java | 37 // Aggregate total time spent on each cluster. 40 for (int cluster = 0; cluster < numClusters; cluster++) { 41 final int speedsForCluster = mProfile.getNumSpeedStepsInCpuCluster(cluster); 43 totalTime += u.getTimeAtCpuSpeed(cluster, speed, statsType); 49 for (int cluster = 0; cluster < numClusters; cluster++) { 50 final int speedsForCluster = mProfile.getNumSpeedStepsInCpuCluster(cluster); [all...] |
H A D | PowerProfile.java | 312 private static final String POWER_CPU_CLUSTER_SPEED_PREFIX = "cpu.speeds.cluster"; 313 private static final String POWER_CPU_CLUSTER_ACTIVE_PREFIX = "cpu.active.cluster"; 327 for (int cluster = 0; cluster < array.length; cluster++) { 328 int numCpusInCluster = (int) Math.round(array[cluster]); 329 mCpuClusters[cluster] = new CpuClusterKey( 330 POWER_CPU_CLUSTER_SPEED_PREFIX + cluster, 331 POWER_CPU_CLUSTER_ACTIVE_PREFIX + cluster, 365 public double getAveragePowerForCpu(int cluster, in argument [all...] |
H A D | BatteryStatsImpl.java | 6486 public long getTimeAtCpuSpeed(int cluster, int step, int which) { argument 6488 if (cluster >= 0 && cluster < mCpuClusterSpeed.length) { 6489 final LongSamplingCounter[] cpuSpeeds = mCpuClusterSpeed[cluster]; 7332 for (int cluster = 0; cluster < numCpuClusters; cluster++) { 7336 mBsi.mPowerProfile.getNumSpeedStepsInCpuCluster(cluster) != numSpeeds) { 7341 mCpuClusterSpeed[cluster] = cpuSpeeds; 7348 mCpuClusterSpeed[cluster] [all...] |
/frameworks/ml/bordeaux/service/src/android/bordeaux/services/ |
H A D | ClusterManager.java | 33 * locations initially are kept by the clusters. Periodially, a cluster consolidating 34 * procedure is carried out to refine the cluster centers. After consolidation, the 49 // A location cluster can be labeled as a semantic cluster if it has been 125 // add the last location to cluster. 126 // first find the cluster it belongs to. 136 // add the location to the selected cluster 140 // if it is far away from all existing clusters, create a new cluster. 141 LocationCluster cluster = new LocationCluster(mLastLocation, duration); 142 mLocationClusters.add(cluster); [all...] |
H A D | BaseCluster.java | 114 * This computes the distance from loation to the cluster center in meter. 120 public float distanceToCluster(BaseCluster cluster) { argument 121 return (float) computeDistance(mCenter, cluster.mCenter); 124 public void absorbCluster(BaseCluster cluster) { argument 125 averageCenter(cluster.mCenter, cluster.mDuration); 126 absorbHistogram(cluster); 129 public void setCluster(BaseCluster cluster) { argument 131 mCenter[i] = cluster.mCenter[i]; 134 mHistogram.putAll(cluster 138 absorbHistogram(BaseCluster cluster) argument [all...] |
H A D | IAggregatorManager.aidl | 30 boolean setFakeLocation(in String cluster);
|
H A D | LocationCluster.java | 70 // update cluster center 94 // centers. Note that if the cluster is consolidated for the first time, 95 // the weight for the existing cluster would be zero. 112 * if the new created cluster whose covered area overlaps with any existing 113 * cluster move the center away from that cluster till there is no overlap. 115 public void moveAwayCluster(LocationCluster cluster, float distance) { argument 120 dot += mCenter[i] * cluster.mCenter[i]; 124 vector[i] = mCenter[i] - dot * cluster.mCenter[i]; 131 mCenter[i] = cluster [all...] |
/frameworks/minikin/libs/minikin/ |
H A D | Layout.cpp | 735 uint32_t cluster) { 739 hb_buffer_add(buffer, hyphenChar, cluster); 744 // Returns the cluster value assigned to the first codepoint added to the buffer, which can be used 745 // to translate cluster values returned by HarfBuzz to input indices. 775 // A cluster value of zero guarantees that the inserted hyphen will be in the same 776 // cluster with the next codepoint, since there is no pre-context. 777 addHyphenToHbBuffer(buffer, hbFont, startHyphen, 0 /* cluster value */); 821 // codepoint added to the HarfBuzz buffer to the same cluster, we can make sure 822 // that they always remain in the same cluster, even if the last codepoint gets 823 // merged into another cluster (fo 734 addHyphenToHbBuffer(hb_buffer_t* buffer, hb_font_t* font, uint32_t hyphen, uint32_t cluster) argument [all...] |
/frameworks/av/media/libstagefright/webm/ |
H A D | WebmFrameThread.cpp | 98 // Initializes a webm cluster with its starting timecode. 104 // the starting timecode of the cluster; this is the timecode of the first 108 // list to hold child elements in a webm cluster (start timecode and 130 sp<WebmElement> cluster = new WebmMaster(kMkvCluster, children); local 131 cluster->write(mFd, size); 135 // Write out (possibly multiple) webm cluster(s) from frames split on video key frames. 154 // frame (the last frame), which belongs to the next cluster; also hold back on 237 ALOGV("flushing last cluster (size %zu)", outstandingFrames.size());
|
/frameworks/base/tools/apilint/ |
H A D | apilint.py | 858 def cluster(args): function in function:verify_overload_args 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/ |
H A D | ViewRootImpl.java | 4682 View cluster = focused == null ? keyboardNavigationClusterSearch(null, direction) 4692 if (cluster != null && cluster.isRootNamespace()) { 4693 // the default cluster. Try to find a non-clustered view to focus. 4694 if (cluster.restoreFocusNotInCluster()) { 4698 // otherwise skip to next actual cluster 4699 cluster = keyboardNavigationClusterSearch(null, direction); 4702 if (cluster != null && cluster.restoreFocusInCluster(realDirection)) {
|
H A D | View.java | 3046 * Flag indicating that the view is a root of a keyboard navigation cluster. 4185 * User-specified next keyboard navigation cluster in the {@link #FOCUS_FORWARD} direction. 8948 * Gets the id of the root of the next keyboard navigation cluster. 8949 * @return The next keyboard navigation cluster ID, or {@link #NO_ID} if the framework should 8959 * Sets the id of the view to use as the root of the next keyboard navigation cluster. 8960 * @param nextClusterForwardId The next cluster ID, or {@link #NO_ID} if the framework should 10134 * Returns whether this View is a root of a keyboard navigation cluster. 10136 * @return True if this view is a root of a cluster, or false otherwise. 10145 * Searches up the view hierarchy to find the top-most cluster. All deeper/nested clusters 10148 * @return the keyboard navigation cluster tha 10189 setFocusedInCluster(View cluster) argument [all...] |
/frameworks/base/core/java/android/os/ |
H A D | BatteryStats.java | 667 * given CPU cluster. 668 * @param cluster the index of the CPU cluster. 674 public abstract long getTimeAtCpuSpeed(int cluster, int step, int which); argument
|