Searched refs:canWrite (Results 1 – 14 of 14) sorted by relevance
39 public static boolean canWrite(Context context) { in canWrite() method in SettingsCompat.System41 return Settings.System.canWrite(context); in canWrite()
132 if (!SettingsCompat.System.canWrite(getContext())) { in onResume()155 if (!SettingsCompat.System.canWrite(getContext())) { in onPreferenceChange()181 if (!SettingsCompat.System.canWrite(getContext())) { in onPreferenceTreeClick()
51 if (!SettingsCompat.System.canWrite(getContext())) { in onSaveRingtone()
136 if (!SettingsCompat.System.canWrite(this)) { in onHeaderClick()
140 boolean canWrite = mWriteSettingsState.isPermissible(); in refreshUi()141 mSwitchPref.setChecked(canWrite); in refreshUi()144 mWriteSettingsPrefs.setEnabled(canWrite); in refreshUi()
77 return file.canWrite(); in accept()
109 if (!tempFile.canWrite()) { in createTemporaryOutputPath()
117 if (!dir.isDirectory() || !dir.canWrite()) { in getAvailableSpace()
171 if (file.canWrite() == false) { in openOutputStream()653 if (destFile.exists() && destFile.canWrite() == false) { in copyFile()919 if (destDir.canWrite() == false) { in doCopyDirectory()
199 if (!lockDir.canWrite()) { in testLockDir()
43 if ((dstFileInfo.mDirectory == null) || !dstFileInfo.mDirectory.canWrite()) { in getDstMp4FileInfo()
151 if (!sampleDir.canWrite()) // Workaround for broken sdcard support on the device. in startRecording()
504 if (!dir.isDirectory() || !dir.canWrite()) { in getAvailableSpace()
149 if ((saveDirectory == null) || !saveDirectory.canWrite()) { in getFinalSaveDirectory()