This file is indexed.

/usr/lib/python2.7/dist-packages/framework/subsystems/ophoned/test.py is in fso-frameworkd 0.10.1-3.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# -*- coding: UTF-8 -*-
"""
The Open Phone Daemon - Python Implementation

(C) 2008 Guillaume "Charlie" Chereau
(C) 2008 Openmoko, Inc.
GPLv2 or later

Package: ophoned

Implementation of the dbus objects.
"""

import gobject

import protocol

class TestProtocol(protocol.Protocol):
    """This special protocol is just used to emulate a real call
    """
    def name(self):
        return 'Test'

    def __init__(self, bus):
        super(TestProtocol, self).__init__(bus)


    class Call(protocol.Call):
        def __init__(self, proto, handle, peer):
            super(TestProtocol.Call, self).__init__(proto, handle, peer)

        def Initiate(self):
            """Initiate the call"""
            # Now since this is a test we simulate outgoing even after a short time...
            def on_timeout(*args):
                if self.status == 'Initiating':
                    self.Outgoing()
            gobject.timeout_add(1000, on_timeout)
            return super(TestProtocol.Call, self).Initiate()

        def Outgoing(self):
            """Emited when the call is outgoing"""
            super(TestProtocol.Call, self).Outgoing()
            # Since this is a test, after a while we activate the call
            def on_timeout(*args):
                if self.status == 'Outgoing':
                    self.Activated()
            gobject.timeout_add(1000, on_timeout)


        def Release(self):
            """Release the call"""
            # Since this is a test, after a while we release the call
            def on_timeout(*args):
                if self.status == 'Releasing':
                    self.Released()
            gobject.timeout_add(1000, on_timeout)
            return super(TestProtocol.Call, self).Release()