Package-level declarations
Types
Provider for the call-log tool module. Wires up ReadCallLogTool and SearchCallLogTool, which query CallLog.Calls read-only. Requires READ_CALL_LOG.
Reads recent calls from CallLog.Calls via ContentResolver, newest first, with optional call-type filtering and cursor-based pagination. Requires READ_CALL_LOG. type is one of 'all' (default), 'incoming', 'outgoing', 'missed' (any other value returns an error); limit clamps to 1–100 (default 10) and offset is non-negative (default 0). Output: calls (list of {id, number, name (cached display name, may be null), type via callTypeName, date formatted yyyy-MM-dd HH:mm, duration_seconds}), count, and the echoed filter.
Searches CallLog.Calls where NUMBER or CACHED_NAME matches query (SQL LIKE substring), via ContentResolver, newest first. Requires READ_CALL_LOG. Output: the echoed query, calls (list of {id, number, name, type via callTypeName, date formatted yyyy-MM-dd HH:mm, duration_seconds}), and count, capped at limit (1–100, default 10).