Loading core/java/android/service/voice/VoiceInteractionServiceInfo.java +15 −3 Original line number Diff line number Diff line Loading @@ -52,9 +52,21 @@ public class VoiceInteractionServiceInfo { } public VoiceInteractionServiceInfo(PackageManager pm, ComponentName comp, int userHandle) throws PackageManager.NameNotFoundException, RemoteException { this(pm, AppGlobals.getPackageManager().getServiceInfo(comp, PackageManager.GET_META_DATA, userHandle)); throws PackageManager.NameNotFoundException { this(pm, getServiceInfoOrThrow(comp, userHandle)); } static ServiceInfo getServiceInfoOrThrow(ComponentName comp, int userHandle) throws PackageManager.NameNotFoundException { try { ServiceInfo si = AppGlobals.getPackageManager().getServiceInfo(comp, PackageManager.GET_META_DATA, userHandle); if (si != null) { return si; } } catch (RemoteException e) { } throw new PackageManager.NameNotFoundException(comp.toString()); } public VoiceInteractionServiceInfo(PackageManager pm, ServiceInfo si) { Loading services/voiceinteraction/java/com/android/server/voiceinteraction/VoiceInteractionManagerService.java +0 −1 Original line number Diff line number Diff line Loading @@ -362,7 +362,6 @@ public class VoiceInteractionManagerService extends SystemService { } } catch (PackageManager.NameNotFoundException e) { Slog.w(TAG, "Failure looking up interaction service " + comp); } catch (RemoteException e) { } } } Loading services/voiceinteraction/java/com/android/server/voiceinteraction/VoiceInteractionManagerServiceImpl.java +1 −1 Original line number Diff line number Diff line Loading @@ -116,7 +116,7 @@ class VoiceInteractionManagerServiceImpl implements VoiceInteractionSessionConne VoiceInteractionServiceInfo info; try { info = new VoiceInteractionServiceInfo(context.getPackageManager(), service, mUser); } catch (RemoteException|PackageManager.NameNotFoundException e) { } catch (PackageManager.NameNotFoundException e) { Slog.w(TAG, "Voice interaction service not found: " + service, e); mInfo = null; mSessionComponentName = null; Loading Loading
core/java/android/service/voice/VoiceInteractionServiceInfo.java +15 −3 Original line number Diff line number Diff line Loading @@ -52,9 +52,21 @@ public class VoiceInteractionServiceInfo { } public VoiceInteractionServiceInfo(PackageManager pm, ComponentName comp, int userHandle) throws PackageManager.NameNotFoundException, RemoteException { this(pm, AppGlobals.getPackageManager().getServiceInfo(comp, PackageManager.GET_META_DATA, userHandle)); throws PackageManager.NameNotFoundException { this(pm, getServiceInfoOrThrow(comp, userHandle)); } static ServiceInfo getServiceInfoOrThrow(ComponentName comp, int userHandle) throws PackageManager.NameNotFoundException { try { ServiceInfo si = AppGlobals.getPackageManager().getServiceInfo(comp, PackageManager.GET_META_DATA, userHandle); if (si != null) { return si; } } catch (RemoteException e) { } throw new PackageManager.NameNotFoundException(comp.toString()); } public VoiceInteractionServiceInfo(PackageManager pm, ServiceInfo si) { Loading
services/voiceinteraction/java/com/android/server/voiceinteraction/VoiceInteractionManagerService.java +0 −1 Original line number Diff line number Diff line Loading @@ -362,7 +362,6 @@ public class VoiceInteractionManagerService extends SystemService { } } catch (PackageManager.NameNotFoundException e) { Slog.w(TAG, "Failure looking up interaction service " + comp); } catch (RemoteException e) { } } } Loading
services/voiceinteraction/java/com/android/server/voiceinteraction/VoiceInteractionManagerServiceImpl.java +1 −1 Original line number Diff line number Diff line Loading @@ -116,7 +116,7 @@ class VoiceInteractionManagerServiceImpl implements VoiceInteractionSessionConne VoiceInteractionServiceInfo info; try { info = new VoiceInteractionServiceInfo(context.getPackageManager(), service, mUser); } catch (RemoteException|PackageManager.NameNotFoundException e) { } catch (PackageManager.NameNotFoundException e) { Slog.w(TAG, "Voice interaction service not found: " + service, e); mInfo = null; mSessionComponentName = null; Loading