/aoo42x/main/sal/qa/rtl/random/ |
H A D | rtl_random.cxx | 289 Statistics aStat; in TEST_F() local 301 aStat.addValue(pBuffer[0], 1); in TEST_F() 304 aStat.build(nCountMax); in TEST_F() 305 aStat.print(); in TEST_F() 307 ASSERT_TRUE(aStat.getMaxDeviation() < aStat.getAverage()) << "deviation should be less average"; in TEST_F() 321 Statistics aStat; in TEST_F() local 335 aStat.addValue(pBuffer[i], 1); in TEST_F() 339 aStat.build(nCountMax * nBufLen); in TEST_F() 340 aStat.print(); in TEST_F() 342 ASSERT_TRUE(aStat.getMaxDeviation() < aStat.getAverage()) << "deviation should be less average"; in TEST_F()
|
/aoo42x/main/tools/source/fsys/ |
H A D | unx.cxx | 437 FileStat aStat( *pTemp ); in Read() local 439 ( aStat.IsKind( FSYS_KIND_DIR ) ) ) || in Read() 441 !( aStat.IsKind( FSYS_KIND_DIR ) ) ) ) && in Read() 517 struct stat aStat; in Update() local 519 if ( stat( (char*) aPath.GetBuffer(), &aStat ) ) in Update() 543 nSize = aStat.st_size; in Update() 546 if ( ( aStat.st_mode & S_IFDIR ) == S_IFDIR ) in Update() 548 if ( ( aStat.st_mode & S_IFREG ) == S_IFREG ) in Update() 550 if ( ( aStat.st_mode & S_IFCHR ) == S_IFCHR ) in Update() 552 if ( ( aStat.st_mode & S_IFBLK ) == S_IFBLK ) in Update() [all …]
|
H A D | os2.cxx | 379 FileStat aStat( *pTemp ); in Read() local 381 ( aStat.IsKind( FSYS_KIND_DIR ) ) ) || in Read() 383 !( aStat.IsKind( FSYS_KIND_DIR ) ) ) ) && in Read() 388 pDir->ImpSortedInsert( pTemp, new FileStat( aStat ) ); in Read()
|
/aoo42x/main/embedserv/source/embed/ |
H A D | ed_ipersiststr.cxx | 81 STATSTG aStat; in createTempXInStreamFromIStream() local 403 STATSTG aStat; in InitNew() local 404 hr = pStg->Stat( &aStat, STATFLAG_NONAME ); in InitNew() 407 DWORD nStreamMode = aStat.grfMode; in InitNew() 492 STATSTG aStat; in Load() local 493 hr = pStg->Stat( &aStat, STATFLAG_NONAME ); in Load() 496 DWORD nStreamMode = aStat.grfMode; in Load() 604 STATSTG aStat; in Save() local 608 DWORD nStreamMode = aStat.grfMode; in Save() 708 STATSTG aStat; in SaveCompleted() local [all …]
|
/aoo42x/main/vcl/unx/generic/fontmanager/ |
H A D | fontcache.cxx | 300 struct stat aStat; in read() local 301 if( stat( aDir.getStr(), &aStat ) || in read() 302 ! S_ISDIR(aStat.st_mode) ) in read() 461 struct stat aStat; in read() local 464 aStat.st_size < 16 ) in read() 502 struct stat aStat; in updateDirTimestamp() local 503 if( ! stat( rDir.getStr(), &aStat ) ) in updateDirTimestamp() 504 m_aCache[ nDirID ].m_nTimestamp = (sal_Int64)aStat.st_mtime; in updateDirTimestamp() 794 struct stat aStat; in createCacheDir() local 795 if( ! stat( rDir.getStr(), &aStat ) ) in createCacheDir() [all …]
|
H A D | helper.cxx | 161 struct stat aStat; in getPrinterPathList() local 162 if( stat( aDir.getStr(), &aStat ) || ! S_ISDIR( aStat.st_mode ) ) in getPrinterPathList() 211 struct stat aStat; in getFontPath() local 212 …StringToOString( aPathBuffer.makeStringAndClear(), osl_getThreadTextEncoding() ).getStr(), &aStat ) in getFontPath() 213 || ! S_ISDIR( aStat.st_mode ) ) in getFontPath()
|
H A D | parseAFM.cxx | 129 struct stat aStat; in FileInputStream() local 130 if( ! stat( pFilename, &aStat ) && in FileInputStream() 131 S_ISREG( aStat.st_mode ) && in FileInputStream() 132 aStat.st_size > 0 in FileInputStream() 138 m_pMemory = (char*)rtl_allocateMemory( aStat.st_size ); in FileInputStream() 139 m_nLen = (unsigned int)fread( m_pMemory, 1, aStat.st_size, fp ); in FileInputStream()
|
H A D | fontmanager.cxx | 2259 struct stat aStat; in initialize() local 2263 if( ! stat( aFilePath.GetBuffer(), &aStat ) && in initialize() 2264 S_ISREG( aStat.st_mode ) ) in initialize() 2360 struct stat aStat; in initialize() local 2361 if( ! stat( aFile.GetBuffer(), &aStat ) in initialize() 2362 && S_ISREG( aStat.st_mode ) in initialize()
|
/aoo42x/main/svl/source/misc/ |
H A D | strmadpt.cxx | 387 SvLockBytesStat aStat; in available() local 388 if (m_xLockBytes->Stat(&aStat, SVSTATFLAG_DEFAULT) != ERRCODE_NONE) in available() 390 return aStat.nSize <= static_cast<sal_uInt64>(m_nPosition) ? in available() 392 static_cast<sal_Size>(aStat.nSize - m_nPosition) <= in available() 394 static_cast<sal_Int32>(aStat.nSize - m_nPosition) : in available() 438 SvLockBytesStat aStat; in getLength() local 439 if (m_xLockBytes->Stat(&aStat, SVSTATFLAG_DEFAULT) != ERRCODE_NONE) in getLength() 442 if (aStat.nSize > static_cast<sal_uInt64>(SAL_MAX_INT64)) in getLength() 445 return aStat.nSize; in getLength()
|
/aoo42x/main/tools/source/stream/ |
H A D | strmunx.cxx | 113 struct stat aStat; in LockFile() local 114 if( stat( aFileName.GetBuffer(), &aStat ) ) in LockFile() 117 if( S_ISDIR( aStat.st_mode ) ) in LockFile() 125 if( aStat.st_ino == pLock->m_aStat.st_ino ) in LockFile() 867 struct stat aStat; in SetSize() local 868 if (::fstat (fd, &aStat) < 0) in SetSize() 873 if ((sal::static_int_cast< sal_sSize >(nSize) <= aStat.st_size)) in SetSize()
|
H A D | stream.cxx | 399 SvLockBytesStat aStat; in SeekPos() local 400 xLockBytes->Stat( &aStat, SVSTATFLAG_DEFAULT ); in SeekPos() 401 nActPos = aStat.nSize; in SeekPos()
|
/aoo42x/main/sw/source/core/doc/ |
H A D | doc.cxx | 1758 aStat[n].Name = ::rtl::OUString::createFromAscii("TableCount"); in UpdateDocStat() 1759 aStat[n++].Value <<= (sal_Int32)rStat.nTbl; in UpdateDocStat() 1760 aStat[n].Name = ::rtl::OUString::createFromAscii("ImageCount"); in UpdateDocStat() 1761 aStat[n++].Value <<= (sal_Int32)rStat.nGrf; in UpdateDocStat() 1763 aStat[n++].Value <<= (sal_Int32)rStat.nOLE; in UpdateDocStat() 1767 aStat[n++].Value <<= (sal_Int32)rStat.nPage; in UpdateDocStat() 1770 aStat[n++].Value <<= (sal_Int32)rStat.nPara; in UpdateDocStat() 1771 aStat[n].Name = ::rtl::OUString::createFromAscii("WordCount"); in UpdateDocStat() 1772 aStat[n++].Value <<= (sal_Int32)rStat.nWord; in UpdateDocStat() 1774 aStat[n++].Value <<= (sal_Int32)rStat.nChar; in UpdateDocStat() [all …]
|
/aoo42x/main/svl/source/items/ |
H A D | lckbitem.cxx | 166 SvLockBytesStat aStat; in QueryValue() local 168 if ( _xVal->Stat( &aStat, SVSTATFLAG_DEFAULT ) == ERRCODE_NONE ) in QueryValue() 169 nLen = aStat.nSize; in QueryValue()
|
/aoo42x/main/unotools/source/streaming/ |
H A D | streamhelper.cxx | 91 SvLockBytesStat aStat; in getLength() local 92 m_xLockBytes->Stat( &aStat, SVSTATFLAG_DEFAULT ); in getLength() 93 return aStat.nSize; in getLength()
|
/aoo42x/main/sw/source/ui/app/ |
H A D | docsh2.cxx | 1062 SvLockBytesStat aStat; in Execute() local 1063 if ( aLockBytes.Stat( &aStat, SVSTATFLAG_DEFAULT ) == ERRCODE_NONE ) in Execute() 1065 sal_uInt32 nLen = aStat.nSize; in Execute() 1136 SvLockBytesStat aStat; in Execute() local 1137 if ( aLockBytes.Stat( &aStat, SVSTATFLAG_DEFAULT ) == ERRCODE_NONE ) in Execute() 1139 sal_uInt32 nLen = aStat.nSize; in Execute()
|
/aoo42x/main/sal/osl/unx/ |
H A D | file_misc.cxx | 709 struct stat aStat; in osl_psz_removeFile() local 711 nRet = lstat(pszPath,&aStat); in osl_psz_removeFile() 718 if ( S_ISDIR(aStat.st_mode) ) in osl_psz_removeFile()
|
/aoo42x/main/vcl/source/glyphs/ |
H A D | gcach_ftyp.cxx | 230 struct stat aStat; in Map() local 231 fstat( nFile, &aStat ); in Map() 232 mnFileSize = aStat.st_size; in Map() 253 struct stat aStat; in Map() local 254 stat( pFileName, &aStat ); in Map() 255 mnFileSize = aStat.st_size; in Map()
|
/aoo42x/main/padmin/source/ |
H A D | fontentry.cxx | 115 struct stat aStat; 117 if( stat( aSysFile.GetBuffer(), &aStat ) || ! aStat.st_size )
|
/aoo42x/main/vcl/unx/generic/gdi/ |
H A D | pspgraphics.cxx | 1142 struct stat aStat; in DoGetEmbedFontData() local 1143 if( stat( aSysPath.getStr(), &aStat ) ) in DoGetEmbedFontData() 1148 void* pFile = mmap( NULL, aStat.st_size, PROT_READ, MAP_SHARED, fd, 0 ); in DoGetEmbedFontData() 1153 *pDataLen = aStat.st_size; in DoGetEmbedFontData()
|
H A D | salprnpsp.cxx | 239 struct stat aStat; in passFileToCommandLine() local 240 if( stat( aFilename.GetBuffer(), &aStat ) ) in passFileToCommandLine() 242 … fprintf( stderr, "Tmp file %s has modes: 0%03lo\n", aFilename.GetBuffer(), (long)aStat.st_mode ); in passFileToCommandLine()
|
/aoo42x/main/vcl/unx/headless/ |
H A D | svppspgraphics.cxx | 1036 struct stat aStat; in DoGetEmbedFontData() local 1037 if( stat( aSysPath.getStr(), &aStat ) ) in DoGetEmbedFontData() 1042 void* pFile = mmap( NULL, aStat.st_size, PROT_READ, MAP_SHARED, fd, 0 ); in DoGetEmbedFontData() 1047 *pDataLen = aStat.st_size; in DoGetEmbedFontData()
|
H A D | svpprn.cxx | 187 struct stat aStat; in passFileToCommandLine() local 188 if( stat( aFilename.GetBuffer(), &aStat ) ) in passFileToCommandLine() 190 … fprintf( stderr, "Tmp file %s has modes: 0%03lo\n", aFilename.GetBuffer(), (long)aStat.st_mode ); in passFileToCommandLine()
|
/aoo42x/main/basic/source/runtime/ |
H A D | methods.cxx | 929 FileStat aStat = DirEntry( aStr ); in RTLFUNC() local 930 nLen = aStat.GetSize(); in RTLFUNC() 2803 FileStat aStat( aEntry ); in RTLFUNC() local 2804 if(!aStat.GetError() && (aStat.GetKind() & FSYS_KIND_FILE)) in RTLFUNC() 3081 FileStat aStat( aEntry ); in RTLFUNC() local 3082 aTime = Time( aStat.TimeModified() ); in RTLFUNC() 3083 aDate = Date( aStat.DateModified() ); in RTLFUNC()
|
/aoo42x/main/unotools/source/ucbhelper/ |
H A D | ucblockbytes.cxx | 1553 SvLockBytesStat aStat; in SetSize() local 1554 Stat( &aStat, (SvLockBytesStatFlag) 0 ); in SetSize() 1555 sal_uLong nSize = aStat.nSize; in SetSize()
|
/aoo42x/main/sw/source/ui/uno/ |
H A D | unotxdoc.cxx | 2197 SwDocStat aStat(pDocShell->GetDoc()->GetDocStat()); in getPropertyValue() local 2198 if(aStat.bModified) in getPropertyValue() 2199 pDocShell->GetDoc()->UpdateDocStat( aStat ); in getPropertyValue() 2203 case WID_DOC_CHAR_COUNT :nValue = aStat.nChar;break; in getPropertyValue() 2204 case WID_DOC_PARA_COUNT :nValue = aStat.nPara;break; in getPropertyValue() 2205 case WID_DOC_WORD_COUNT :nValue = aStat.nWord;break; in getPropertyValue()
|