Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Linting refinement for use with host applications
  • Loading branch information
audaciouscode committed May 28, 2017
1 parent 3fdb633 commit df907c6
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 4 deletions.
2 changes: 1 addition & 1 deletion AndroidManifest.xml
Expand Up @@ -10,7 +10,7 @@
<!--suppress DeprecatedClassUsageInspection -->
<uses-permission android:name="android.permission.GET_TASKS" />
<uses-permission android:name="android.permission.PACKAGE_USAGE_STATS" tools:ignore="ProtectedPermissions" />
<application android:allowBackup="true"
<application android:allowBackup="false"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme"
Expand Down
6 changes: 3 additions & 3 deletions res/values/generators.xml
@@ -1,6 +1,6 @@
<!--suppress CheckTagEmptyBody -->
<resources>
<string-array name="pdk_available_generators">
<resources xmlns:tools="http://schemas.android.com/tools">
<string-array name="pdk_available_generators" tools:ignore="InconsistentArrays">
<item>com.audacious_software.passive_data_kit.generators.device.Location</item>
<item>com.audacious_software.passive_data_kit.generators.device.ScreenState</item>
<item>com.audacious_software.passive_data_kit.generators.communication.PhoneCalls</item>
Expand All @@ -16,7 +16,7 @@
<item>com.audacious_software.passive_data_kit.generators.diagnostics.SystemStatus</item>
</string-array>

<string-array name="pdk_app_generators"></string-array>
<string-array name="pdk_app_generators" tools:ignore="InconsistentArrays"></string-array>

<string name="generator_value_not_applicable">n/a</string>

Expand Down
Expand Up @@ -21,6 +21,7 @@
import java.util.ArrayList;

public class DiagnosticsActivity extends AppCompatActivity {
@SuppressWarnings("SameParameterValue")
@SuppressLint("AlwaysShowAction")
public static void setUpDiagnositicsItem(Activity activity, Menu menu, boolean showAction) {
final ArrayList<DiagnosticAction> actions = PassiveDataKit.diagnostics(activity);
Expand Down
Expand Up @@ -227,6 +227,7 @@ public List<Class<? extends Generator>> activeGenerators() {
return active;
}

@SuppressWarnings("SameParameterValue")
public void notifyGeneratorUpdated(String identifier, long timestamp, Bundle bundle) {
for (GeneratorUpdatedListener listener : this.mGeneratorUpdatedListeners) {
listener.onGeneratorUpdated(identifier, timestamp, bundle);
Expand Down
Expand Up @@ -1005,6 +1005,7 @@ public android.location.Location getLastKnownLocation() {
return last;
}

@SuppressWarnings("SameParameterValue")
public void setUpdateInterval(long interval) {
this.mUpdateInterval = interval;

Expand Down
Expand Up @@ -4,9 +4,17 @@

import java.util.HashMap;

@SuppressWarnings("WeakerAccess")
public abstract class Transmitter {
@SuppressWarnings("unused")
public abstract void initialize(Context context, HashMap<String, String> options);

@SuppressWarnings({"SameParameterValue", "unused"})
public abstract void transmit(boolean force);

@SuppressWarnings("unused")
public abstract long pendingSize();

@SuppressWarnings("unused")
public abstract long transmittedSize();
}

0 comments on commit df907c6

Please sign in to comment.