Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Feb 26, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/**
* Copyright (C) 2010-2016 eBusiness Information, Excilys Group
* Copyright (C) 2016 the AndroidAnnotations project
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
Expand Down Expand Up @@ -231,6 +232,10 @@ public class ActivityWithServices extends Activity {
// @SystemService
// SipManager sipManager; // hidden API

// TODO API 25
// @SystemService
// ShortcutManager shortcutManager;

// @SystemService
// StatusBarManager statusBarManager; // hidden API

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/**
* Copyright (C) 2010-2016 eBusiness Information, Excilys Group
* Copyright (C) 2016 the AndroidAnnotations project
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
Expand Down Expand Up @@ -89,6 +90,7 @@ public void servicesAreInjected() {
assertThat(activity.sensorManager).isNotNull();
// assertThat(activity.serialManager).isNotNull(); // hidden API
// assertThat(activity.sipManager).isNotNull(); // hidden API
// assertThat(activity.shortcutManager).isNotNull(); // TODO API 25
// assertThat(activity.statusBarManager).isNotNull(); // hidden API
assertThat(activity.storageManager).isNotNull();
// assertThat(activity.subscriptionManager).isNotNull(); // TODO API 22
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/**
* Copyright (C) 2010-2016 eBusiness Information, Excilys Group
* Copyright (C) 2016 the AndroidAnnotations project
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
Expand Down Expand Up @@ -84,6 +85,7 @@ public AndroidSystemServices(AndroidAnnotationsEnvironment environment) {
registeredServices.put("android.hardware.SerialManager", "android.content.Context.SERIAL_SERVICE");
registeredServices.put("android.hardware.SensorManager", "android.content.Context.SENSOR_SERVICE");
registeredServices.put("android.net.sip.SipManager", "android.content.Context.SIP_SERVICE");
registeredServices.put("android.content.pm.ShortcutManager", "android.content.Context.SHORTCUT_SERVICE");
registeredServices.put("android.app.StatusBarManager", "android.content.Context.STATUS_BAR_SERVICE");
registeredServices.put("android.os.storage.StorageManager", "android.content.Context.STORAGE_SERVICE");
registeredServices.put("android.telephony.SubscriptionManager", "android.content.Context.TELEPHONY_SUBSCRIPTION_SERVICE");
Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.