This repository has been archived by the owner on Dec 15, 2020. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Log which services time out during scan
BUG=31819023 Change-Id: Ic8482e3e49a49159dcc2a8bcc719a3a68084b33f
- Loading branch information
Showing
8 changed files
with
129 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
...com/google/android/apps/forscience/whistlepunk/api/scalarinput/RecordingUsageTracker.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
/* | ||
* Copyright 2016 Google Inc. All Rights Reserved. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package com.google.android.apps.forscience.whistlepunk.api.scalarinput; | ||
|
||
import com.google.android.apps.forscience.whistlepunk.analytics.UsageTracker; | ||
|
||
import java.util.ArrayList; | ||
import java.util.List; | ||
|
||
public class RecordingUsageTracker implements UsageTracker { | ||
public List<TrackedEvent> events = new ArrayList<>(); | ||
|
||
public void setOptOut(boolean optOut) { | ||
|
||
} | ||
|
||
@Override | ||
public void trackScreenView(String screenName) { | ||
|
||
} | ||
|
||
@Override | ||
public void trackEvent(String category, String action, String label, long value) { | ||
events.add(new TrackedEvent(category, action, label, value)); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 46 additions & 0 deletions
46
...est/java/com/google/android/apps/forscience/whistlepunk/api/scalarinput/TrackedEvent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
/* | ||
* Copyright 2016 Google Inc. All Rights Reserved. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package com.google.android.apps.forscience.whistlepunk.api.scalarinput; | ||
|
||
public class TrackedEvent { | ||
private final String mCategory; | ||
private final String mAction; | ||
private final String mLabel; | ||
private final long mValue; | ||
|
||
public TrackedEvent(String category, String action, String label, long value) { | ||
mCategory = category; | ||
mAction = action; | ||
mLabel = label; | ||
mValue = value; | ||
} | ||
|
||
public String getCategory() { | ||
return mCategory; | ||
} | ||
|
||
public String getAction() { | ||
return mAction; | ||
} | ||
|
||
public String getLabel() { | ||
return mLabel; | ||
} | ||
|
||
public long getValue() { | ||
return mValue; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters