// INSPECTION_CLASS: com.android.tools.idea.lint.AndroidLintSdCardPathInspection import java.io.File import android.content.Intent import android.net.Uri /** * Ignore comments - create("/sdcard/foo") */ @Suppress("UsePropertyAccessSyntax", "UNUSED_VARIABLE", "unused", "UNUSED_PARAMETER", "DEPRECATION") class SdCardTest { internal var deviceDir = File("/sdcard/vr") init { if (PROFILE_STARTUP) { android.os.Debug.startMethodTracing("/sdcard/launcher") } if (File("/sdcard").exists()) { } val FilePath = "/sdcard/" + File("test") System.setProperty("foo.bar", "file://sdcard") val intent = Intent(Intent.ACTION_PICK) intent.setDataAndType(Uri.parse("file://sdcard/foo.json"), "application/bar-json") intent.putExtra("path-filter", "/sdcard(/.+)*") intent.putExtra("start-dir", "/sdcard") val mypath = "/data/data/foo" val base = "/data/data/foo.bar/test-profiling" val s = "file://sdcard/foo" val sdCardPath by lazy { "/sdcard" } fun localPropertyTest() { val sdCardPathLocal by lazy { "/sdcard" } } } companion object { private val PROFILE_STARTUP = true private val SDCARD_TEST_HTML = "/sdcard/test.html" val SDCARD_ROOT = "/sdcard" val PACKAGES_PATH = "/sdcard/o/packages/" } }