Exemplo n.º 1
0
 private UiFileInfo(ClientFileInfo fileInfo) {
   ID = fileInfo.getId();
   NAME = fileInfo.getName();
   ABSOLUATE_PATH = fileInfo.getPath();
   CHECKPOINT_PATH = fileInfo.getCheckpointPath();
   SIZE = fileInfo.getSizeBytes();
   CREATION_TIME_MS = fileInfo.getCreationTimeMs();
   IN_MEMORY = fileInfo.isInMemory();
   IS_DIRECTORY = fileInfo.isFolder();
   mFileLocations = new ArrayList<String>();
 }
Exemplo n.º 2
0
 public UiFileInfo(ClientFileInfo fileInfo) {
   mId = fileInfo.getId();
   mDependencyId = fileInfo.getDependencyId();
   mName = fileInfo.getName();
   mAbsolutePath = fileInfo.getPath();
   mCheckpointPath = fileInfo.getUfsPath();
   mBlockSizeBytes = fileInfo.getBlockSizeByte();
   mSize = fileInfo.getLength();
   mCreationTimeMs = fileInfo.getCreationTimeMs();
   mLastModificationTimeMs = fileInfo.getLastModificationTimeMs();
   mInMemory = (100 == fileInfo.inMemoryPercentage);
   mInMemoryPercent = fileInfo.getInMemoryPercentage();
   mIsDirectory = fileInfo.isFolder;
   mIsPinned = fileInfo.isPinned;
   mFileLocations = new ArrayList<String>();
 }