Home
last modified time | relevance | path

Searched refs:stat (Results 1 – 25 of 49) sorted by relevance

12

/packages/modules/NetworkStack/src/com/android/networkstack/netlink/
DTcpSocketTracker.java200 final TcpStat stat = new TcpStat(); in pollSocketsInfo() local
247 stat.accumulate( in pollSocketsInfo()
259 mSentSinceLastRecv = (stat.receivedCount == 0) in pollSocketsInfo()
260 ? (mSentSinceLastRecv + stat.sentCount) : 0; in pollSocketsInfo()
261 mLatestReceivedCount = stat.receivedCount; in pollSocketsInfo()
262 mLatestPacketFailPercentage = ((stat.sentCount != 0) in pollSocketsInfo()
263 ? ((stat.retransmitCount + stat.lostCount) * 100 / stat.sentCount) : 0); in pollSocketsInfo()
334 final TcpStat stat = new TcpStat(); in calculateLatestPacketsStat() local
345 stat.sentCount = current.tcpInfo.mSegsOut; in calculateLatestPacketsStat()
346 stat.receivedCount = current.tcpInfo.mSegsIn; in calculateLatestPacketsStat()
[all …]
/packages/apps/LegacyCamera/jni/feature_stab/db_vlvm/
Ddb_rob_image_homography.cpp74 …oint_count,double *x_i,double *xp_i,double one_over_scale2,db_Statistics *stat,double thresh=DB_OU… in db_RobImageHomography_Statistics() argument
90 if(stat) in db_RobImageHomography_Statistics()
92 stat->nr_points=point_count; in db_RobImageHomography_Statistics()
93 stat->one_over_scale2=one_over_scale2; in db_RobImageHomography_Statistics()
94 stat->nr_inliers=i; in db_RobImageHomography_Statistics()
95 stat->inlier_fraction=frac; in db_RobImageHomography_Statistics()
97 stat->cost=db_RobImageHomography_Cost(H,point_count,x_i,xp_i,one_over_scale2); in db_RobImageHomography_Statistics()
98 stat->model_dimension=0; in db_RobImageHomography_Statistics()
101 stat->lambda1=log(4.0); in db_RobImageHomography_Statistics()
102 stat->lambda2=log(4.0*((double)db_maxi(1,stat->nr_points))); in db_RobImageHomography_Statistics()
[all …]
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DStorageUtils.java61 if (uid == -1 || file.stat.st_uid == uid) { in listFilesRecursive()
78 public final StructStat stat; field in StorageUtils.ConcreteFile
82 this.stat = Os.lstat(file.getAbsolutePath()); in ConcreteFile()
88 result = 31 * result + (int) (stat.st_dev ^ (stat.st_dev >>> 32)); in hashCode()
89 result = 31 * result + (int) (stat.st_ino ^ (stat.st_ino >>> 32)); in hashCode()
97 return (f.stat.st_dev == stat.st_dev) && (f.stat.st_ino == stat.st_ino); in equals()
/packages/apps/Nfc/nci/jni/
DIntervalTimer.cpp44 int stat = 0; in set() local
52 stat = timer_settime(mTimerId, 0, &ts, 0); in set()
53 if (stat == -1) LOG(ERROR) << StringPrintf("fail set timer"); in set()
54 return stat == 0; in set()
69 int stat = 0; in create() local
81 stat = timer_create(CLOCK_MONOTONIC, &se, &mTimerId); in create()
82 if (stat == -1) LOG(ERROR) << StringPrintf("fail create timer"); in create()
83 return stat == 0; in create()
DNativeLlcpSocket.cpp48 bool stat = PeerToPeer::getInstance().connectConnOriented(jniHandle, nSap); in nativeLlcpSocket_doConnect() local
51 return stat ? JNI_TRUE : JNI_FALSE; in nativeLlcpSocket_doConnect()
76 bool stat = PeerToPeer::getInstance().connectConnOriented( in nativeLlcpSocket_doConnectBy() local
80 return stat ? JNI_TRUE : JNI_FALSE; in nativeLlcpSocket_doConnectBy()
99 bool stat = PeerToPeer::getInstance().disconnectConnOriented(jniHandle); in nativeLlcpSocket_doClose() local
102 return stat ? JNI_TRUE : JNI_FALSE; in nativeLlcpSocket_doClose()
126 bool stat = PeerToPeer::getInstance().send(jniHandle, raw_ptr, bytes.size()); in nativeLlcpSocket_doSend() local
129 return stat ? JNI_TRUE : JNI_FALSE; in nativeLlcpSocket_doSend()
153 bool stat = PeerToPeer::getInstance().receive( in nativeLlcpSocket_doReceive() local
158 if (stat && (actualLen > 0)) { in nativeLlcpSocket_doReceive()
DPowerSwitch.cpp279 tNFA_STATUS stat = NFA_STATUS_FAILED; in setPowerOffSleepState() local
291 stat = NFA_PowerOffSleepMode(TRUE); in setPowerOffSleepState()
292 if (stat == NFA_STATUS_OK) { in setPowerOffSleepState()
296 LOG(ERROR) << StringPrintf("%s: API fail; stat=0x%X", fn, stat); in setPowerOffSleepState()
317 stat = NFA_PowerOffSleepMode(FALSE); in setPowerOffSleepState()
318 if (stat == NFA_STATUS_OK) { in setPowerOffSleepState()
330 LOG(ERROR) << StringPrintf("%s: API fail; stat=0x%X", fn, stat); in setPowerOffSleepState()
DNativeLlcpServiceSocket.cpp55 bool stat = false; in nativeLlcpServiceSocket_doAccept() local
63 stat = PeerToPeer::getInstance().accept(serverHandle, connHandle, miu, rw); in nativeLlcpServiceSocket_doAccept()
65 if (!stat) { in nativeLlcpServiceSocket_doAccept()
116 bool stat = false; in nativeLlcpServiceSocket_doClose() local
120 stat = PeerToPeer::getInstance().deregisterServer(jniServerHandle); in nativeLlcpServiceSocket_doClose()
DNativeNfcManager.cpp1070 tNFA_STATUS stat = NFA_STATUS_OK; in nfcManager_doInitialize() local
1093 stat = NFA_Enable(nfaDeviceManagementCallback, nfaConnectionCallback); in nfcManager_doInitialize()
1094 if (stat == NFA_STATUS_OK) { in nfcManager_doInitialize()
1100 if (stat == NFA_STATUS_OK) { in nfcManager_doInitialize()
1143 stat = NFA_GetConfig(1, configParam); in nfcManager_doInitialize()
1144 if (stat == NFA_STATUS_OK) { in nfcManager_doInitialize()
1164 stat); in nfcManager_doInitialize()
1168 stat = NFA_Disable(FALSE /* ungraceful */); in nfcManager_doInitialize()
1482 tNFA_STATUS stat = NFA_Disable(TRUE /* graceful */); in nfcManager_doDeinitialize() local
1483 if (stat == NFA_STATUS_OK) { in nfcManager_doDeinitialize()
[all …]
DPeerToPeer.cpp617 bool stat = createDataLinkConn(jniHandle, serviceName, 0); in connectConnOriented() local
619 << StringPrintf("%s: exit; h: %u stat: %u", fn, jniHandle, stat); in connectConnOriented()
620 return stat; in connectConnOriented()
639 bool stat = createDataLinkConn(jniHandle, NULL, destinationSap); in connectConnOriented() local
641 << StringPrintf("%s: exit; h: %u stat: %u", fn, jniHandle, stat); in connectConnOriented()
642 return stat; in connectConnOriented()
912 tNFA_STATUS stat = NFA_STATUS_FAILED; in receive() local
929 stat = NFA_P2pReadData(pConn->mNfaConnHandle, bufferLen, &actualDataLen2, in receive()
931 if ((stat == NFA_STATUS_OK) && (actualDataLen2 > 0)) // received some data in receive()
1609 tNFA_STATUS stat = NFA_STATUS_OK; in registerWithStack() local
[all …]
DRouteDataSet.cpp247 int stat = 0; in saveToFile() local
265 stat = chmod(filename.c_str(), S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH); in saveToFile()
266 if (stat == -1) LOG(ERROR) << StringPrintf("%s: error during chmod", fn); in saveToFile()
456 int stat = remove(filename.c_str()); in deleteFile() local
458 << StringPrintf("%s: exit %u", fn, stat == 0); in deleteFile()
459 return stat == 0; in deleteFile()
DNfcTag.cpp1062 tNFA_STATUS stat = in selectP2p() local
1064 if (stat != NFA_STATUS_OK) in selectP2p()
1065 LOG(ERROR) << StringPrintf("%s: fail select P2P; error=0x%X", fn, stat); in selectP2p()
1132 tNFA_STATUS stat = NFA_Select(mTechHandlesDiscData[foundIdx], in selectFirstTag() local
1134 if (stat != NFA_STATUS_OK) in selectFirstTag()
1135 LOG(ERROR) << StringPrintf("%s: fail select; error=0x%X", fn, stat); in selectFirstTag()
1154 tNFA_STATUS stat = NFA_STATUS_FAILED; in selectNextTagIfExists() local
1186 stat = NFA_Select(mTechHandlesDiscData[foundIdx], in selectNextTagIfExists()
1188 if (stat == NFA_STATUS_OK) { in selectNextTagIfExists()
1193 << StringPrintf("%s: fail select; error=0x%X", fn, stat); in selectNextTagIfExists()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/apps/
DRecentAppsPreferenceController.java155 final UsageStats stat = recentApps.get(i); in displayRecentApps() local
157 final String pkgName = stat.getPackageName(); in displayRecentApps()
174 System.currentTimeMillis() - stat.getLastTimeUsed(), false)); in displayRecentApps()
230 for (UsageStats stat : packageStats) { in getDisplayableRecentAppList()
232 stat.getPackageName(), mUserId); in getDisplayableRecentAppList()
236 recentApps.add(stat); in getDisplayableRecentAppList()
248 private boolean shouldIncludePkgInRecents(UsageStats stat) { in shouldIncludePkgInRecents() argument
249 final String pkgName = stat.getPackageName(); in shouldIncludePkgInRecents()
250 if (stat.getLastTimeUsed() < mCal.getTimeInMillis()) { in shouldIncludePkgInRecents()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/
DRecentAppStatsMixin.java143 for (UsageStats stat : packageStats) { in loadDisplayableRecentApps()
145 stat.getPackageName(), mUserId); in loadDisplayableRecentApps()
149 mRecentApps.add(stat); in loadDisplayableRecentApps()
160 private boolean shouldIncludePkgInRecents(UsageStats stat) { in shouldIncludePkgInRecents() argument
161 final String pkgName = stat.getPackageName(); in shouldIncludePkgInRecents()
162 if (stat.getLastTimeUsed() < mCalendar.getTimeInMillis()) { in shouldIncludePkgInRecents()
DRecentAppsPreferenceController.java138 for (UsageStats stat : mRecentApps) { in displayRecentApps()
139 final AppEntityInfo appEntityInfoInfo = createAppEntity(stat); in displayRecentApps()
150 private AppEntityInfo createAppEntity(UsageStats stat) { in createAppEntity() argument
151 final String pkgName = stat.getPackageName(); in createAppEntity()
162 System.currentTimeMillis() - stat.getLastTimeUsed(), false, in createAppEntity()
/packages/apps/Settings/src/com/android/settings/applications/
DRecentAppStatsMixin.java143 for (UsageStats stat : packageStats) { in loadDisplayableRecentApps()
145 stat.getPackageName(), mUserId); in loadDisplayableRecentApps()
149 mRecentApps.add(stat); in loadDisplayableRecentApps()
160 private boolean shouldIncludePkgInRecents(UsageStats stat) { in shouldIncludePkgInRecents() argument
161 final String pkgName = stat.getPackageName(); in shouldIncludePkgInRecents()
162 if (stat.getLastTimeUsed() < mCalendar.getTimeInMillis()) { in shouldIncludePkgInRecents()
DRecentAppsPreferenceController.java138 for (UsageStats stat : mRecentApps) { in displayRecentApps()
139 final AppEntityInfo appEntityInfoInfo = createAppEntity(stat); in displayRecentApps()
150 private AppEntityInfo createAppEntity(UsageStats stat) { in createAppEntity() argument
151 final String pkgName = stat.getPackageName(); in createAppEntity()
162 System.currentTimeMillis() - stat.getLastTimeUsed(), false, in createAppEntity()
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DCacheStorageUsageInfo.java63 StatFs stat = new StatFs(path); in loadStorageInfo() local
64 long blockSize = stat.getBlockSize(); in loadStorageInfo()
65 long availableBlocks = stat.getAvailableBlocks(); in loadStorageInfo()
66 long totalBlocks = stat.getBlockCount(); in loadStorageInfo()
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/
DRecentAppStatsMixinTest.java190 final UsageStats stat = new UsageStats(); in loadDisplayableRecentApps_oneInstantAppSet_shouldHaveOneRecentApp() local
191 stat.mLastTimeUsed = System.currentTimeMillis() + 200; in loadDisplayableRecentApps_oneInstantAppSet_shouldHaveOneRecentApp()
192 stat.mPackageName = "com.foo.barinstant"; in loadDisplayableRecentApps_oneInstantAppSet_shouldHaveOneRecentApp()
193 stats.add(stat); in loadDisplayableRecentApps_oneInstantAppSet_shouldHaveOneRecentApp()
198 when(mAppState.getEntry(stat.mPackageName, UserHandle.myUserId())).thenReturn(statEntry); in loadDisplayableRecentApps_oneInstantAppSet_shouldHaveOneRecentApp()
/packages/apps/Gallery2/src/com/android/gallery3d/ingest/data/
DImportTask.java114 StatFs stat = new StatFs(path); in hasSpaceForSize() local
115 return stat.getAvailableBlocks() * (long) stat.getBlockSize() > size; in hasSpaceForSize()
/packages/apps/LegacyCamera/src/com/android/camera/
DStorage.java122 StatFs stat = new StatFs(DIRECTORY); in getAvailableSpace() local
123 return stat.getAvailableBlocks() * (long) stat.getBlockSize(); in getAvailableSpace()
/packages/services/Car/tools/perf/app-launch-test/
Dapp_launch_perf_test.sh69 local stat=
111 stat=($(calc_stat ${app_launch_map[${key}]}))
/packages/services/Car/procfs-inspector/server/
Ddirectory.cpp49 struct stat buf; in getOwnerUserId()
51 if (stat(str().c_str(), &buf)) { in getOwnerUserId()
/packages/modules/SdkExtensions/derive_sdk/
Dderive_sdk.cpp48 struct stat statbuf; in main()
49 if (stat(path.c_str(), &statbuf) == 0) { in main()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DDictionaryStats.java97 for (DictionaryStats stat : stats) { in toString()
99 builder.append(stat.toString()); in toString()
/packages/services/Car/car-bugreportd/
Dmain.cpp405 auto callback = [](const char* child, const struct stat*, int file_type, struct FTW*) -> int { in recursiveRemoveDir() argument
424 struct stat sb; in createTempDir()
425 if (TEMP_FAILURE_RETRY(stat(dir, &sb)) == 0) { in createTempDir()

12