Home
last modified time | relevance | path

Searched refs:ownerUid (Results 1 – 25 of 76) sorted by relevance

1234

/frameworks/base/services/companion/java/com/android/server/companion/virtual/
DVirtualDeviceLog.java45 void logCreated(int deviceId, int ownerUid) { in logCreated() argument
51 addEntry(new LogEntry(TYPE_CREATED, deviceId, System.currentTimeMillis(), ownerUid)); in logCreated()
57 void logClosed(int deviceId, int ownerUid) { in logClosed() argument
63 addEntry(new LogEntry(TYPE_CLOSED, deviceId, System.currentTimeMillis(), ownerUid)); in logClosed()
100 LogEntry(int type, int deviceId, long timestamp, int ownerUid) { in LogEntry() argument
104 this.mOwnerUid = ownerUid; in LogEntry()
131 String getPackageName(int ownerUid) { in getPackageName() argument
133 if (mUidToPackagesCache.contains(ownerUid)) { in getPackageName()
134 return mUidToPackagesCache.get(ownerUid); in getPackageName()
136 packages = mPackageManager.getPackagesForUid(ownerUid); in getPackageName()
[all …]
/frameworks/base/core/java/com/android/internal/net/
DConnectivityBlobStore.java81 final int ownerUid = Binder.getCallingUid(); in put() local
83 values.put("owner", ownerUid); in put()
104 final int ownerUid = Binder.getCallingUid(); in get() local
108 new String[] {Integer.toString(ownerUid), name} /* selectionArgs */, in get() argument
130 final int ownerUid = Binder.getCallingUid(); in remove() local
134 new String[] {Integer.toString(ownerUid), name} /* whereArgs */); in remove()
153 final int ownerUid = Binder.getCallingUid(); in list() local
159 Integer.toString(ownerUid), in list() argument
/frameworks/native/services/surfaceflinger/FrontEnd/
DLayerCreationArgs.cpp44 ownerUid = callingUid; in LayerCreationArgs()
45 if (ownerUid == AID_GRAPHICS || ownerUid == AID_SYSTEM) { in LayerCreationArgs()
48 ownerUid = static_cast<uid_t>( in LayerCreationArgs()
49 metadata.getInt32(gui::METADATA_OWNER_UID, static_cast<int32_t>(ownerUid))); in LayerCreationArgs()
79 << " pid=" << ownerPid << " uid=" << ownerUid; in getDebugString()
DLayerSnapshot.cpp124 inputInfo.ownerUid = gui::Uid{state.ownerUid}; in LayerSnapshot()
126 uid = state.ownerUid; in LayerSnapshot()
434 inputInfo.ownerUid = requested.ownerUid; in merge()
DLayerCreationArgs.h56 uid_t ownerUid; member
/frameworks/base/services/core/java/com/android/server/power/
DWakeLockLog.java159 public void onWakeLockAcquired(String tag, int ownerUid, int flags, long eventTime) { in onWakeLockAcquired() argument
160 onWakeLockEvent(TYPE_ACQUIRE, tag, ownerUid, flags, eventTime); in onWakeLockAcquired()
170 public void onWakeLockReleased(String tag, int ownerUid, long eventTime) { in onWakeLockReleased() argument
171 onWakeLockEvent(TYPE_RELEASE, tag, ownerUid, 0 /* flags */, eventTime); in onWakeLockReleased()
249 private void onWakeLockEvent(int eventType, String tag, int ownerUid, in onWakeLockEvent() argument
253 + ", ownerUid: " + ownerUid in onWakeLockEvent()
263 handleWakeLockEventInternal(eventType, tagNameReducer(tag), ownerUid, translatedFlags, in onWakeLockEvent()
275 private void handleWakeLockEventInternal(int eventType, String tag, int ownerUid, int flags, in handleWakeLockEventInternal() argument
279 tag, ownerUid, true /* shouldCreate */); in handleWakeLockEventInternal()
477 .append(tag == null ? "---" : tag.ownerUid); in toStringInternal()
[all …]
DNotifier.java268 int ownerUid, int ownerPid, WorkSource workSource, String historyTag, in onWakeLockAcquired() argument
273 + ", ownerUid=" + ownerUid + ", ownerPid=" + ownerPid in onWakeLockAcquired()
276 notifyWakeLockListener(callback, tag, true, ownerUid, flags); in onWakeLockAcquired()
280 final boolean unimportantForLogging = ownerUid == Process.SYSTEM_UID in onWakeLockAcquired()
286 mBatteryStats.noteStartWakelock(ownerUid, ownerPid, tag, historyTag, in onWakeLockAcquired()
289 mAppOps.startOpNoThrow(AppOpsManager.OP_WAKE_LOCK, ownerUid, packageName); in onWakeLockAcquired()
297 mWakeLockLog.onWakeLockAcquired(tag, ownerUid, flags, /*eventTime=*/ -1); in onWakeLockAcquired()
302 public void onLongPartialWakeLockStart(String tag, int ownerUid, WorkSource workSource, in onLongPartialWakeLockStart() argument
305 Slog.d(TAG, "onLongPartialWakeLockStart: ownerUid=" + ownerUid in onLongPartialWakeLockStart()
316 mBatteryStats.noteLongPartialWakelockStart(tag, historyTag, ownerUid); in onLongPartialWakeLockStart()
[all …]
/frameworks/base/services/core/java/com/android/server/display/
DDisplayDeviceInfo.java437 public int ownerUid; field in DisplayDeviceInfo
530 || ownerUid != other.ownerUid in diff()
579 ownerUid = other.ownerUid; in copyFrom()
624 if (ownerUid != 0 || ownerPackageName != null) { in toString()
626 sb.append(" (uid ").append(ownerUid).append(")"); in toString()
DVirtualDisplayAdapter.java119 IMediaProjection projection, int ownerUid, String ownerPackageName, String uniqueId, in createVirtualDisplayLocked() argument
138 ownerUid, ownerPackageName, surface, flags, new Callback(callback, mHandler), in createVirtualDisplayLocked()
276 int ownerUid, String ownerPackageName, Surface surface, int flags, in VirtualDisplayDevice() argument
282 mOwnerUid = ownerUid; in VirtualDisplayDevice()
565 mInfo.ownerUid = mOwnerUid; in getDisplayDeviceInfoLocked()
/frameworks/native/libs/gui/
DWindowInfo.cpp100 info.ownerUid == ownerUid && info.packageName == packageName && in operator ==()
122 static_assert(sizeof(ownerUid.val()) == 4u); in writeToParcel()
146 parcel->writeInt32(ownerUid.val()) ?: in writeToParcel()
223 ownerUid = Uid{static_cast<uid_t>(ownerUidInt)}; in readFromParcel()
266 << ", ownerUid=" << info.ownerUid.toString() << ", dispatchingTimeout=" in operator <<()
/frameworks/base/core/java/android/service/voice/
DVoiceInteractionManagerInternal.java111 public HotwordDetectionServiceIdentity(int isolatedUid, int ownerUid) { in HotwordDetectionServiceIdentity() argument
113 mOwnerUid = ownerUid; in HotwordDetectionServiceIdentity()
/frameworks/native/libs/gui/tests/
DWindowInfo_test.cpp64 i.ownerUid = gui::Uid{24}; in TEST()
95 ASSERT_EQ(i.ownerUid, i2.ownerUid); in TEST()
DEndToEndNativeInputTest.cpp845 nonTouchableSurface->mInputInfo.ownerUid = gui::Uid{22222}; in TEST_F()
866 nonTouchableSurface->mInputInfo.ownerUid = gui::Uid{22222}; in TEST_F()
867 parentSurface->mInputInfo.ownerUid = gui::Uid{22222}; in TEST_F()
890 nonTouchableSurface->mInputInfo.ownerUid = gui::Uid{22222}; in TEST_F()
891 parentSurface->mInputInfo.ownerUid = gui::Uid{22222}; in TEST_F()
910 bufferSurface->mInputInfo.ownerUid = gui::Uid{22222}; in TEST_F()
925 bufferSurface->mInputInfo.ownerUid = gui::Uid{22222}; in TEST_F()
968 surface->mInputInfo.ownerUid = gui::Uid{11111}; in TEST_F()
974 obscuringSurface->mInputInfo.ownerUid = gui::Uid{22222}; in TEST_F()
987 surface->mInputInfo.ownerUid = gui::Uid{11111}; in TEST_F()
[all …]
/frameworks/base/core/java/android/view/
DInputWindowHandle.java130 public int ownerUid; field in InputWindowHandle
203 ownerUid = other.ownerUid; in InputWindowHandle()
DDisplayInfo.java295 public int ownerUid; field in DisplayInfo
451 && ownerUid == other.ownerUid in equals()
513 ownerUid = other.ownerUid; in copyFrom()
577 ownerUid = source.readInt(); in readFromParcel()
646 dest.writeInt(ownerUid); in writeToParcel()
810 return Display.hasAccess(uid, flags, ownerUid, displayId); in hasAccess()
917 if (ownerUid != 0 || ownerPackageName != null) { in toString()
919 sb.append(" (uid ").append(ownerUid).append(")"); in toString()
/frameworks/base/libs/storage/include/storage/
DIMountService.h51 const int32_t ownerUid) = 0;
55 const String16& key, const int32_t ownerUid) = 0;
/frameworks/base/core/jni/
Dandroid_hardware_input_InputWindowHandle.cpp68 jfieldID ownerUid; member
165 mInfo.ownerUid = gui::Uid{ in updateInfo()
166 static_cast<uid_t>(env->GetIntField(obj, gInputWindowHandleClassInfo.ownerUid))}; in updateInfo()
309 env->SetIntField(inputWindowHandle, gInputWindowHandleClassInfo.ownerUid, in android_view_InputWindowHandle_fromWindowInfo()
310 windowInfo.ownerUid.val()); in android_view_InputWindowHandle_fromWindowInfo()
423 GET_FIELD_ID(gInputWindowHandleClassInfo.ownerUid, clazz, in register_android_view_InputWindowHandle()
/frameworks/base/services/core/java/com/android/server/inputmethod/
DHandwritingEventReceiverSurface.java54 mWindowHandle.ownerUid = Process.myUid(); in HandwritingEventReceiverSurface()
79 mWindowHandle.ownerUid = imeUid; in startIntercepting()
/frameworks/base/apex/blobstore/service/java/com/android/server/blob/
DBlobStoreSession.java127 int ownerUid, String ownerPackageName, long creationTimeMs, in BlobStoreSession() argument
132 this.mOwnerUid = ownerUid; in BlobStoreSession()
139 int ownerUid, String ownerPackageName, SessionStateChangeListener listener) { in BlobStoreSession() argument
140 this(context, sessionId, blobHandle, ownerUid, ownerPackageName, in BlobStoreSession()
600 final int ownerUid = XmlUtils.readIntAttribute(in, ATTR_UID); in createFromXml() local
626 blobHandle, ownerUid, ownerPackageName, creationTimeMs, stateChangeListener); in createFromXml()
/frameworks/base/services/core/java/com/android/server/power/stats/
DCpuPowerStatsCollector.java434 int ownerUid; in processUidStats() local
436 ownerUid = Process.getAppUidForSdkSandboxUid(uid); in processUidStats()
438 ownerUid = mUidResolver.mapUid(uid); in processUidStats()
441 long[] ownerStats = mCpuPowerStats.uidStats.get(ownerUid); in processUidStats()
443 mCpuPowerStats.uidStats.put(ownerUid, uidStats.stats); in processUidStats()
DPowerStatsUidResolver.java235 final int ownerUid = mIsolatedUids.valueAt(i); in dump() local
237 pw.println(" " + isolatedUid + "->" + ownerUid + " (ref count = " + refs + ")"); in dump()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DTestDisplayContent.java145 Builder setOwnerUid(int ownerUid) { in setOwnerUid() argument
146 mInfo.ownerUid = ownerUid; in setOwnerUid()
/frameworks/base/libs/storage/
DIMountService.cpp241 const String16& key, const int32_t ownerUid) in createSecureContainer() argument
249 data.writeInt32(ownerUid); in createSecureContainer()
296 int32_t mountSecureContainer(const String16& id, const String16& key, const int32_t ownerUid) in mountSecureContainer() argument
302 data.writeInt32(ownerUid); in mountSecureContainer()
/frameworks/base/services/core/java/com/android/server/wm/
DInputWindowHandleWrapper.java211 if (mHandle.ownerUid == uid) { in setOwnerUid()
214 mHandle.ownerUid = uid; in setOwnerUid()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/blob/
DBlobStoreManagerServiceTest.java358 private BlobStoreSession createBlobStoreSessionMock(String ownerPackageName, int ownerUid, in createBlobStoreSessionMock() argument
360 return createBlobStoreSessionMock(ownerPackageName, ownerUid, sessionId, sessionFile, in createBlobStoreSessionMock()
363 private BlobStoreSession createBlobStoreSessionMock(String ownerPackageName, int ownerUid, in createBlobStoreSessionMock() argument
367 doReturn(ownerUid).when(session).getOwnerUid(); in createBlobStoreSessionMock()

1234