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
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CodeLinaro
public-release-test-restored
platform
tools
loganalysis
Commits
68bd2d51
Commit
68bd2d51
authored
6 years ago
by
Eric Arseneau
Browse files
Options
Downloads
Plain Diff
Merge PPR1.180514.001
Change-Id: Iaa26001313ea1dc75d4f816d0844ba2e130f62a6
parents
3e0b3e65
cdb8b359
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide 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 @
68bd2d51
...
@@ -32,9 +32,17 @@ public class TransitionDelayItem extends GenericItem {
...
@@ -32,9 +32,17 @@ public class TransitionDelayItem extends GenericItem {
public
static
final
String
TRANSITION_DELAY
=
"TRANSITION_DELAY"
;
public
static
final
String
TRANSITION_DELAY
=
"TRANSITION_DELAY"
;
/** Constant for JSON output */
/** Constant for JSON output */
public
static
final
String
DATE_TIME
=
"DATE_TIME"
;
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
(
private
static
final
Set
<
String
>
ATTRIBUTES
=
COMPONENT_NAME
,
START_WINDOW_DELAY
,
TRANSITION_DELAY
,
DATE_TIME
));
new
HashSet
<
String
>(
Arrays
.
asList
(
COMPONENT_NAME
,
START_WINDOW_DELAY
,
TRANSITION_DELAY
,
DATE_TIME
,
WINDOW_DRAWN_DELAY
));
/**
/**
* The constructor for {@link TransitionDelayItem}.
* The constructor for {@link TransitionDelayItem}.
...
@@ -79,4 +87,14 @@ public class TransitionDelayItem extends GenericItem {
...
@@ -79,4 +87,14 @@ public class TransitionDelayItem extends GenericItem {
public
void
setDateTime
(
String
dateTime
)
{
public
void
setDateTime
(
String
dateTime
)
{
setAttribute
(
DATE_TIME
,
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 @
68bd2d51
...
@@ -54,6 +54,7 @@ public class EventsLogParser implements IParser {
...
@@ -54,6 +54,7 @@ public class EventsLogParser implements IParser {
private
static
final
String
TRANSITION_DELAY_KEY
=
"319"
;
private
static
final
String
TRANSITION_DELAY_KEY
=
"319"
;
private
static
final
String
STARTING_WINDOW_DELAY_KEY
=
"321"
;
private
static
final
String
STARTING_WINDOW_DELAY_KEY
=
"321"
;
private
static
final
String
COLD_LAUNCH_KEY
=
"945"
;
private
static
final
String
COLD_LAUNCH_KEY
=
"945"
;
private
static
final
String
WINDOWS_DRAWN_DELAY_KEY
=
"322"
;
@Override
@Override
public
IItem
parse
(
List
<
String
>
lines
)
{
public
IItem
parse
(
List
<
String
>
lines
)
{
...
@@ -80,13 +81,16 @@ public class EventsLogParser implements IParser {
...
@@ -80,13 +81,16 @@ public class EventsLogParser implements IParser {
TransitionDelayItem
delayItem
=
new
TransitionDelayItem
();
TransitionDelayItem
delayItem
=
new
TransitionDelayItem
();
if
(
null
!=
transitionInfoMap
.
get
(
PACKAGE_KEY
)
if
(
null
!=
transitionInfoMap
.
get
(
PACKAGE_KEY
)
&&
null
!=
transitionInfoMap
.
get
(
ACTIVITY_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
)
+
"/"
delayItem
.
setComponentName
(
transitionInfoMap
.
get
(
PACKAGE_KEY
)
+
"/"
+
transitionInfoMap
.
get
(
ACTIVITY_KEY
));
+
transitionInfoMap
.
get
(
ACTIVITY_KEY
));
delayItem
.
setTransitionDelay
(
Long
.
parseLong
(
transitionInfoMap
delayItem
.
setTransitionDelay
(
Long
.
parseLong
(
transitionInfoMap
.
get
(
TRANSITION_DELAY_KEY
)));
.
get
(
TRANSITION_DELAY_KEY
)));
delayItem
.
setDateTime
(
String
.
format
(
"%s %s"
,
match
.
group
(
DATE
),
delayItem
.
setDateTime
(
String
.
format
(
"%s %s"
,
match
.
group
(
DATE
),
match
.
group
(
TIME
)));
match
.
group
(
TIME
)));
delayItem
.
setWindowDrawnDelay
(
Long
.
parseLong
(
transitionInfoMap
.
get
(
WINDOWS_DRAWN_DELAY_KEY
)));
}
}
if
(
transitionInfoMap
.
containsKey
(
COLD_LAUNCH_KEY
))
{
if
(
transitionInfoMap
.
containsKey
(
COLD_LAUNCH_KEY
))
{
if
(
null
!=
transitionInfoMap
.
get
(
STARTING_WINDOW_DELAY_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