Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
platform_frameworks_base-old
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
Farzin Kazemzadeh
platform_frameworks_base-old
Commits
28cb4d23
Commit
28cb4d23
authored
5 years ago
by
Ian Chang
Committed by
Android (Google) Code Review
5 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Add tracepoints for potential performance issues" into qt-dev
parents
add7dcd6
fd4021c2
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
core/java/android/hardware/face/FaceManager.java
+9
-0
9 additions, 0 deletions
core/java/android/hardware/face/FaceManager.java
with
9 additions
and
0 deletions
core/java/android/hardware/face/FaceManager.java
+
9
−
0
View file @
28cb4d23
...
...
@@ -40,6 +40,7 @@ import android.os.IRemoteCallback;
import
android.os.Looper
;
import
android.os.PowerManager
;
import
android.os.RemoteException
;
import
android.os.Trace
;
import
android.os.UserHandle
;
import
android.util.Log
;
import
android.util.Slog
;
...
...
@@ -225,6 +226,7 @@ public class FaceManager implements BiometricAuthenticator, BiometricFaceConstan
mAuthenticationCallback
=
callback
;
mCryptoObject
=
crypto
;
long
sessionId
=
crypto
!=
null
?
crypto
.
getOpId
()
:
0
;
Trace
.
beginSection
(
"FaceManager#authenticate"
);
mService
.
authenticate
(
mToken
,
sessionId
,
userId
,
mServiceReceiver
,
flags
,
mContext
.
getOpPackageName
());
}
catch
(
RemoteException
e
)
{
...
...
@@ -236,6 +238,8 @@ public class FaceManager implements BiometricAuthenticator, BiometricFaceConstan
getErrorString
(
mContext
,
FACE_ERROR_HW_UNAVAILABLE
,
0
/* vendorCode */
));
}
}
finally
{
Trace
.
endSection
();
}
}
}
...
...
@@ -276,6 +280,7 @@ public class FaceManager implements BiometricAuthenticator, BiometricFaceConstan
if
(
mService
!=
null
)
{
try
{
mEnrollmentCallback
=
callback
;
Trace
.
beginSection
(
"FaceManager#enroll"
);
mService
.
enroll
(
mToken
,
token
,
mServiceReceiver
,
mContext
.
getOpPackageName
(),
disabledFeatures
);
}
catch
(
RemoteException
e
)
{
...
...
@@ -287,6 +292,8 @@ public class FaceManager implements BiometricAuthenticator, BiometricFaceConstan
getErrorString
(
mContext
,
FACE_ERROR_HW_UNAVAILABLE
,
0
/* vendorCode */
));
}
}
finally
{
Trace
.
endSection
();
}
}
}
...
...
@@ -965,6 +972,7 @@ public class FaceManager implements BiometricAuthenticator, BiometricFaceConstan
@Override
public
void
handleMessage
(
android
.
os
.
Message
msg
)
{
Trace
.
beginSection
(
"FaceManager#handleMessage: "
+
Integer
.
toString
(
msg
.
what
));
switch
(
msg
.
what
)
{
case
MSG_ENROLL_RESULT:
sendEnrollResult
((
Face
)
msg
.
obj
,
msg
.
arg1
/* remaining */
);
...
...
@@ -1000,6 +1008,7 @@ public class FaceManager implements BiometricAuthenticator, BiometricFaceConstan
default
:
Log
.
w
(
TAG
,
"Unknown message: "
+
msg
.
what
);
}
Trace
.
endSection
();
}
}
...
...
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