94
|
1 |
/*
|
96
|
2 |
* Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies).
|
|
3 |
* All rights reserved.
|
|
4 |
* This component and the accompanying materials are made available
|
|
5 |
* under the terms of "Eclipse Public License v1.0"
|
|
6 |
* which accompanies this distribution, and is available
|
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
94
|
8 |
*
|
96
|
9 |
* Initial Contributors:
|
|
10 |
* Nokia Corporation - initial contribution.
|
|
11 |
*
|
|
12 |
* Contributors:
|
|
13 |
*
|
|
14 |
* Description: File containing application list classes
|
|
15 |
*
|
|
16 |
*/
|
94
|
17 |
|
|
18 |
//INCLUDES:
|
96
|
19 |
|
94
|
20 |
#include "tsfswdatalist.h"
|
|
21 |
#include "tsfswengine.h"
|
96
|
22 |
#include "tsentrykeygenerator.h"
|
94
|
23 |
#include <mmf/common/mmfcontrollerpluginresolver.h> // for CleanupResetAndDestroyPushL
|
|
24 |
#include <apgwgnam.h>
|
|
25 |
#include <bitstd.h>
|
|
26 |
#include <AknIconUtils.h> // avkon
|
96
|
27 |
#include <apgicnfl.h> // fbsbitmap
|
|
28 |
#include <AknIconSrvClient.h>
|
|
29 |
#include <fbs.h>
|
|
30 |
#include <APGWGNAM.H>
|
|
31 |
|
94
|
32 |
|
|
33 |
// size for the created app icons
|
|
34 |
const TInt KAppIconWidth = 128;
|
|
35 |
const TInt KAppIconHeight = 128;
|
|
36 |
|
|
37 |
//uids to be hidden
|
96
|
38 |
const TUid KHsApplicationUid = { 0x20022F35 };
|
94
|
39 |
|
|
40 |
// ================= MEMBER FUNCTIONS =======================
|
|
41 |
|
|
42 |
// --------------------------------------------------------------------------
|
|
43 |
// CTsFswDataList::NewL
|
|
44 |
// --------------------------------------------------------------------------
|
|
45 |
//
|
96
|
46 |
CTsFswDataList* CTsFswDataList::NewL(MHsDataObserver &observer)
|
|
47 |
{
|
|
48 |
CTsFswDataList* self = new (ELeave) CTsFswDataList(observer);
|
|
49 |
CleanupStack::PushL(self);
|
|
50 |
self->ConstructL();
|
|
51 |
CleanupStack::Pop(self);
|
94
|
52 |
return self;
|
96
|
53 |
}
|
94
|
54 |
|
|
55 |
// --------------------------------------------------------------------------
|
|
56 |
// CTsFswDataList::CTsFswDataList
|
|
57 |
// --------------------------------------------------------------------------
|
|
58 |
//
|
96
|
59 |
CTsFswDataList::CTsFswDataList(MHsDataObserver& observer) :
|
|
60 |
mObserver(observer)
|
|
61 |
{
|
|
62 |
}
|
94
|
63 |
|
|
64 |
// --------------------------------------------------------------------------
|
|
65 |
// CTsFswDataList::~CTsFswDataList
|
|
66 |
// --------------------------------------------------------------------------
|
|
67 |
//
|
96
|
68 |
CTsFswDataList::~CTsFswDataList()
|
|
69 |
{
|
|
70 |
mData.ResetAndDestroy();
|
|
71 |
mAppArcSession.Close();
|
|
72 |
mWsSession.Close();
|
|
73 |
mHiddenUids.Close();
|
|
74 |
mAllowedUids.Close();
|
94
|
75 |
RFbsSession::Disconnect();
|
|
76 |
RAknIconSrvClient::Disconnect();
|
96
|
77 |
}
|
94
|
78 |
|
|
79 |
// --------------------------------------------------------------------------
|
|
80 |
// CTsFswDataList::ConstructL
|
|
81 |
// --------------------------------------------------------------------------
|
|
82 |
//
|
96
|
83 |
void CTsFswDataList::ConstructL()
|
|
84 |
{
|
|
85 |
User::LeaveIfError(mWsSession.Connect());
|
|
86 |
User::LeaveIfError(mAppArcSession.Connect());
|
|
87 |
mHiddenUids.AppendL(KHsApplicationUid);
|
94
|
88 |
User::LeaveIfError(RFbsSession::Connect());
|
|
89 |
RAknIconSrvClient::Connect();
|
96
|
90 |
}
|
94
|
91 |
|
|
92 |
// --------------------------------------------------------------------------
|
|
93 |
// CTsFswDataList::FswDataL
|
|
94 |
// --------------------------------------------------------------------------
|
|
95 |
//
|
|
96 |
const RTsFswArray& CTsFswDataList::FswDataL()
|
96
|
97 |
{
|
|
98 |
return mData;
|
|
99 |
}
|
94
|
100 |
|
|
101 |
// --------------------------------------------------------------------------
|
|
102 |
// CTsFswDataList::CollectTasksL
|
|
103 |
// --------------------------------------------------------------------------
|
|
104 |
//
|
|
105 |
TBool CTsFswDataList::CollectTasksL()
|
96
|
106 |
{
|
94
|
107 |
TBool changed = EFalse;
|
|
108 |
RTsFswArray newAppsList;
|
|
109 |
CleanupResetAndDestroyPushL(newAppsList);
|
|
110 |
CollectAppsL(newAppsList);
|
96
|
111 |
changed |= FitDataToListL(newAppsList);
|
|
112 |
CleanupStack::PopAndDestroy(&newAppsList);
|
94
|
113 |
return changed;
|
96
|
114 |
}
|
94
|
115 |
|
|
116 |
// --------------------------------------------------------------------------
|
|
117 |
// CTsFswDataList::
|
|
118 |
// --------------------------------------------------------------------------
|
|
119 |
//
|
96
|
120 |
void CTsFswDataList::CollectAppsL(RTsFswArray& appsList)
|
|
121 |
{
|
|
122 |
// gets allowed uids - running apps without hidden uids, null uids, filtered uid
|
|
123 |
GetAllowedUidsL();
|
94
|
124 |
|
|
125 |
// get all window groups
|
|
126 |
RArray<RWsSession::TWindowGroupChainInfo> allWgIds;
|
96
|
127 |
CleanupClosePushL(allWgIds);
|
|
128 |
User::LeaveIfError(mWsSession.WindowGroupList(0, &allWgIds));
|
94
|
129 |
|
|
130 |
TInt count = allWgIds.Count();
|
96
|
131 |
for (TInt i = 0; i < count; ++i) {
|
|
132 |
TTsEntryKey key = TsEntryKeyGeneraror::GenerateL(allWgIds[i].iId, allWgIds.Array());
|
|
133 |
//skip this entry if it is already on list
|
|
134 |
if (FindEntry(appsList, key) >= 0) {
|
94
|
135 |
continue;
|
96
|
136 |
}
|
|
137 |
|
94
|
138 |
// get window group name
|
96
|
139 |
TInt wgId = key.mParentId;
|
|
140 |
CApaWindowGroupName* windowName = CApaWindowGroupName::NewLC(mWsSession, wgId);
|
94
|
141 |
TUid appUid = windowName->AppUid();
|
|
142 |
|
96
|
143 |
// add item to task list if uid is allowed
|
|
144 |
if (mAllowedUids.Find(appUid) >= 0) {
|
|
145 |
AddEntryL(key, appUid, windowName, appsList);
|
94
|
146 |
}
|
96
|
147 |
CleanupStack::PopAndDestroy(windowName);
|
94
|
148 |
}
|
96
|
149 |
CleanupStack::PopAndDestroy(&allWgIds);
|
|
150 |
}
|
94
|
151 |
|
|
152 |
// --------------------------------------------------------------------------
|
|
153 |
// CTsFswDataList::AddEntryL
|
|
154 |
// --------------------------------------------------------------------------
|
|
155 |
//
|
96
|
156 |
void CTsFswDataList::AddEntryL(const TTsEntryKey& key, const TUid& appUid,
|
|
157 |
CApaWindowGroupName* wgName, RTsFswArray& newList)
|
|
158 |
{
|
|
159 |
CTsFswEntry* entry = CTsFswEntry::NewLC(key, &mObserver);
|
94
|
160 |
|
|
161 |
// check if present in old list and if yes then take some of the old data
|
96
|
162 |
TBool found = ConsiderOldDataL(key);
|
94
|
163 |
|
|
164 |
// if not present previously then find out app name
|
|
165 |
// and check if screenshot is already available
|
96
|
166 |
if (!found) {
|
|
167 |
entry->SetAppUid(appUid);
|
|
168 |
HBufC* name = FindAppNameLC(wgName, appUid, key.mParentId);
|
|
169 |
if (name) {
|
|
170 |
entry->SetAppNameL(*name);
|
|
171 |
}
|
|
172 |
CleanupStack::PopAndDestroy(name);
|
94
|
173 |
|
96
|
174 |
if (wgName) {
|
|
175 |
entry->SetCloseableApp(!wgName->IsSystem());
|
|
176 |
}
|
94
|
177 |
CFbsBitmap* iconBitmap = NULL;
|
|
178 |
CFbsBitmap* iconMask = NULL;
|
96
|
179 |
GetAppIconL(appUid, iconBitmap, iconMask);
|
94
|
180 |
//transfer ownership to entry
|
96
|
181 |
entry->SetAppIcon(iconBitmap, iconMask);
|
|
182 |
}
|
94
|
183 |
|
|
184 |
// add to new list, ownership is transferred
|
96
|
185 |
newList.AppendL(entry);
|
|
186 |
CleanupStack::Pop(entry);
|
|
187 |
}
|
94
|
188 |
|
|
189 |
// --------------------------------------------------------------------------
|
|
190 |
// CTsFswDataList::ConsiderOldDataL
|
|
191 |
// --------------------------------------------------------------------------
|
|
192 |
//
|
96
|
193 |
TBool CTsFswDataList::ConsiderOldDataL(const TTsEntryKey& key)
|
|
194 |
{
|
|
195 |
for (TInt entryIdx = 0, oldCount = mData.Count(); entryIdx < oldCount; ++entryIdx) {
|
|
196 |
if (mData[entryIdx]->Key() == key) {
|
94
|
197 |
return ETrue;
|
|
198 |
}
|
|
199 |
}
|
96
|
200 |
return EFalse;
|
|
201 |
}
|
94
|
202 |
|
|
203 |
// --------------------------------------------------------------------------
|
|
204 |
// CTsFswDataList::FindAppNameLC
|
|
205 |
// --------------------------------------------------------------------------
|
|
206 |
//
|
96
|
207 |
HBufC* CTsFswDataList::FindAppNameLC(CApaWindowGroupName* windowName, const TUid& appUid, TInt wgId)
|
|
208 |
{
|
94
|
209 |
//Retrieve the app name
|
|
210 |
TApaAppInfo info;
|
96
|
211 |
mAppArcSession.GetAppInfo(info, appUid);
|
94
|
212 |
TPtrC caption = info.iShortCaption;
|
|
213 |
|
|
214 |
HBufC* tempName = 0;
|
96
|
215 |
if (!caption.Length() && windowName) // if not set - use thread name instead
|
|
216 |
{
|
|
217 |
if (windowName->Caption().Length()) {
|
|
218 |
tempName = windowName->Caption().AllocL();
|
94
|
219 |
//put on cleanupstack after the if
|
96
|
220 |
}
|
|
221 |
else {
|
94
|
222 |
TThreadId threadId;
|
96
|
223 |
TInt err = mWsSession.GetWindowGroupClientThreadId(wgId, threadId);
|
|
224 |
if (err == KErrNone) {
|
94
|
225 |
RThread thread;
|
96
|
226 |
CleanupClosePushL(thread);
|
|
227 |
err = thread.Open(threadId);
|
|
228 |
if (err == KErrNone) {
|
94
|
229 |
tempName = thread.Name().AllocL(); // codescanner::forgottoputptroncleanupstack
|
|
230 |
// tempName put on cleanupstack after the if
|
|
231 |
}
|
96
|
232 |
CleanupStack::PopAndDestroy(&thread);
|
94
|
233 |
}
|
|
234 |
}
|
96
|
235 |
}
|
|
236 |
else {
|
94
|
237 |
tempName = caption.AllocL();
|
|
238 |
//put on cleanupstack after the if
|
96
|
239 |
}
|
|
240 |
CleanupStack::PushL(tempName);
|
94
|
241 |
return tempName;
|
96
|
242 |
}
|
94
|
243 |
|
|
244 |
// --------------------------------------------------------------------------
|
|
245 |
// CTsFswDataList::FitDataToListL
|
|
246 |
// --------------------------------------------------------------------------
|
|
247 |
//
|
96
|
248 |
TBool CTsFswDataList::FitDataToListL(RTsFswArray& listToFit)
|
|
249 |
{
|
94
|
250 |
TBool changed = EFalse;
|
96
|
251 |
TInt listCount = listToFit.Count();
|
|
252 |
TInt dataCount = mData.Count();
|
94
|
253 |
|
|
254 |
//remove items that dont't exists in newly collected list
|
96
|
255 |
for (TInt i = dataCount - 1; i >= 0; --i) {
|
|
256 |
if (!CheckIfExists(*mData[i], listToFit)) {
|
|
257 |
delete mData[i];
|
|
258 |
mData.Remove(i);
|
|
259 |
changed = ETrue;
|
|
260 |
}
|
|
261 |
}
|
|
262 |
RArray<TTsEntryKey> allKeys;
|
|
263 |
|
94
|
264 |
//add new item at start
|
96
|
265 |
for (TInt i = listToFit.Count() - 1; i >= 0; --i) {
|
|
266 |
allKeys.Insert(listToFit[i]->Key(), 0);
|
|
267 |
if (!CheckIfExists(*listToFit[i], mData)) {
|
|
268 |
mData.Insert(listToFit[i], 0);
|
|
269 |
listToFit[i] = 0;
|
94
|
270 |
changed = ETrue;
|
|
271 |
}
|
96
|
272 |
}
|
|
273 |
//establish order
|
|
274 |
TBool orderChanged = EstablishOrder(allKeys);
|
|
275 |
changed = changed || orderChanged;
|
|
276 |
allKeys.Close();
|
94
|
277 |
return changed;
|
96
|
278 |
}
|
94
|
279 |
|
|
280 |
// --------------------------------------------------------------------------
|
|
281 |
// CTsFswDataList::CheckIfExists
|
|
282 |
// --------------------------------------------------------------------------
|
|
283 |
//
|
96
|
284 |
TBool CTsFswDataList::CheckIfExists(const CTsFswEntry& entry, const RTsFswArray& list) const
|
|
285 |
{
|
94
|
286 |
TBool exists(EFalse);
|
96
|
287 |
TTsEntryKey key;
|
|
288 |
TInt pos = FindEntry(list, entry.Key());
|
|
289 |
if (pos >= 0) {
|
|
290 |
exists = ETrue;
|
|
291 |
}
|
94
|
292 |
return exists;
|
96
|
293 |
}
|
94
|
294 |
|
|
295 |
// --------------------------------------------------------------------------
|
96
|
296 |
// CTsFswDataList::GetAppIconL
|
94
|
297 |
// --------------------------------------------------------------------------
|
|
298 |
//
|
96
|
299 |
void CTsFswDataList::GetAppIconL(const TUid& aAppUid, CFbsBitmap*& bitmapArg, CFbsBitmap*& maskArg)
|
|
300 |
{
|
|
301 |
bitmapArg = maskArg = NULL;
|
|
302 |
|
|
303 |
TSize size(KAppIconWidth, KAppIconHeight);
|
|
304 |
CApaMaskedBitmap* apaMaskedBitmap = CApaMaskedBitmap::NewLC();
|
|
305 |
TInt err = mAppArcSession.GetAppIcon(aAppUid, size, *apaMaskedBitmap);
|
|
306 |
TInt iconsCount(0);
|
|
307 |
if (err == KErrNone) {
|
|
308 |
err = mAppArcSession.NumberOfOwnDefinedIcons(aAppUid, iconsCount);
|
94
|
309 |
}
|
|
310 |
|
96
|
311 |
if ((err == KErrNone) && (iconsCount > 0)) {
|
|
312 |
bitmapArg = static_cast<CFbsBitmap*> (apaMaskedBitmap);
|
|
313 |
TInt maskHandle = apaMaskedBitmap->Mask()->Handle();
|
|
314 |
maskArg = new (ELeave) CFbsBitmap;
|
|
315 |
maskArg->Duplicate(maskHandle);
|
|
316 |
CleanupStack::Pop(apaMaskedBitmap);
|
94
|
317 |
}
|
96
|
318 |
else {
|
|
319 |
CleanupStack::PopAndDestroy(apaMaskedBitmap);
|
|
320 |
HBufC* fileNameFromApparc = NULL;
|
|
321 |
TInt err = mAppArcSession.GetAppIcon(aAppUid, fileNameFromApparc);
|
|
322 |
if (err == KErrNone) {
|
|
323 |
CleanupStack::PushL(fileNameFromApparc);
|
|
324 |
CFbsBitmap *bitamp(0);
|
|
325 |
CFbsBitmap *mask(0);
|
|
326 |
TInt bitmapIndex = 0;
|
|
327 |
TInt maskIndex = 1;
|
|
328 |
// it will change bitmap ids if it is mif (checking inside)
|
|
329 |
AknIconUtils::ValidateLogicalAppIconId(*fileNameFromApparc, bitmapIndex, maskIndex);
|
|
330 |
AknIconUtils::CreateIconLC(bitamp, mask, fileNameFromApparc->Des(), bitmapIndex,
|
|
331 |
maskIndex);
|
|
332 |
|
|
333 |
if (AknIconUtils::IsMifFile(*fileNameFromApparc)) {
|
|
334 |
AknIconUtils::DisableCompression(bitamp);
|
|
335 |
AknIconUtils::SetSize(bitamp, TSize(KAppIconWidth, KAppIconHeight),
|
|
336 |
EAspectRatioPreservedAndUnusedSpaceRemoved);
|
|
337 |
// bitmap and icon, AknsUtils::CreateIconLC doesn't specify the order
|
|
338 |
CleanupStack::Pop(2);
|
|
339 |
bitmapArg = bitamp;
|
|
340 |
maskArg = mask;
|
|
341 |
}
|
|
342 |
else {
|
|
343 |
CleanupStack::PopAndDestroy(2);
|
|
344 |
}
|
|
345 |
CleanupStack::PopAndDestroy(fileNameFromApparc);
|
|
346 |
}
|
|
347 |
}
|
|
348 |
}
|
94
|
349 |
|
|
350 |
// --------------------------------------------------------------------------
|
|
351 |
// CTsFswDataList::GetAppIconL
|
|
352 |
// --------------------------------------------------------------------------
|
|
353 |
//
|
96
|
354 |
TBool CTsFswDataList::IsHiddenUid(TUid uid)
|
|
355 |
{
|
|
356 |
TInt result = mHiddenUids.Find(uid);
|
|
357 |
return result >= 0 ? ETrue : EFalse;
|
|
358 |
}
|
94
|
359 |
|
96
|
360 |
// --------------------------------------------------------------------------
|
|
361 |
// CTsFswDataList::FindEntry
|
|
362 |
// --------------------------------------------------------------------------
|
|
363 |
//
|
|
364 |
TInt CTsFswDataList::FindEntry(const RTsFswArray& list, const TTsEntryKey& key) const
|
|
365 |
{
|
|
366 |
TInt pos(KErrNotFound);
|
|
367 |
TInt dataCount = list.Count();
|
|
368 |
for (TInt entryIdx = 0; entryIdx < dataCount; ++entryIdx) {
|
|
369 |
if (list[entryIdx]->Key() == key) {
|
|
370 |
pos = entryIdx;
|
|
371 |
break;
|
94
|
372 |
}
|
|
373 |
}
|
96
|
374 |
return pos;
|
|
375 |
}
|
94
|
376 |
|
|
377 |
// --------------------------------------------------------------------------
|
96
|
378 |
// CTsFswDataList::SetScreenshotL
|
|
379 |
// --------------------------------------------------------------------------
|
|
380 |
//
|
|
381 |
TBool CTsFswDataList::SetScreenshotL(const CFbsBitmap* bitmap, UpdatePriority priority, TInt wgId)
|
|
382 |
{
|
|
383 |
RArray<RWsSession::TWindowGroupChainInfo> allWgIds;
|
|
384 |
CleanupClosePushL(allWgIds);
|
|
385 |
User::LeaveIfError(mWsSession.WindowGroupList(0, &allWgIds));
|
|
386 |
TTsEntryKey key = TsEntryKeyGeneraror::GenerateL(wgId, allWgIds.Array());
|
|
387 |
TInt pos = FindEntry(mData, key);
|
|
388 |
TBool updated(EFalse);
|
|
389 |
if (pos >= 0) {
|
|
390 |
updated = mData[pos]->SetScreenshotL(bitmap, priority);
|
|
391 |
}
|
|
392 |
else {
|
|
393 |
User::Leave(KErrNotFound);
|
|
394 |
}
|
|
395 |
CleanupStack::PopAndDestroy(&allWgIds);
|
|
396 |
return updated;
|
|
397 |
}
|
|
398 |
|
|
399 |
// --------------------------------------------------------------------------
|
|
400 |
// CTsFswDataList::RemoveScreenshotL
|
94
|
401 |
// --------------------------------------------------------------------------
|
|
402 |
//
|
96
|
403 |
TBool CTsFswDataList::RemoveScreenshotL(TInt wgId)
|
|
404 |
{
|
|
405 |
RArray<RWsSession::TWindowGroupChainInfo> allWgIds;
|
|
406 |
CleanupClosePushL(allWgIds);
|
|
407 |
User::LeaveIfError(mWsSession.WindowGroupList(0, &allWgIds));
|
|
408 |
TTsEntryKey key = TsEntryKeyGeneraror::GenerateL(wgId, allWgIds.Array());
|
|
409 |
TInt pos = FindEntry(mData, key);
|
|
410 |
TBool updated(EFalse);
|
|
411 |
if (pos >= 0) {
|
|
412 |
updated = mData[pos]->RemoveScreenshot();
|
|
413 |
}
|
|
414 |
else {
|
|
415 |
User::Leave(KErrNotFound);
|
94
|
416 |
}
|
96
|
417 |
CleanupStack::PopAndDestroy(&allWgIds);
|
|
418 |
return updated;
|
|
419 |
}
|
|
420 |
|
|
421 |
// --------------------------------------------------------------------------
|
|
422 |
// CTsFswDataList::EstablishOrder
|
|
423 |
// --------------------------------------------------------------------------
|
|
424 |
//
|
|
425 |
TBool CTsFswDataList::EstablishOrder(const RArray<TTsEntryKey>& keyList)
|
|
426 |
{
|
|
427 |
TBool changed(EFalse);
|
|
428 |
__ASSERT_ALWAYS(mData.Count() == keyList.Count(), User::Panic(_L("EstablishOrder 1"), KErrBadHandle) );
|
|
429 |
for (TInt i = 0; i < keyList.Count(); i++) {
|
|
430 |
const TTsEntryKey& currentdataKey = mData[i]->Key();
|
|
431 |
const TTsEntryKey& referenceKey = keyList[i];
|
|
432 |
if (!(currentdataKey == referenceKey)) {
|
|
433 |
TInt foundPos = FindEntry(mData, referenceKey);
|
|
434 |
__ASSERT_ALWAYS(foundPos>=0, User::Panic(_L("EstablishOrder 2"), KErrBadHandle) );
|
|
435 |
CTsFswEntry* entry = mData[foundPos];
|
|
436 |
mData.Remove(foundPos);
|
|
437 |
mData.Insert(entry, i);
|
|
438 |
changed = ETrue;
|
|
439 |
}
|
|
440 |
}
|
|
441 |
return changed;
|
|
442 |
}
|
|
443 |
|
|
444 |
// --------------------------------------------------------------------------
|
|
445 |
// CTsFswDataList::GetAllowedUidsL
|
|
446 |
// --------------------------------------------------------------------------
|
|
447 |
//
|
|
448 |
void CTsFswDataList::GetAllowedUidsL()
|
|
449 |
{
|
|
450 |
mAllowedUids.Close();
|
|
451 |
TApaAppInfo* appInfo = new (ELeave) TApaAppInfo();
|
|
452 |
CleanupStack::PushL(appInfo);
|
|
453 |
TApaAppCapabilityBuf appCap;
|
|
454 |
|
|
455 |
User::LeaveIfError(mAppArcSession.GetAllApps(0));
|
|
456 |
// for every application get uid, hidden and missing attribute
|
|
457 |
// and add to aArray.
|
|
458 |
while (KErrNone == mAppArcSession.GetNextApp(*appInfo)) {
|
|
459 |
TUid uid = appInfo->iUid;
|
|
460 |
User::LeaveIfError(mAppArcSession.GetAppCapability(appCap, uid));
|
|
461 |
// do not add hidden app and with null uid.
|
|
462 |
if (!appCap().iAppIsHidden && !IsHiddenUid(uid) && uid.iUid) {
|
|
463 |
mAllowedUids.AppendL(uid);
|
|
464 |
}
|
|
465 |
}
|
|
466 |
CleanupStack::PopAndDestroy(appInfo);
|
|
467 |
}
|
94
|
468 |
|
|
469 |
// end of file
|