~thomas-voss/platform-api/add-package-config

« back to all changes in this revision

Viewing changes to android/hybris/application_manager.h

  • Committer: Thomas Voß
  • Date: 2013-06-20 12:26:40 UTC
  • mfrom: (67.1.1 fix-cmake-setup)
  • Revision ID: thomas.voss@canonical.com-20130620122640-ytzwepxb9qiijzgq
[ Gerry Boland ]
* Add mir suport.
[ Robert Carr ]
* Add mir suport.
[ Ubuntu daily release ]
* Automatic snapshot from revision 69
[ Ricardo Mendoza ]
* Allow remote App Manager to take care of signalling processes.
[ Ubuntu daily release ]
* Automatic snapshot from revision 67

Show diffs side-by-side

added added

removed removed

Lines of Context:
133
133
    void on_application_about_to_stop();
134
134
};
135
135
 
 
136
class IAMTaskController : public IInterface
 
137
{
 
138
public:
 
139
    DECLARE_META_INTERFACE(AMTaskController);
 
140
 
 
141
    virtual void continue_task(uint32_t pid) = 0;
 
142
 
 
143
    virtual void suspend_task(uint32_t pid) = 0;
 
144
 
 
145
protected:
 
146
    enum
 
147
    {
 
148
        CONTINUE_TASK_COMMAND = IBinder::FIRST_CALL_TRANSACTION,
 
149
        SUSPEND_TASK_COMMAND
 
150
    };
 
151
 
 
152
    IAMTaskController(const IAMTaskController&) = delete;
 
153
    IAMTaskController& operator=(const IAMTaskController&) = delete;
 
154
};
 
155
 
 
156
class BnAMTaskController : public BnInterface<IAMTaskController>
 
157
{
 
158
public:
 
159
    status_t onTransact(uint32_t code,
 
160
                        const Parcel& data,
 
161
                        Parcel* reply,
 
162
                        uint32_t flags = 0);
 
163
};
 
164
 
 
165
class BpAMTaskController : public BpInterface<IAMTaskController>
 
166
{
 
167
public:
 
168
    BpAMTaskController(const sp<IBinder>& impl);
 
169
 
 
170
    void continue_task(uint32_t pid);
 
171
 
 
172
    void suspend_task(uint32_t pid);
 
173
};
 
174
 
136
175
class IApplicationManagerObserver : public IInterface
137
176
{
138
177
public:
255
294
 
256
295
    virtual void register_an_observer(const sp<IApplicationManagerObserver>& observer) = 0;
257
296
 
 
297
    virtual void register_task_controller(const sp<IAMTaskController>& controller) = 0;
 
298
 
258
299
    virtual void unfocus_running_sessions() = 0;
259
300
 
260
301
    virtual void focus_running_session_with_id(int id) = 0;
285
326
        GET_SESSION_PID_COMMAND,
286
327
        REQUEST_FULLSCREEN_COMMAND,
287
328
        REGISTER_AN_OBSERVER_COMMAND,
 
329
        REGISTER_TASK_CONTROLLER_COMMAND,
288
330
        REQUEST_UPDATE_FOR_SESSION_COMMAND,
289
331
        UNFOCUS_RUNNING_SESSIONS_COMMAND,
290
332
        FOCUS_RUNNING_SESSION_WITH_ID_COMMAND,
340
382
 
341
383
    void register_an_observer(const sp<IApplicationManagerObserver>& observer);
342
384
 
 
385
    void register_task_controller(const sp<IAMTaskController>& controller);
 
386
    
343
387
    void unfocus_running_sessions();
344
388
 
345
389
    void focus_running_session_with_id(int id);