| /external/cronet/third_party/apache-portable-runtime/src/locks/unix/ |
| D | thread_rwlock.c | 29 apr_status_t stat; in thread_rwlock_cleanup() local 31 stat = pthread_rwlock_destroy(&rwlock->rwlock); in thread_rwlock_cleanup() 33 if (stat) { in thread_rwlock_cleanup() 34 stat = errno; in thread_rwlock_cleanup() 37 return stat; in thread_rwlock_cleanup() 44 apr_status_t stat; in apr_thread_rwlock_create() local 49 if ((stat = pthread_rwlock_init(&new_rwlock->rwlock, NULL))) { in apr_thread_rwlock_create() 51 stat = errno; in apr_thread_rwlock_create() 53 return stat; in apr_thread_rwlock_create() 66 apr_status_t stat; in apr_thread_rwlock_rdlock() local [all …]
|
| /external/tensorflow/tensorflow/core/profiler/utils/ |
| D | xplane_builder_test.cc | 44 *xplane_builder.GetOrCreateStatMetadata("bool stat"), kBoolStat); in TEST() 46 *xplane_builder.GetOrCreateStatMetadata("int32 stat"), kInt32Stat); in TEST() 48 *xplane_builder.GetOrCreateStatMetadata("int64 stat"), kInt64Stat); in TEST() 50 *xplane_builder.GetOrCreateStatMetadata("uint32 stat"), kUint32Stat); in TEST() 52 *xplane_builder.GetOrCreateStatMetadata("uint64 stat"), kUint64Stat); in TEST() 54 *xplane_builder.GetOrCreateStatMetadata("string stat"), kStringStat); in TEST() 56 *xplane_builder.GetOrCreateStatMetadata("float stat"), kFloatStat); in TEST() 58 *xplane_builder.GetOrCreateStatMetadata("double stat"), kDoubleStat); in TEST() 60 *xplane_builder.GetOrCreateStatMetadata("ref stat"), in TEST() 69 xevent.ForEachStat([&](const XStatVisitor& stat) { in TEST() argument [all …]
|
| D | xplane_builder.h | 49 // NOTE: A stat shouldn't have existed for the given metadata. 50 // Adds a stat for the given metadata and sets its value. 56 // Adds or finds a stat for the given metadata and sets its value. 62 // Adds a stat by copying a stat from another XPlane. Does not check if a stat 69 // Same as above but overrides an existing stat with the same metadata. 97 for (XStat& stat : *stats_owner_->mutable_stats()) { in ForEachStat() 98 for_each_stat(&stat); in ForEachStat() 103 for (auto& stat : *stats_owner_->mutable_stats()) { in GetStat() 104 if (stat.metadata_id() == stat_metadata.id()) { in GetStat() 105 return &stat; in GetStat() [all …]
|
| D | gpu_event_stats.cc | 31 event->ForEachStat([&](const XStatVisitor& stat) { in GpuEventStats() argument 32 if (!stat.Type().has_value()) return; in GpuEventStats() 33 switch (stat.Type().value()) { in GpuEventStats() 35 tf_op_fullname = stat.StrOrRefValue(); in GpuEventStats() 38 equation = stat.StrOrRefValue(); in GpuEventStats() 41 tensor_shapes = stat.StrOrRefValue(); in GpuEventStats() 45 absl::StrSplit(stat.StrOrRefValue(), kAnnotationDelimiter); in GpuEventStats() 48 hlo_module_name = stat.StrOrRefValue(); in GpuEventStats() 51 program_id = stat.IntOrUintValue(); in GpuEventStats() 54 kernel_details = stat.StrOrRefValue(); in GpuEventStats() [all …]
|
| /external/toybox/toys/other/ |
| D | stat.c | 1 /* stat.c : display file or file system status 5 USE_STAT(NEWTOY(stat, "<1c:(format)fLt", TOYFLAG_BIN)) 7 config STAT 8 bool stat 11 usage: stat [-tfL] [-c FORMAT] FILE... 47 struct stat st; 49 } stat; 76 struct stat *stat = (struct stat *)&TT.stat; in print_stat() local 78 if (type == 'a') out('o', stat->st_mode&~S_IFMT); in print_stat() 82 mode_to_string(stat->st_mode, str); in print_stat() [all …]
|
| /external/chromium-trace/catapult/dependency_manager/dependency_manager/ |
| D | dependency_manager_util_unittest.py | 7 import stat 31 os.chmod(self.read_only_path, stat.S_IRUSR) 36 os.chmod(self.writable_path, stat.S_IRUSR | stat.S_IWUSR) 41 os.chmod(self.executable_path, stat.S_IRWXU) 46 os.chmod(self.sub_read_only_path, stat.S_IRUSR) 51 os.chmod(self.sub_writable_path, stat.S_IRUSR | stat.S_IWUSR) 56 os.chmod(self.sub_executable_path, stat.S_IRWXU) 87 stat.S_IRUSR & stat.S_IMODE(os.stat(read_only_path).st_mode)) 89 stat.S_IRUSR & stat.S_IMODE(os.stat(sub_read_only_path).st_mode)) 91 stat.S_IRUSR & stat.S_IMODE(os.stat(writable_path).st_mode)) [all …]
|
| /external/apache-commons-math/src/main/java/org/apache/commons/math3/stat/inference/ |
| D | TestUtils.java | 17 package org.apache.commons.math3.stat.inference; 33 import org.apache.commons.math3.stat.descriptive.StatisticalSummary; 68 * @see org.apache.commons.math3.stat.inference.TTest#homoscedasticT(double[], double[]) 76 …ommons.math3.stat.inference.TTest#homoscedasticT(org.apache.commons.math3.stat.descriptive.Statist… 85 …* @see org.apache.commons.math3.stat.inference.TTest#homoscedasticTTest(double[], double[], double) 95 * @see org.apache.commons.math3.stat.inference.TTest#homoscedasticTTest(double[], double[]) 103 …mons.math3.stat.inference.TTest#homoscedasticTTest(org.apache.commons.math3.stat.descriptive.Stati… 112 * @see org.apache.commons.math3.stat.inference.TTest#pairedT(double[], double[]) 121 * @see org.apache.commons.math3.stat.inference.TTest#pairedTTest(double[], double[], double) 131 * @see org.apache.commons.math3.stat.inference.TTest#pairedTTest(double[], double[]) [all …]
|
| /external/flatbuffers/grpc/tests/ |
| D | JavaGrpcTest.java | 19 import MyGame.Example.Stat; 54 public void store(Monster request, io.grpc.stub.StreamObserver<Stat> responseObserver) { in store() 60 Stat stat = GameFactory.createStat("Hello " + request.name(), 100, 10); in store() local 61 responseObserver.onNext(stat); in store() 66 public void retrieve(Stat request, io.grpc.stub.StreamObserver<Monster> responseObserver) { in retrieve() 76 public StreamObserver<Monster> getMaxHitPoint(final StreamObserver<Stat> responseObserver) { in getMaxHitPoint() 81 … public StreamObserver<Monster> getMinMaxHitPoints(final StreamObserver<Stat> responseObserver) { in getMinMaxHitPoints() 85 …private StreamObserver<Monster> computeMinMax(final StreamObserver<Stat> responseObserver, final b… in computeMinMax() 119 … Stat maxHpStat = GameFactory.createStat(maxHpMonsterName.get(), maxHp.get(), maxHpCount.get()); in computeMinMax() 124 … Stat minHpStat = GameFactory.createStat(minHpMonsterName.get(), minHp.get(), minHpCount.get()); in computeMinMax() [all …]
|
| /external/robolectric/robolectric/src/test/java/org/robolectric/shadows/ |
| D | ShadowPosixTest.java | 15 /** Unit tests for ShadowPosix to check values returned from stat() call. */ 32 StructStat stat = (StructStat) ShadowPosix.stat(path); in getStatAtLeastLollipop_returnCorrectMode() local 33 assertThat(stat.st_mode).isEqualTo(OsConstantsValues.S_IFREG_VALUE); in getStatAtLeastLollipop_returnCorrectMode() 38 StructStat stat = (StructStat) ShadowPosix.stat(path); in getStatAtLeastLollipop_returnCorrectSize() local 39 assertThat(stat.st_size).isEqualTo(file.length()); in getStatAtLeastLollipop_returnCorrectSize() 44 StructStat stat = (StructStat) ShadowPosix.stat(path); in getStatAtLeastLollipop_returnCorrectModifiedTime() local 45 assertThat(stat.st_mtime).isEqualTo(Duration.ofMillis(file.lastModified()).getSeconds()); in getStatAtLeastLollipop_returnCorrectModifiedTime() 50 Object stat = ShadowPosix.stat(path); in getStatBelowLollipop_returnCorrectMode() local 51 int mode = ReflectionHelpers.getField(stat, "st_mode"); in getStatBelowLollipop_returnCorrectMode() 57 Object stat = ShadowPosix.stat(path); in getStatBelowLollipop_returnCorrectSize() local [all …]
|
| /external/cronet/third_party/apache-portable-runtime/src/threadproc/unix/ |
| D | thread.c | 43 apr_status_t stat; in apr_threadattr_create() local 47 stat = pthread_attr_init(&(*new)->attr); in apr_threadattr_create() 49 if (stat == 0) { in apr_threadattr_create() 55 stat = errno; in apr_threadattr_create() 58 return stat; in apr_threadattr_create() 70 apr_status_t stat; local 74 if ((stat = pthread_attr_setdetachstate(&attr->attr, &arg)) == 0) { 76 if ((stat = pthread_attr_setdetachstate(&attr->attr, 83 stat = errno; 86 return stat; [all …]
|
| /external/apache-commons-math/src/main/java/org/apache/commons/math/stat/inference/ |
| D | TestUtils.java | 17 package org.apache.commons.math.stat.inference; 21 import org.apache.commons.math.stat.descriptive.StatisticalSummary; 156 * @see org.apache.commons.math.stat.inference.TTest#homoscedasticT(double[], double[]) 164 ….commons.math.stat.inference.TTest#homoscedasticT(org.apache.commons.math.stat.descriptive.Statist… 173 … * @see org.apache.commons.math.stat.inference.TTest#homoscedasticTTest(double[], double[], double) 182 * @see org.apache.commons.math.stat.inference.TTest#homoscedasticTTest(double[], double[]) 190 …ommons.math.stat.inference.TTest#homoscedasticTTest(org.apache.commons.math.stat.descriptive.Stati… 199 * @see org.apache.commons.math.stat.inference.TTest#pairedT(double[], double[]) 207 * @see org.apache.commons.math.stat.inference.TTest#pairedTTest(double[], double[], double) 216 * @see org.apache.commons.math.stat.inference.TTest#pairedTTest(double[], double[]) [all …]
|
| /external/tensorflow/tensorflow/core/util/ |
| D | stats_calculator_test.cc | 79 Stat<double> stat; in TEST() local 80 EXPECT_TRUE(stat.empty()); in TEST() 81 EXPECT_TRUE(stat.all_same()); in TEST() 82 stat.UpdateStat(1); in TEST() 83 EXPECT_TRUE(stat.all_same()); in TEST() 84 stat.UpdateStat(-1.0); in TEST() 85 EXPECT_FALSE(stat.all_same()); in TEST() 86 stat.UpdateStat(100); in TEST() 87 stat.UpdateStat(0); in TEST() 88 EXPECT_EQ(4, stat.count()); in TEST() [all …]
|
| /external/flatbuffers/tests/MyGame/Example/ |
| D | Stat.py | 9 class Stat(object): class 15 x = Stat() 27 # Stat 31 # Stat 38 # Stat 45 # Stat 78 stat = Stat() 79 stat.Init(buf, pos) 80 return cls.InitFromObj(stat) 83 def InitFromObj(cls, stat): argument [all …]
|
| D | MonsterStorageGrpc.java | 40 MyGame.Example.Stat> METHOD_STORE = getStoreMethod(); 43 MyGame.Example.Stat> getStoreMethod; 59 private static volatile FlatbuffersUtils.FBExtactor<MyGame.Example.Stat> extractorOfStat; 60 private static FlatbuffersUtils.FBExtactor<MyGame.Example.Stat> getExtractorOfStat() { in getExtractorOfStat() 64 extractorOfStat = new FlatbuffersUtils.FBExtactor<MyGame.Example.Stat>() { in getExtractorOfStat() 65 public MyGame.Example.Stat extract (ByteBuffer buffer) { in getExtractorOfStat() 66 return MyGame.Example.Stat.getRootAsStat(buffer); in getExtractorOfStat() 75 MyGame.Example.Stat> getStoreMethod() { in getStoreMethod() 76 io.grpc.MethodDescriptor<MyGame.Example.Monster, MyGame.Example.Stat> getStoreMethod; in getStoreMethod() 81 io.grpc.MethodDescriptor.<MyGame.Example.Monster, MyGame.Example.Stat>newBuilder() in getStoreMethod() [all …]
|
| D | Stat.cs | 12 public struct Stat : IFlatbufferObject struct 17 public static Stat GetRootAsStat(ByteBuffer _bb) { return GetRootAsStat(_bb, new Stat()); } in GetRootAsStat() 18 …public static Stat GetRootAsStat(ByteBuffer _bb, Stat obj) { return (obj.__assign(_bb.GetInt(_bb.P… in GetRootAsStat() 20 public Stat __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } in __assign() 34 public static Offset<MyGame.Example.Stat> CreateStat(FlatBufferBuilder builder, in CreateStat() argument 39 Stat.AddVal(builder, val); in CreateStat() 40 Stat.AddId(builder, idOffset); in CreateStat() 41 Stat.AddCount(builder, count); in CreateStat() 42 return Stat.EndStat(builder); in CreateStat() 49 public static Offset<MyGame.Example.Stat> EndStat(FlatBufferBuilder builder) { in EndStat() argument [all …]
|
| D | Stat.java | 11 public final class Stat extends Table { class 13 public static Stat getRootAsStat(ByteBuffer _bb) { return getRootAsStat(_bb, new Stat()); } in getRootAsStat() 14 …public static Stat getRootAsStat(ByteBuffer _bb, Stat obj) { _bb.order(ByteOrder.LITTLE_ENDIAN); r… in getRootAsStat() 16 public Stat __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } in __assign() 31 Stat.addVal(builder, val); in createStat() 32 Stat.addId(builder, idOffset); in createStat() 33 Stat.addCount(builder, count); in createStat() 34 return Stat.endStat(builder); in createStat() 53 public static Stat __lookup_by_key(Stat obj, int vectorLocation, int key, ByteBuffer bb) { in __lookup_by_key() 68 return (obj == null ? new Stat() : obj).__assign(tableOffset, bb); in __lookup_by_key() [all …]
|
| /external/flatbuffers/tests/monster_test_suffix/ext_only/ |
| D | monster_test.grpc.fb.h | 38 …onst flatbuffers::grpc::Message<Monster>& request, flatbuffers::grpc::Message<Stat>* response) = 0; 39 …std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< flatbuffers::grpc::Message<Stat>>> As… in AsyncStore() 40 …r< ::grpc::ClientAsyncResponseReaderInterface< flatbuffers::grpc::Message<Stat>>>(AsyncStoreRaw(co… in AsyncStore() 42 …std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< flatbuffers::grpc::Message<Stat>>> Pr… in PrepareAsyncStore() 43 …r< ::grpc::ClientAsyncResponseReaderInterface< flatbuffers::grpc::Message<Stat>>>(PrepareAsyncStor… in PrepareAsyncStore() 45 …ster>>> Retrieve(::grpc::ClientContext* context, const flatbuffers::grpc::Message<Stat>& request) { in Retrieve() 48 …Retrieve(::grpc::ClientContext* context, const flatbuffers::grpc::Message<Stat>& request, ::grpc::… in AsyncRetrieve() 51 …Retrieve(::grpc::ClientContext* context, const flatbuffers::grpc::Message<Stat>& request, ::grpc::… in PrepareAsyncRetrieve() 54 …ter>>> GetMaxHitPoint(::grpc::ClientContext* context, flatbuffers::grpc::Message<Stat>* response) { in GetMaxHitPoint() 57 …GetMaxHitPoint(::grpc::ClientContext* context, flatbuffers::grpc::Message<Stat>* response, ::grpc:… in AsyncGetMaxHitPoint() [all …]
|
| /external/flatbuffers/tests/ |
| D | monster_test.grpc.fb.h | 38 …onst flatbuffers::grpc::Message<Monster>& request, flatbuffers::grpc::Message<Stat>* response) = 0; 39 …std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< flatbuffers::grpc::Message<Stat>>> As… in AsyncStore() 40 …r< ::grpc::ClientAsyncResponseReaderInterface< flatbuffers::grpc::Message<Stat>>>(AsyncStoreRaw(co… in AsyncStore() 42 …std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< flatbuffers::grpc::Message<Stat>>> Pr… in PrepareAsyncStore() 43 …r< ::grpc::ClientAsyncResponseReaderInterface< flatbuffers::grpc::Message<Stat>>>(PrepareAsyncStor… in PrepareAsyncStore() 45 …ster>>> Retrieve(::grpc::ClientContext* context, const flatbuffers::grpc::Message<Stat>& request) { in Retrieve() 48 …Retrieve(::grpc::ClientContext* context, const flatbuffers::grpc::Message<Stat>& request, ::grpc::… in AsyncRetrieve() 51 …Retrieve(::grpc::ClientContext* context, const flatbuffers::grpc::Message<Stat>& request, ::grpc::… in PrepareAsyncRetrieve() 54 …ter>>> GetMaxHitPoint(::grpc::ClientContext* context, flatbuffers::grpc::Message<Stat>* response) { in GetMaxHitPoint() 57 …GetMaxHitPoint(::grpc::ClientContext* context, flatbuffers::grpc::Message<Stat>* response, ::grpc:… in AsyncGetMaxHitPoint() [all …]
|
| D | monster_test_generated.grpc.fb.h | 38 …onst flatbuffers::grpc::Message<Monster>& request, flatbuffers::grpc::Message<Stat>* response) = 0; 39 …std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< flatbuffers::grpc::Message<Stat>>> As… in AsyncStore() 40 …r< ::grpc::ClientAsyncResponseReaderInterface< flatbuffers::grpc::Message<Stat>>>(AsyncStoreRaw(co… in AsyncStore() 42 …std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< flatbuffers::grpc::Message<Stat>>> Pr… in PrepareAsyncStore() 43 …r< ::grpc::ClientAsyncResponseReaderInterface< flatbuffers::grpc::Message<Stat>>>(PrepareAsyncStor… in PrepareAsyncStore() 45 …ster>>> Retrieve(::grpc::ClientContext* context, const flatbuffers::grpc::Message<Stat>& request) { in Retrieve() 48 …Retrieve(::grpc::ClientContext* context, const flatbuffers::grpc::Message<Stat>& request, ::grpc::… in AsyncRetrieve() 51 …Retrieve(::grpc::ClientContext* context, const flatbuffers::grpc::Message<Stat>& request, ::grpc::… in PrepareAsyncRetrieve() 54 …ter>>> GetMaxHitPoint(::grpc::ClientContext* context, flatbuffers::grpc::Message<Stat>* response) { in GetMaxHitPoint() 57 …GetMaxHitPoint(::grpc::ClientContext* context, flatbuffers::grpc::Message<Stat>* response, ::grpc:… in AsyncGetMaxHitPoint() [all …]
|
| /external/flatbuffers/tests/monster_test_suffix/filesuffix_only/ |
| D | monster_test.grpc.fb.h | 38 …onst flatbuffers::grpc::Message<Monster>& request, flatbuffers::grpc::Message<Stat>* response) = 0; 39 …std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< flatbuffers::grpc::Message<Stat>>> As… in AsyncStore() 40 …r< ::grpc::ClientAsyncResponseReaderInterface< flatbuffers::grpc::Message<Stat>>>(AsyncStoreRaw(co… in AsyncStore() 42 …std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< flatbuffers::grpc::Message<Stat>>> Pr… in PrepareAsyncStore() 43 …r< ::grpc::ClientAsyncResponseReaderInterface< flatbuffers::grpc::Message<Stat>>>(PrepareAsyncStor… in PrepareAsyncStore() 45 …ster>>> Retrieve(::grpc::ClientContext* context, const flatbuffers::grpc::Message<Stat>& request) { in Retrieve() 48 …Retrieve(::grpc::ClientContext* context, const flatbuffers::grpc::Message<Stat>& request, ::grpc::… in AsyncRetrieve() 51 …Retrieve(::grpc::ClientContext* context, const flatbuffers::grpc::Message<Stat>& request, ::grpc::… in PrepareAsyncRetrieve() 54 …ter>>> GetMaxHitPoint(::grpc::ClientContext* context, flatbuffers::grpc::Message<Stat>* response) { in GetMaxHitPoint() 57 …GetMaxHitPoint(::grpc::ClientContext* context, flatbuffers::grpc::Message<Stat>* response, ::grpc:… in AsyncGetMaxHitPoint() [all …]
|
| /external/flatbuffers/tests/monster_test_suffix/ |
| D | monster_test.grpc.fb.h | 38 …onst flatbuffers::grpc::Message<Monster>& request, flatbuffers::grpc::Message<Stat>* response) = 0; 39 …std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< flatbuffers::grpc::Message<Stat>>> As… in AsyncStore() 40 …r< ::grpc::ClientAsyncResponseReaderInterface< flatbuffers::grpc::Message<Stat>>>(AsyncStoreRaw(co… in AsyncStore() 42 …std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< flatbuffers::grpc::Message<Stat>>> Pr… in PrepareAsyncStore() 43 …r< ::grpc::ClientAsyncResponseReaderInterface< flatbuffers::grpc::Message<Stat>>>(PrepareAsyncStor… in PrepareAsyncStore() 45 …ster>>> Retrieve(::grpc::ClientContext* context, const flatbuffers::grpc::Message<Stat>& request) { in Retrieve() 48 …Retrieve(::grpc::ClientContext* context, const flatbuffers::grpc::Message<Stat>& request, ::grpc::… in AsyncRetrieve() 51 …Retrieve(::grpc::ClientContext* context, const flatbuffers::grpc::Message<Stat>& request, ::grpc::… in PrepareAsyncRetrieve() 54 …ter>>> GetMaxHitPoint(::grpc::ClientContext* context, flatbuffers::grpc::Message<Stat>* response) { in GetMaxHitPoint() 57 …GetMaxHitPoint(::grpc::ClientContext* context, flatbuffers::grpc::Message<Stat>* response, ::grpc:… in AsyncGetMaxHitPoint() [all …]
|
| /external/ltp/testcases/kernel/syscalls/nftw/ |
| D | nftw.h | 39 #include <sys/stat.h> 112 int test_func1(const char *, const struct stat *, int, struct FTW *); 113 int test_func3(const char *, const struct stat *, int, struct FTW *); 114 int test_func4(const char *, const struct stat *, int, struct FTW *); 115 int test_func5(const char *, const struct stat *, int, struct FTW *); 116 int test_func7(const char *, const struct stat *, int, struct FTW *); 117 int test_func8(const char *, const struct stat *, int, struct FTW *); 118 int test_func9(const char *, const struct stat *, int, struct FTW *); 119 int test_func10(const char *, const struct stat *, int, struct FTW *); 120 int test_func11(const char *, const struct stat *, int, struct FTW *); [all …]
|
| /external/igt-gpu-tools/tests/i915/ |
| D | i915_pm_sseu.c | 151 dbg_get_status(struct status *stat) in dbg_get_status() argument 161 memset(stat, 0, sizeof(*stat)); in dbg_get_status() 167 stat->info.slice_total = in dbg_get_status() 169 stat->info.subslice_total = in dbg_get_status() 173 stat->info.subslice_per = in dbg_get_status() 176 stat->info.subslice_per = in dbg_get_status() 179 stat->info.eu_total = in dbg_get_status() 181 stat->info.eu_per = in dbg_get_status() 183 stat->info.has_slice_pg = in dbg_get_status() 185 stat->info.has_subslice_pg = in dbg_get_status() [all …]
|
| /external/python/cpython3/Lib/ |
| D | genericpath.py | 7 import stat 19 os.stat(path) 30 st = os.stat(path) 33 return stat.S_ISREG(st.st_mode) 42 st = os.stat(s) 45 return stat.S_ISDIR(st.st_mode) 49 """Return the size of a file, reported by os.stat().""" 50 return os.stat(filename).st_size 54 """Return the last modification time of a file, reported by os.stat().""" 55 return os.stat(filename).st_mtime [all …]
|
| /external/python/cpython2/Lib/test/ |
| D | test_stat.py | 4 import stat 65 st_mode = os.stat(fname).st_mode 70 fmt = getattr(stat, "S_IF" + name.lstrip("F")) 71 self.assertEqual(stat.S_IFMT(mode), fmt) 75 func = getattr(stat, funcname, None) 92 self.assertEqual(stat.S_IMODE(st_mode), 93 stat.S_IRWXU) 98 self.assertEqual(stat.S_IMODE(st_mode), 99 stat.S_IRWXG) 104 self.assertEqual(stat.S_IMODE(st_mode), [all …]
|