/external/libvpx/libvpx/ |
vpxstats.c | 19 int stats_open_file(stats_io_t *stats, const char *fpf, int pass) { 21 stats->pass = pass; 24 stats->file = fopen(fpf, "wb"); 25 stats->buf.sz = 0; 26 stats->buf.buf = NULL; 27 res = (stats->file != NULL); 31 stats->file = fopen(fpf, "rb"); 33 if (stats->file == NULL) fatal("First-pass stats file does not exist!"); 35 if (fseek(stats->file, 0, SEEK_END) [all...] |
vpxstats.h | 33 int stats_open_file(stats_io_t *stats, const char *fpf, int pass); 34 int stats_open_mem(stats_io_t *stats, int pass); 35 void stats_close(stats_io_t *stats, int last_pass); 36 void stats_write(stats_io_t *stats, const void *pkt, size_t len); 37 vpx_fixed_buf_t stats_get(stats_io_t *stats);
|
/external/perfetto/src/ftrace_reader/ |
cpu_stats_parser_unittest.cc | 22 FtraceCpuStats stats{}; 23 EXPECT_TRUE(DumpCpuStats(text, &stats)); 25 EXPECT_EQ(stats.entries, 1); 26 EXPECT_EQ(stats.overrun, 2); 27 EXPECT_EQ(stats.commit_overrun, 3); 28 EXPECT_EQ(stats.bytes_read, 4); 29 EXPECT_EQ(stats.oldest_event_ts, 5123.000); 30 EXPECT_EQ(stats.now_ts, 6123.123); 31 EXPECT_EQ(stats.dropped_events, 7); 32 EXPECT_EQ(stats.read_events, 8) [all...] |
/external/valgrind/none/tests/solaris/ |
resolv.stdout.exp | 1 PRE stats->nscount = 0 2 POST stats->nscount = 1
|
resolv.c | 11 struct __res_state stats; local 12 bzero(&stats, sizeof(stats)); 14 printf("PRE stats->nscount = %d\n", stats.nscount ); 16 res_ninit(&stats); 17 printf("POST stats->nscount = %d\n", ( int ) stats.nscount > 0 );
|
/external/webrtc/webrtc/modules/audio_coding/acm2/ |
call_statistics_unittest.cc | 20 AudioDecodingCallStats stats; local 22 stats = call_stats.GetDecodingStatistics(); 23 EXPECT_EQ(0, stats.calls_to_neteq); 24 EXPECT_EQ(0, stats.calls_to_silence_generator); 25 EXPECT_EQ(0, stats.decoded_normal); 26 EXPECT_EQ(0, stats.decoded_cng); 27 EXPECT_EQ(0, stats.decoded_plc); 28 EXPECT_EQ(0, stats.decoded_plc_cng); 33 AudioDecodingCallStats stats; local 41 stats = call_stats.GetDecodingStatistics() [all...] |
/external/tensorflow/tensorflow/contrib/tensor_forest/kernels/v4/ |
stat_utils.cc | 27 // = 1 - (1 / C^2) ( stats.square() + 2 stats.sum() + #_classes) 28 // = 1 - ( stats.square() + 2 stats.sum() + #_classes) / (smoothed_sum * 32 // smoothed_sum = stats.sum() + #_classes 33 float GiniImpurity(const LeafStat& stats, int32 num_classes) { 34 const float smoothed_sum = num_classes + stats.weight_sum(); 35 return 1.0 - ((stats.classification().gini().square() + 36 2 * stats.weight_sum() + num_classes) / 40 float WeightedGiniImpurity(const LeafStat& stats, int32 num_classes) [all...] |
stat_utils.h | 24 float GiniImpurity(const LeafStat& stats, int32 num_classes); 27 float WeightedGiniImpurity(const LeafStat& stats, int32 num_classes); 31 void UpdateGini(LeafStat* stats, float old_val, float weight); 33 // Returns the variance in stats for the given output. 34 float Variance(const LeafStat& stats, int output); 37 float TotalVariance(const LeafStat& stats); 39 // ------- functions used by C++ stats classes -------- //
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
NotificationStatsTest.java | 40 NotificationStats stats = new NotificationStats(); local 42 assertFalse(stats.hasSeen()); 43 assertFalse(stats.hasDirectReplied()); 44 assertFalse(stats.hasExpanded()); 45 assertFalse(stats.hasInteracted()); 46 assertFalse(stats.hasViewedSettings()); 47 assertFalse(stats.hasSnoozed()); 48 assertEquals(NotificationStats.DISMISSAL_NOT_DISMISSED, stats.getDismissalSurface()); 53 NotificationStats stats = new NotificationStats(); local 54 stats.setSeen() 61 NotificationStats stats = new NotificationStats(); local 69 NotificationStats stats = new NotificationStats(); local 77 NotificationStats stats = new NotificationStats(); local 85 NotificationStats stats = new NotificationStats(); local 93 NotificationStats stats = new NotificationStats(); local 101 NotificationStats stats = new NotificationStats(); local [all...] |
/tools/tradefederation/core/tests/src/com/android/tradefed/device/ |
TopHelperTest.java | 56 List<TopStats> stats = mTop.getTopStats(); local 58 assertEquals(1, stats.size()); 60 assertEquals(17.0, stats.get(0).mTotalPercent, 0.0001); 61 assertEquals(7.0, stats.get(0).mUserPercent, 0.0001); 62 assertEquals(5.0, stats.get(0).mSystemPercent, 0.0001); 63 assertEquals(3.0, stats.get(0).mIowPercent, 0.0001); 64 assertEquals(2.0, stats.get(0).mIrqPercent, 0.0001); 80 List<TopStats> stats = mTop.getTopStats(); local 82 assertEquals(0, stats.size()); 84 assertNull(TopHelper.getTotalAverage(stats)); [all...] |
CpuStatsCollectorTest.java | 163 CpuStats stats = cpuStats.get("Total").get(0); local 166 assertEquals(2, stats.mTimeStats.get(TimeCategory.USER).intValue()); 167 assertEquals(3, stats.mTimeStats.get(TimeCategory.NICE).intValue()); 168 assertEquals(5, stats.mTimeStats.get(TimeCategory.SYS).intValue()); 169 assertEquals(7, stats.mTimeStats.get(TimeCategory.IDLE).intValue()); 170 assertEquals(11, stats.mTimeStats.get(TimeCategory.IOW).intValue()); 171 assertEquals(13, stats.mTimeStats.get(TimeCategory.IRQ).intValue()); 172 assertEquals(17, stats.mTimeStats.get(TimeCategory.SIRQ).intValue()); 175 assertEquals(100.0 * 2 / 58, stats.getPercentage(TimeCategory.USER), 0.01); 176 assertEquals(100.0 * 3 / 58, stats.getPercentage(TimeCategory.NICE), 0.01) 240 CpuStats stats = cpuStats.get("Total").get(0); local 273 Map<String, List<CpuStats>> stats = mCollector.getCpuStats(); local 316 Map<String, List<CpuStats>> stats = mCollector.getCpuStats(); local [all...] |
/external/guava/guava-tests/test/com/google/common/cache/ |
CacheManualTest.java | 31 CacheStats stats = cache.stats(); local 32 assertEquals(0, stats.missCount()); 33 assertEquals(0, stats.loadSuccessCount()); 34 assertEquals(0, stats.loadExceptionCount()); 35 assertEquals(0, stats.hitCount()); 41 stats = cache.stats(); 42 assertEquals(1, stats.missCount()); 43 assertEquals(0, stats.loadSuccessCount()) 107 CacheStats stats = cache.stats(); local [all...] |
CacheStatsTest.java | 29 CacheStats stats = new CacheStats(0, 0, 0, 0, 0, 0); local 30 assertEquals(0, stats.requestCount()); 31 assertEquals(0, stats.hitCount()); 32 assertEquals(1.0, stats.hitRate()); 33 assertEquals(0, stats.missCount()); 34 assertEquals(0.0, stats.missRate()); 35 assertEquals(0, stats.loadSuccessCount()); 36 assertEquals(0, stats.loadExceptionCount()); 37 assertEquals(0.0, stats.loadExceptionRate()); 38 assertEquals(0, stats.loadCount()) 45 CacheStats stats = new CacheStats(11, 13, 17, 19, 23, 27); local [all...] |
/external/trappy/trappy/stats/ |
__init__.py | 17 from trappy.stats import Aggregator 18 from trappy.stats import Correlator 19 from trappy.stats import Trigger 20 from trappy.stats import Topology 21 from trappy.stats import Indexer 22 from trappy.stats import StatConf
|
/tools/loganalysis/tests/src/com/android/loganalysis/parser/ |
BatteryStatsDetailedInfoParserTest.java | 79 BatteryStatsDetailedInfoItem stats = new BatteryStatsDetailedInfoParser().parse(inputBlock); local 81 assertEquals(8465622, stats.getTimeOnBattery()); 82 assertEquals(910619, stats.getScreenOnTime()); 83 assertNotNull(stats.getWakelockItem()); 84 assertNotNull(stats.getInterruptItem()); 85 assertNotNull(stats.getProcessUsageItem()); 120 BatteryStatsDetailedInfoItem stats = new BatteryStatsDetailedInfoParser().parse(inputBlock); local 122 assertEquals(8465622, stats.getTimeOnBattery()); 123 assertEquals(910619, stats.getScreenOnTime()); 125 assertNull(stats.getWakelockItem()) [all...] |
/external/caliper/caliper/src/main/java/com/google/caliper/worker/ |
AllocationRecorder.java | 39 AllocationStats stats = stopRecording(1); local 40 if (stats.getAllocationCount() != 1 || stats.getAllocationSize() < 1) { 44 stats));
|
/external/compiler-rt/lib/asan/ |
asan_stats.cc | 44 Printf("Stats: %zuM malloced (%zuM for red zones) by %zu calls\n", 46 Printf("Stats: %zuM realloced by %zu calls\n", realloced>>20, reallocs); 47 Printf("Stats: %zuM freed by %zu calls\n", freed>>20, frees); 48 Printf("Stats: %zuM really freed by %zu calls\n", 50 Printf("Stats: %zuM (%zuM-%zuM) mmaped; %zu maps, %zu unmaps\n", 55 Printf("Stats: malloc large: %zu\n", malloc_large); 58 void AsanStats::MergeFrom(const AsanStats *stats) { 60 const uptr *src_ptr = reinterpret_cast<const uptr*>(stats); 79 accumulated_stats->MergeFrom(&t->stats()); 82 static void GetAccumulatedStats(AsanStats *stats) { 109 AsanStats stats; local 123 AsanStats stats; local 140 AsanStats stats; local 150 AsanStats stats; local 156 AsanStats stats; local [all...] |
/external/tensorflow/tensorflow/examples/speech_commands/ |
accuracy_utils_test.cc | 43 StreamingAccuracyStats stats; local 46 &stats); 47 EXPECT_EQ(2, stats.how_many_ground_truth_words); 48 EXPECT_EQ(2, stats.how_many_ground_truth_matched); 49 EXPECT_EQ(1, stats.how_many_false_positives); 50 EXPECT_EQ(1, stats.how_many_correct_words); 51 EXPECT_EQ(1, stats.how_many_wrong_words); 55 StreamingAccuracyStats stats; local 56 PrintAccuracyStats(stats);
|
/external/icu/android_icu4j/src/main/java/android/icu/impl/ |
ICURWLock.java | 44 private Stats stats = null; field in class:ICURWLock 49 public final static class Stats { 75 private Stats() { 78 private Stats(int rc, int mrc, int wrc, int wc, int wwc) { 86 private Stats(Stats rhs) { 91 * Return a string listing all the stats. 104 * Reset the stats. Returns existing stats, if any [all...] |
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
ICURWLock.java | 42 private Stats stats = null; field in class:ICURWLock 47 public final static class Stats { 73 private Stats() { 76 private Stats(int rc, int mrc, int wrc, int wc, int wwc) { 84 private Stats(Stats rhs) { 89 * Return a string listing all the stats. 102 * Reset the stats. Returns existing stats, if any [all...] |
/cts/tests/sensor/src/android/hardware/cts/helpers/sensorverification/ |
FrequencyVerificationTest.java | 39 SensorStats stats = new SensorStats(); local 41 verification.verify(getEnvironment(1000), stats); 42 verifyStats(stats, true, 1000.0); 44 stats = new SensorStats(); 46 verification.verify(getEnvironment(950), stats); 47 verifyStats(stats, true, 1000.0); 49 stats = new SensorStats(); 51 verification.verify(getEnvironment(1050), stats); 52 verifyStats(stats, true, 1000.0); 54 stats = new SensorStats() [all...] |
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowSyncResult.java | 19 Field f = SyncResult.class.getDeclaredField("stats"); 31 return result.syncAlreadyInProgress || result.stats.numIoExceptions > 0; 36 return result.stats.numParseExceptions > 0 37 || result.stats.numConflictDetectedExceptions > 0 38 || result.stats.numAuthExceptions > 0 51 return ((result.stats.numDeletes > 0) && !result.tooManyDeletions) 52 || result.stats.numInserts > 0 53 || result.stats.numUpdates > 0; 69 result.stats.clear(); 76 private SyncStats stats; field in class:ShadowSyncResult.ShadowSyncStats [all...] |
/external/webrtc/webrtc/modules/rtp_rtcp/source/ |
rtcp_utility_unittest.cc | 31 RTCPUtility::NackStats stats; local 32 EXPECT_EQ(0U, stats.unique_requests()); 33 EXPECT_EQ(0U, stats.requests()); 34 stats.ReportRequest(10); 35 EXPECT_EQ(1U, stats.unique_requests()); 36 EXPECT_EQ(1U, stats.requests()); 38 stats.ReportRequest(10); 39 EXPECT_EQ(1U, stats.unique_requests()); 40 stats.ReportRequest(11); 41 EXPECT_EQ(2U, stats.unique_requests()) 54 RTCPUtility::NackStats stats; local [all...] |
/frameworks/opt/telephony/src/java/com/android/internal/telephony/metrics/ |
ModemPowerMetrics.java | 47 CellularBatteryStats stats = getStats(); local 48 if (stats != null) { 49 m.loggingDurationMs = stats.getLoggingDurationMs(); 50 m.energyConsumedMah = stats.getEnergyConsumedMaMs() 52 m.numPacketsTx = stats.getNumPacketsTx(); 53 m.cellularKernelActiveTimeMs = stats.getKernelActiveTimeMs(); 54 if (stats.getTimeInRxSignalStrengthLevelMs() != null 55 && stats.getTimeInRxSignalStrengthLevelMs().length > 0) { 56 m.timeInVeryPoorRxSignalLevelMs = stats.getTimeInRxSignalStrengthLevelMs()[0]; 58 m.sleepTimeMs = stats.getSleepTimeMs() [all...] |
/art/compiler/optimizing/ |
instruction_simplifier_arm.h | 28 InstructionSimplifierArm(HGraph* graph, OptimizingCompilerStats* stats) 29 : HOptimization(graph, kInstructionSimplifierArmPassName, stats) {}
|