Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
loganalysis
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CodeLinaro
public-release-test-restored
platform
tools
loganalysis
Commits
d96ed178
Commit
d96ed178
authored
7 years ago
by
android-build-team Robot
Browse files
Options
Downloads
Plain Diff
Snap for 4775956 from
6632a022
to qt-release
Change-Id: I6a058871ac4f2dd25cccbfc4737b0b5055ce93b3
parents
d2962e78
6632a022
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/com/android/loganalysis/item/TransitionDelayItem.java
+20
-2
20 additions, 2 deletions
src/com/android/loganalysis/item/TransitionDelayItem.java
src/com/android/loganalysis/parser/EventsLogParser.java
+5
-1
5 additions, 1 deletion
src/com/android/loganalysis/parser/EventsLogParser.java
with
25 additions
and
3 deletions
src/com/android/loganalysis/item/TransitionDelayItem.java
+
20
−
2
View file @
d96ed178
...
...
@@ -32,9 +32,17 @@ public class TransitionDelayItem extends GenericItem {
public
static
final
String
TRANSITION_DELAY
=
"TRANSITION_DELAY"
;
/** Constant for JSON output */
public
static
final
String
DATE_TIME
=
"DATE_TIME"
;
/** Constant for JSON output */
public
static
final
String
WINDOW_DRAWN_DELAY
=
"WINDOW_DRAWN_DELAY"
;
private
static
final
Set
<
String
>
ATTRIBUTES
=
new
HashSet
<
String
>(
Arrays
.
asList
(
COMPONENT_NAME
,
START_WINDOW_DELAY
,
TRANSITION_DELAY
,
DATE_TIME
));
private
static
final
Set
<
String
>
ATTRIBUTES
=
new
HashSet
<
String
>(
Arrays
.
asList
(
COMPONENT_NAME
,
START_WINDOW_DELAY
,
TRANSITION_DELAY
,
DATE_TIME
,
WINDOW_DRAWN_DELAY
));
/**
* The constructor for {@link TransitionDelayItem}.
...
...
@@ -79,4 +87,14 @@ public class TransitionDelayItem extends GenericItem {
public
void
setDateTime
(
String
dateTime
)
{
setAttribute
(
DATE_TIME
,
dateTime
);
}
public
Long
getWindowDrawnDelay
()
{
return
getAttribute
(
WINDOW_DRAWN_DELAY
)
!=
null
?
(
Long
)
getAttribute
(
WINDOW_DRAWN_DELAY
)
:
null
;
}
public
void
setWindowDrawnDelay
(
long
windowDrawnDelay
)
{
setAttribute
(
WINDOW_DRAWN_DELAY
,
windowDrawnDelay
);
}
}
This diff is collapsed.
Click to expand it.
src/com/android/loganalysis/parser/EventsLogParser.java
+
5
−
1
View file @
d96ed178
...
...
@@ -54,6 +54,7 @@ public class EventsLogParser implements IParser {
private
static
final
String
TRANSITION_DELAY_KEY
=
"319"
;
private
static
final
String
STARTING_WINDOW_DELAY_KEY
=
"321"
;
private
static
final
String
COLD_LAUNCH_KEY
=
"945"
;
private
static
final
String
WINDOWS_DRAWN_DELAY_KEY
=
"322"
;
@Override
public
IItem
parse
(
List
<
String
>
lines
)
{
...
...
@@ -80,13 +81,16 @@ public class EventsLogParser implements IParser {
TransitionDelayItem
delayItem
=
new
TransitionDelayItem
();
if
(
null
!=
transitionInfoMap
.
get
(
PACKAGE_KEY
)
&&
null
!=
transitionInfoMap
.
get
(
ACTIVITY_KEY
)
&&
null
!=
transitionInfoMap
.
get
(
TRANSITION_DELAY_KEY
))
{
&&
null
!=
transitionInfoMap
.
get
(
TRANSITION_DELAY_KEY
)
&&
null
!=
transitionInfoMap
.
get
(
WINDOWS_DRAWN_DELAY_KEY
))
{
delayItem
.
setComponentName
(
transitionInfoMap
.
get
(
PACKAGE_KEY
)
+
"/"
+
transitionInfoMap
.
get
(
ACTIVITY_KEY
));
delayItem
.
setTransitionDelay
(
Long
.
parseLong
(
transitionInfoMap
.
get
(
TRANSITION_DELAY_KEY
)));
delayItem
.
setDateTime
(
String
.
format
(
"%s %s"
,
match
.
group
(
DATE
),
match
.
group
(
TIME
)));
delayItem
.
setWindowDrawnDelay
(
Long
.
parseLong
(
transitionInfoMap
.
get
(
WINDOWS_DRAWN_DELAY_KEY
)));
}
if
(
transitionInfoMap
.
containsKey
(
COLD_LAUNCH_KEY
))
{
if
(
null
!=
transitionInfoMap
.
get
(
STARTING_WINDOW_DELAY_KEY
))
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment