Rename featureId -> attributionTag
In the core functionality this changes everything including aidl's and field names: - Context - ContentProvider - AppOps* - Package parsing For the rest, this is a shallow change to only change to the changed APIs. This keeps the change small-ish Exempt-From-Owner-Approval: Rename Fixes: 148792795 Test: TH Change-Id: I2a2245fe76e09e62cb13d5785d2efb4a304ba54a Merged-In: I2a2245fe76e09e62cb13d5785d2efb4a304ba54a
This commit is contained in:
@@ -342,7 +342,7 @@ public class SpeechRecognizer {
|
||||
}
|
||||
try {
|
||||
mService.startListening(recognizerIntent, mListener, mContext.getOpPackageName(),
|
||||
mContext.getFeatureId());
|
||||
mContext.getAttributionTag());
|
||||
if (DBG) Log.d(TAG, "service start listening command succeded");
|
||||
} catch (final RemoteException e) {
|
||||
Log.e(TAG, "startListening() failed", e);
|
||||
@@ -357,7 +357,7 @@ public class SpeechRecognizer {
|
||||
}
|
||||
try {
|
||||
mService.stopListening(mListener, mContext.getOpPackageName(),
|
||||
mContext.getFeatureId());
|
||||
mContext.getAttributionTag());
|
||||
if (DBG) Log.d(TAG, "service stop listening command succeded");
|
||||
} catch (final RemoteException e) {
|
||||
Log.e(TAG, "stopListening() failed", e);
|
||||
@@ -371,7 +371,7 @@ public class SpeechRecognizer {
|
||||
return;
|
||||
}
|
||||
try {
|
||||
mService.cancel(mListener, mContext.getOpPackageName(), mContext.getFeatureId());
|
||||
mService.cancel(mListener, mContext.getOpPackageName(), mContext.getAttributionTag());
|
||||
if (DBG) Log.d(TAG, "service cancel command succeded");
|
||||
} catch (final RemoteException e) {
|
||||
Log.e(TAG, "cancel() failed", e);
|
||||
@@ -400,7 +400,8 @@ public class SpeechRecognizer {
|
||||
public void destroy() {
|
||||
if (mService != null) {
|
||||
try {
|
||||
mService.cancel(mListener, mContext.getOpPackageName(), mContext.getFeatureId());
|
||||
mService.cancel(mListener, mContext.getOpPackageName(),
|
||||
mContext.getAttributionTag());
|
||||
} catch (final RemoteException e) {
|
||||
// Not important
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user