@Test public void getCapacityBytes() throws Exception { Assert.assertEquals(TEST_DIR1_CAPACITY + TEST_DIR2_CAPACITY, mTier.getCapacityBytes()); mDir1.addTempBlockMeta(mTempBlockMeta); Assert.assertEquals(TEST_DIR1_CAPACITY + TEST_DIR2_CAPACITY, mTier.getCapacityBytes()); }
public long getCapacityBytes() { return mCapacityBytes; }
StorageTier { public long getCapacityBytes() { return mCapacityBytes; } }
StorageTier { public long getCapacityBytes() { return mCapacityBytes; } private  StorageTier(String tierAlias); }
StorageTier { public long getCapacityBytes() { return mCapacityBytes; } private  StorageTier(String tierAlias); static StorageTier newStorageTier(String tierAlias, boolean isMultiTier); int getTierOrdinal(); String getTierAlias(); long getCapacityBytes(); long getAvailableBytes(); @Nullable StorageDir getDir(int dirIndex); List<StorageDir> getStorageDirs(); List<String> getLostStorage(); void removeStorageDir(StorageDir dir); }
StorageTier { public long getCapacityBytes() { return mCapacityBytes; } private  StorageTier(String tierAlias); static StorageTier newStorageTier(String tierAlias, boolean isMultiTier); int getTierOrdinal(); String getTierAlias(); long getCapacityBytes(); long getAvailableBytes(); @Nullable StorageDir getDir(int dirIndex); List<StorageDir> getStorageDirs(); List<String> getLostStorage(); void removeStorageDir(StorageDir dir);  }